/**
 * Forest Declaration Custom Charts - Info Panel Styling
 */

/* Info icon styling */
.fdcc-chart-type-info-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    font-size: 12px;
    border-radius: 50%;
    background-color: var(--neutral-grey);
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
    position: relative;
}

.fdcc-chart-type-info-icon i {
    font-style: normal;
}

/* Tooltip */
.fdcc-chart-type-info-icon:before {
    content: attr(data-tooltip);
    position: absolute;
    top: -40px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.fdcc-chart-type-info-icon:hover:before {
    opacity: 1;
}

/* Source footer */
.fdcc-chart-footer {
    margin-top: 15px;
    font-size: 14px;
    color: #575757;
}

/* Info panel */
.fdcc-info-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1100;
    display: none;
    opacity: 0;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto;
    transition: all 0,3s ea;
}

.fdcc-info-panel.active {
    display: block;
    opacity: 1;
}

.fdcc-info-panel-content {
    position: relative;
    padding: 20px;
    font-size: 16px;
    color: #575757;
}


.fdcc-info-panel h4 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid var(--neutral-grey);
    margin-top: 1.6em;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

/* Close button */
.fdcc-info-panel-close {
    position: absolute;
    display: block;
    width: auto;
    height: auto;
    top: 15px;
    right: 15px;
    padding: 0;
    background-color: transparent;
    color: #333;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.fdcc-info-panel-close:hover {
    background-color: transparent;
}

.fdcc-info-panel-close .fdcc-modal-close-icon path{
    stroke: #332 !important;
    transition: all 0.2s ease-in;
}

.fdcc-info-panel-close:hover .fdcc-modal-close-icon path{
    stroke: var(--accent) !important;
}

/* Panel content styling */

.fdcc-chart-data-source .source-title {
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 5px;
}

.fdcc-chart-data-source .provider{
    font-size: 14px;
    opacity: 0.9;
}

.fdcc-chart-data-source a.button{
    background-color: var(--neutral-grey);
    border-radius: 0;
    border: 1px solid var(--neutral-grey);
    width: auto;
}
