/* AsiaBox — Cookie Consent UI */

.abx-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    background: #1c1c1c;
    color: #fff;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
    font-family: "SeoulNamsan", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.abx-consent__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.abx-consent__text {
    flex: 1 1 420px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.abx-consent__title {
    font-size: 16px;
    font-weight: 700;
}

.abx-consent__desc {
    color: rgba(255, 255, 255, 0.85);
}

.abx-consent__link {
    color: #fff;
    text-decoration: underline;
    white-space: nowrap;
}

.abx-consent__link:hover {
    color: #ffd7d7;
}

.abx-consent__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.abx-consent__btn {
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.abx-consent__btn--primary {
    background: #e02020;
    color: #fff;
    border-color: #e02020;
}

.abx-consent__btn--primary:hover {
    background: #c01a1a;
    border-color: #c01a1a;
}

.abx-consent__btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.abx-consent__btn--ghost:hover {
    border-color: #fff;
}

/* Modal */
.abx-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.abx-consent-modal.is-open {
    display: flex;
}

.abx-consent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.abx-consent-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #fff;
    color: #1c1c1c;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    font-family: "SeoulNamsan", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

.abx-consent-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #eee;
}

.abx-consent-modal__title {
    font-size: 18px;
    font-weight: 700;
}

.abx-consent-modal__close {
    border: none;
    background: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.abx-consent-modal__body {
    padding: 18px 22px;
}

.abx-consent-modal__text {
    margin: 0 0 14px;
    color: #444;
}

.abx-consent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
}

.abx-consent-row__label {
    flex: 1;
    font-size: 14px;
}

.abx-consent-row__tag {
    font-size: 12px;
    color: #2e7d32;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.abx-consent-modal__foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.abx-consent-modal__foot .abx-consent__btn--ghost {
    color: #1c1c1c;
    border-color: #ccc;
}

.abx-consent-modal__foot .abx-consent__btn--ghost:hover {
    border-color: #1c1c1c;
}

/* Switch */
.abx-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex: 0 0 auto;
}

.abx-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.abx-switch__slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    transition: background 0.2s ease;
}

.abx-switch__slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.abx-switch input:checked + .abx-switch__slider {
    background: #e02020;
}

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

@media (max-width: 767px) {
    .abx-consent__inner {
        flex-direction: column;
        align-items: stretch;
    }
    .abx-consent__actions {
        justify-content: stretch;
    }
    .abx-consent__btn {
        flex: 1;
        text-align: center;
    }
}
