/* DailyBeautyJewel self-hosted Cookie Consent */
.dbj-cookie-banner,
.dbj-cookie-modal {
    font-family: Arial, "Microsoft JhengHei", sans-serif;
    color: #3A4051;
}

.dbj-cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    display: none;
    background: #ffffff;
    border: 1px solid rgba(58, 64, 81, .16);
    box-shadow: 0 18px 54px rgba(0, 0, 0, .18);
    border-radius: 14px;
    padding: 20px 22px;
}

.dbj-cookie-banner.is-visible {
    display: block;
}

.dbj-cookie-banner-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.dbj-cookie-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 6px;
}

.dbj-cookie-text {
    font-size: 13px;
    line-height: 1.7;
    color: #666b78;
}

.dbj-cookie-text a {
    color: #3A4051;
    text-decoration: underline;
}

.dbj-cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dbj-cookie-btn {
    border: 1px solid #3A4051;
    background: #ffffff;
    color: #3A4051;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
}

.dbj-cookie-btn:hover {
    background: #f5f5f5;
}

.dbj-cookie-btn.primary {
    background: #3A4051;
    color: #ffffff;
}

.dbj-cookie-btn.primary:hover {
    background: #252a38;
}

.dbj-cookie-btn.link {
    border-color: transparent;
    background: transparent;
    text-decoration: underline;
}

.dbj-cookie-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    background: rgba(0, 0, 0, .45);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dbj-cookie-modal-backdrop.is-visible {
    display: flex;
}

.dbj-cookie-modal {
    width: min(720px, 100%);
    max-height: min(780px, 90vh);
    overflow: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

.dbj-cookie-modal-header {
    padding: 24px 26px 16px;
    border-bottom: 1px solid #eeeeee;
}

.dbj-cookie-modal-header h2 {
    font-size: 21px;
    margin: 0 0 8px;
    color: #3A4051;
}

.dbj-cookie-modal-header p {
    font-size: 13px;
    line-height: 1.7;
    color: #666b78;
    margin: 0;
}

.dbj-cookie-modal-body {
    padding: 8px 26px 4px;
}

.dbj-cookie-category {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dbj-cookie-category h3 {
    margin: 0 0 5px;
    font-size: 15px;
    color: #3A4051;
}

.dbj-cookie-category p {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: #666b78;
}

.dbj-cookie-always {
    font-size: 12px;
    font-weight: 700;
    color: #8b8b8b;
    white-space: nowrap;
}

.dbj-cookie-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

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

.dbj-cookie-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #d9d9d9;
    transition: .2s;
    border-radius: 999px;
}

.dbj-cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.dbj-cookie-switch input:checked + .dbj-cookie-slider {
    background-color: #3A4051;
}

.dbj-cookie-switch input:checked + .dbj-cookie-slider:before {
    transform: translateX(22px);
}

.dbj-cookie-modal-footer {
    padding: 18px 26px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .dbj-cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 18px;
    }

    .dbj-cookie-banner-inner {
        grid-template-columns: 1fr;
    }

    .dbj-cookie-actions {
        justify-content: stretch;
    }

    .dbj-cookie-btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .dbj-cookie-category {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dbj-cookie-modal-footer {
        justify-content: stretch;
    }
}
