.section-api .container {
    padding-bottom: 100px;
}

.section-api .full-api-container {
    box-shadow: 0px 16px 64px rgba(63, 57, 134, 0.15);
    padding: 30px 40px;
    border-radius: 16px;
}

.section-api .text-image-container {
    display: flex;
    justify-content: space-between;
}

.section-api .head-title {
    padding-bottom: 60px;
}

.api-report-content {
    display: flex;
    flex-direction: column;
    flex: 0 0 50%;
}

.api-report-content .subtitle {
    padding-bottom: 25px;
}

.api-report-field label {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;

    font-size: calc(12px * var(--font-scale));
    line-height: 1;
    font-weight: 600;
    color: #191B1C;

    pointer-events: none;
}

.api-select {
    display: flex;
    gap: 15px;
}

.api-report-field {
    flex: 1;
    position: relative;
}

.section-api picture {
    padding-right: 40px;
}

.section-api button#download-api-report {
    background-color: #5F57BD;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    padding: 15px 40px;
    margin: 40px 0 70px 0;
}

.api-technical-works {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #F5F6F8;
    border-radius: 8px;
    padding: 18px;
}

.api-technical-works.is-ongoing {
    background-color: #FFDADA;
}

.open-banking .container.warning-section {
    margin-top: 0;
}

.open-banking .container.warning-section .collapse-title {
    margin-bottom: 52px;
    background: #F5F4FA;
    padding: 32px;
    border-radius: 16px;
}

.open-banking .container.warning-section #accordion-content-warning {
    border: none;
    padding: 0;
    font-weight: 400;
    text-align: justify;
}

.warning-section .collapse-title p .collapse-icon img {
    transform: rotate(-180deg);
    transition: all 0.3s ease;
}

.warning-section .collapse-title.collapsed .collapse-icon img {
    transform: rotate(0);
}

@media (max-width: 991px) {
    .section-api picture {
        display: none;
    }

    .api-report-content {
        flex: 1;
    }

    .desktop-break {
        display: inline;
    }
}

@media (max-width: 767px) {
    .section-api .full-api-container {
        padding: 32px 16px;
    }
}

@media (max-width: 430px) {
    .section-api .head-title {
        padding-bottom: 15px;
    }

    .api-report-content .subtitle {
        padding-bottom: 30px;
    }

    .section-api button#download-api-report {
        margin: 35px 0 50px 0;
    }

    .api-select {
        flex-direction: column;
    }

    .api-technical-works {
        display: inline-grid;
    }
}

#api-report-year option:hover {
    background-color: #8392A4;
    color: #000;
}

html[data-color-scheme="white-on-black"] #api-report-year option:hover {
    background-color: #000;
    color: #fff;
}

html[data-color-scheme="white-on-black"] .section-api button#download-api-report {
    color: var(--neutral-0);
    background: var(--neutral-320);
    border: 2px solid var(--neutral-340);
}

html[data-color-scheme="white-on-black"] .api-technical-works {
    color: black;
}

html[data-color-scheme="white-on-black"] .open-banking .warning-section-title,
html[data-color-scheme="white-on-black"] .open-banking .container.warning-section .collapse-title,
html[data-color-scheme="white-on-black"] .open-banking #accordion-content-warning p,
html[data-color-scheme="white-on-black"] .open-banking #accordion-content-warning li,
html[data-color-scheme="white-on-black"] .open-banking #accordion-content-warning a {
    background: var(--neutral-0);
    color: var(--neutral-360);
}

.api-report-custom-select {
    position: relative;
    width: 100%;
}

.custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 12px;
    border: 1px solid #8392A4;
    border-radius: 8px;
    background-color: #fff;
    color: #000;
    cursor: pointer;
    text-align: left;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.api-report-custom-select.is-open .custom-select__trigger {
    border: 1px solid #202427;
    border-radius: 8px 8px 0 0;
    border-bottom: 0;
}

.custom-select__value {
    display: block;
    padding-top: 17px;
    border: #EEF0F2;
}

.custom-select__arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

/*
 * Відкритий dropdown
 */
.custom-select__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    display: none;
    max-height: 250px;
    overflow-y: auto;
    padding: 0;
    border-right: 1px solid #202427;
    border-bottom: 1px solid #202427;
    border-left: 1px solid #202427;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background-color: #fff;
}

/*
 * Dropdown відкритий
 */
.api-report-custom-select.is-open .custom-select__dropdown {
    display: block;
    border-radius: 0 0 8px 8px;
}

.api-report-custom-select.is-open .custom-select__arrow {
    transform: rotate(225deg);
}

/*
 * Пункт dropdown
 */
.custom-select__option {
    display: block;

    width: 100%;
    padding: 10px 16px;
    border-bottom: 1px solid #EEF0F2;
    background: transparent;
    color: #000;
    cursor: pointer;
    text-align: center;
    font: inherit;
}

.custom-select__option:first-child {
    border-top: 1px solid #EEF0F2;
}

.custom-select__option:last-child {
    border-bottom: 0;
}

/*
 * Контроль hover
 */
.custom-select__option:hover, .custom-select__option:focus {
    background-color: #8392A4;
    color: #fff;
    outline: none;
}

html[data-color-scheme="white-on-black"] .custom-select__option:hover,
html[data-color-scheme="white-on-black"] .custom-select__option:focus {
    background-color: black;
    color: white;
    outline: none;
}

/*
 * Вибраний пункт
 */
.custom-select__option.is-selected {
    font-weight: 600;
}

/*
 * Чорно-біла тема
 */
html[data-color-scheme="white-on-black"] .custom-select__trigger {
    background-color: white;
    color: black;
}

html[data-color-scheme="white-on-black"] .custom-select__dropdown {
    background-color: white;
}

html[data-color-scheme="white-on-black"] .custom-select__option {
    background-color: white;
    color: black;
}


/*
 * Hover у чорно-білій темі
 */
html[data-color-scheme="white-on-black"] .custom-select__option:hover {
    background-color: #000;
    color: #fff;
}
