/* =====================================================
   Cookie Consent Banner – Đuđa & Mate
   ===================================================== */

#cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #1c1c1c;
    color: #f0ece4;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
    transform: translateY(100%);
    transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#cc-banner.cc-visible {
    transform: translateY(0);
}

.cc-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
}

.cc-body {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cc-text {
    flex: 1 1 400px;
}

.cc-heading {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #fff;
}

.cc-text p {
    margin: 0 0 0.5rem;
    color: #ccc;
}

.cc-policy-link {
    color: #c9a96e;
    text-decoration: underline;
    font-size: 0.8rem;
}

.cc-policy-link:hover {
    color: #e8c98e;
}

/* Buttons */
.cc-btns {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cc-btn {
    padding: 0.55rem 1.1rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cc-btn-primary {
    background: #c9a96e;
    color: #1c1c1c;
}

.cc-btn-primary:hover {
    background: #e8c98e;
}

.cc-btn-outline {
    background: transparent;
    color: #c9a96e;
    border: 1px solid #c9a96e;
}

.cc-btn-outline:hover {
    background: rgba(201,169,110,0.15);
}

.cc-btn-ghost {
    background: transparent;
    color: #aaa;
    border: 1px solid #555;
}

.cc-btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    color: #ddd;
}

/* Settings panel */
.cc-settings-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    border-top: 0px solid #333;
}

.cc-settings-panel.cc-panel-open {
    max-height: 500px;
    padding-top: 1rem;
    border-top: 1px solid #333;
    margin-top: 0.75rem;
}

.cc-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #2e2e2e;
}

.cc-setting-row:last-of-type {
    border-bottom: none;
}

.cc-setting-info {
    flex: 1;
}

.cc-setting-info strong {
    display: block;
    color: #eee;
    font-size: 0.85rem;
}

.cc-desc {
    color: #888;
    font-size: 0.78rem;
}

.cc-always-on {
    color: #c9a96e;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Toggle switch */
.cc-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cc-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #444;
    border-radius: 24px;
    transition: background 0.2s;
}

.cc-slider:before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.cc-toggle input:checked + .cc-slider {
    background: #c9a96e;
}

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

#cc-btn-save {
    margin-top: 0.75rem;
}

/* Active language indicator */
.lang-active {
    font-weight: 700;
    color: #c9a96e !important;
}

/* =====================================================
   Language Navigation dropdown fix
   ===================================================== */
.language-navigation .sub-menu {
    min-width: 140px;
}

.language-navigation .sub-menu a {
    white-space: nowrap;
}

/* Mobile */
@media (max-width: 600px) {
    .cc-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cc-btns {
        width: 100%;
    }

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