button {
    display:flex;
    background-color: #f0f0f0;
    border-radius:25px;
    border: 1px solid transparent;
    padding: 0;
    width: fit-content;

}

button:hover {
    background-color: #cccaca;
}

button.checked {
    background-color: #ffba49;
}

button.checked:hover {
    background-color: #ffa716;
}

button label,
button a,
button span {
    padding: 10px 20px;
    cursor: pointer;
    color: #2b4162;
}

button label {
    @media screen and (max-width: 640px) {
        padding: 5px 10px;
    }
}

button a:hover,
button span:hover {
    color: #2b4162;
}
.chart-scroll {
    overflow-x: auto;
}

.chart-scroll.hide {
    display: none !important;
}

.charts-container {
    min-width: 1000px;
    min-height: 400px;
}

canvas {
    width: 100%;
    min-height: 400px;
    max-height: 400px;
}

canvas.hide {
    display: none !important;
}

.disclaimer {
    background-color: #f0f0f0;
    padding: 24px;
}

#map {
    z-index: 1;
    height: 400px;
    background-color: #aad3df;

    @media screen and (max-width: 640px) {
        display: none;
    }
}

.leaflet-interactive {
    fill: #33658a;
    stroke: #2b4162;
    stroke-width: 2;
    fill-opacity: 0.2;
}

.leaflet-interactive.checked {
    fill: #ffba49;
    fill-opacity: 0.7;
}

.year-selector {
    display: flex;
    gap: 20px;
    flex-direction: column;

    @media screen and (min-width: 640px) {
        flex-direction: row;
    }
}

#year-range,
#year-single {
    background-color: #f0f0f0;
    padding: 10px;
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    @media screen and (min-width: 400px) {
        flex-direction: row;
        gap: 20px;
        padding: 20px;
    }
}

#year-range.checked,
#year-single.checked {
    background-color: #ffba49;
}

.table-scroll table {
    border-collapse: collapse;
    width: auto;
    table-layout: fixed;
    cursor: pointer;
}

.table-scroll table .rowgroup {
    font-weight: 600;
    border-top: 2px solid #cccaca;
    position: relative;
    z-index: 1;
}

.table-scroll table td, .table-scroll table th {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
}

.table-scroll table tr td:first-child,
.table-scroll table tr th:first-child {
    width: 150px;
    min-width: 150px;
    background-color: white;
    max-width: 150px;
    left: 0;
    padding-right: 40px;
    position: sticky;
    position: -webkit-sticky;

    @media screen and (min-width: 640px) {
        width: 300px;
        min-width: 300px;
        max-width: 300px;
    }
}


.table-scroll {
    overflow: auto;
}

.country-checkbox[type=checkbox] {
    visibility:hidden;
    width:0;
    height:0;
}

.country-data-table.hidden {
    display: none;
}

.country-buttons {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.chart-button {
    @media screen and (max-width: 640px) {
        border-radius: 0;
    }
}

.multi-country-buttons {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:40px;
}

.columns {
    display: flex;
    flex-direction: column;
    gap: 40px;

    @media screen and (min-width : 640px) {
        flex-direction: row;
    }
}

.column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 300px;
}

.rapporteurs-section {
    background-color: #f0f0f0;
    padding: 24px;
}

.rapporteur__intro .rapporteur__data {
    color: inherit;
}

.rapporteur__intro button {
    background-color: #ffba49;
}

.rapporteur__intro button:hover {
    background-color: #ffa716;
    color: #33658a;
}

.modal__container {
    overflow-x: hidden;
}

.rapporteur__label,
.rapporteur__country {
    color: #ffba49;
    font-weight: 600;
    margin-bottom: 0;
}

.rapporteur__data {
    font-size: 17px;
    line-height: 1.29;
    color: #fff;
}

.rapporteur__image {
    margin-bottom: 20px;
}

.rapporteur__form {
    border-top: 1px solid #ffba49;
    border-bottom: 1px solid #ffba49;
    margin-bottom: 40px;
    margin-top: 40px;
    max-height: 100vh;
    opacity: 1;
    overflow: hidden;
    padding-top: 40px;
    padding-bottom: 40px;
    transition: all .3s ease-in-out;
    visibility: visible;
}

.rapporteur__form.is-hidden  {
    margin: 0;
    max-height: 0;
    opacity: 0;
    padding: 0;
    visibility: hidden;
    overflow: hidden;
}

.rapporteur__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gform_submission_error {font-size: 1.25rem;}

.rapporteur__form .gfield_label {
    color: #ffba49;
}
.gform_button[type="submit"] {
    background-color: #ffba49;
    color: #33658a;
}
.gform_button[type="submit"]:hover {
    background-color: #ffa716;
    color: #33658a;
}

option.hidden {
    display: none;
}

.page-template-market-data .app {
    position: relative;
}

.loader-modal {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(43, 65, 98, .1);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-modal.is-hidden {
    display: none;
}

.loader {
    position: fixed;
    top: calc(50vh - 60px);
    border: 16px solid #ffffff;
    border-top: 16px solid #2b4162; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
