/* ===== Cookie Consent Banner ===== */

.cky-overlay {
    background: #000;
    opacity: 0.4;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999999;
}

/* Revisit floating button (bottom-left) */
.cky-btn-revisit-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ct-red);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    position: fixed;
    z-index: 999999;
    cursor: pointer;
    bottom: 15px;
    left: 15px;
    transition: opacity 0.2s ease;
}

.cky-btn-revisit-wrapper:hover {
    opacity: 0.8;
}

.cky-btn-revisit-wrapper .cky-btn-revisit {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    margin: 0;
    padding: 0;
}

.cky-btn-revisit-wrapper .cky-btn-revisit img {
    max-width: fit-content;
    margin: 0;
    height: 30px;
    width: 30px;
}

.cky-revisit-bottom-left:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    background: #4e4b66;
    color: #fff;
    left: calc(100% + 7px);
    font-size: 12px;
    line-height: 16px;
    width: max-content;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.cky-revisit-bottom-left:hover::after {
    position: absolute;
    content: "";
    border: 5px solid transparent;
    left: calc(100% + 2px);
    border-left-width: 0;
    border-right-color: #4e4b66;
}

/* Consent container (bottom banner) */
.cky-consent-container {
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    z-index: 9999999;
}

.cky-banner-bottom {
    bottom: 0;
    left: 0;
}

.cky-consent-bar {
    background: #1a1a1a;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cky-notice {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 250px;
}

.cky-notice-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.cky-notice-des {
    color: #d0d0d0;
    font-size: 14px;
    line-height: 20px;
}

.cky-notice-des a.cky-policy {
    color: #1863dc;
    text-decoration: underline;
}

.cky-notice-btn-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cky-btn {
    font-size: 14px;
    line-height: 24px;
    padding: 8px 27px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-transform: none;
    min-height: 0;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.cky-btn:hover {
    opacity: 0.8;
}

.cky-btn-reject {
    background: transparent;
    border: 2px solid var(--ct-red);
    color: var(--ct-red);
}

.cky-btn-preferences {
    background: transparent;
    border: 2px solid var(--ct-red);
    color: var(--ct-red);
}

.cky-btn-accept {
    background: var(--ct-red);
    border: 2px solid var(--ct-red);
    color: #ffffff;
}

.cky-btn-customize {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 14px;
    line-height: 24px;
    padding: 8px 27px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.cky-btn-customize:hover {
    opacity: 0.8;
}

/* Preference modal */
.cky-modal {
    box-shadow: 0 32px 68px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    position: fixed;
    max-width: 100%;
    background: #fff;
    top: 50%;
    left: 50%;
    box-sizing: border-box;
    border-radius: 6px;
    z-index: 999999999;
    color: #212121;
    transform: translate(-50%, -50%);
    visibility: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.cky-modal-open {
    visibility: visible;
    opacity: 1;
}

.cky-preference-center {
    max-height: 79vh;
    width: 845px;
    max-width: 90vw;
    overflow: hidden;
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
}

.cky-preference-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid #e0e6ed;
}

.cky-preference-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: #010000;
}

.cky-btn-close {
    margin: 0;
    cursor: pointer;
    vertical-align: middle;
    padding: 0;
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    min-height: 0;
    line-height: 0;
}

.cky-btn-close img {
    margin: 0;
    height: 20px;
    width: 20px;
}

.cky-preference-body-wrapper {
    overflow-y: auto;
    padding: 16px 24px;
    flex: 1;
}

.cky-preference-content-wrapper {
    font-size: 14px;
    color: #010000;
    margin-bottom: 16px;
}

.cky-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e6ed;
    cursor: pointer;
}

.cky-accordion-header:hover {
    background-color: #f7f7f7;
}

.cky-accordion-btn {
    font-size: 14px;
    font-weight: 600;
    color: #010000;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.cky-accordion-header-des {
    font-size: 14px;
    color: #6c757d;
    margin-top: 4px;
}

.cky-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cky-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.cky-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cky-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
}

.cky-switch input:checked + .cky-slider {
    background-color: #1863dc;
}

.cky-switch input:checked + .cky-slider:before {
    transform: translateX(20px);
}

.cky-accordion-body {
    padding: 12px 0;
    font-size: 14px;
    color: #6c757d;
    overflow: hidden;
}

.cky-accordion-body p {
    margin: 0;
    line-height: 20px;
}

.cky-footer-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid #e0e6ed;
    gap: 8px;
}

.cky-footer-wrapper .cky-btn {
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .cky-consent-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .cky-notice-btn-wrapper {
        justify-content: stretch;
    }

    .cky-notice-btn-wrapper .cky-btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 425px) {
    .cky-btn {
        width: 100%;
        margin: 10px 0 0 0;
    }

    .cky-notice-btn-wrapper {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 352px) {
    .cky-btn {
        font-size: 12px;
    }
}
