/* ============================================
   Cookie Consent - Marketing Consulting+
   Dopasowany do designu mcplus.pl
   ============================================ */

/* Banner (dolny pasek fixed) */
.cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    padding: 1.125rem 1.5rem;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 102, 0, 0.18);
    box-shadow: 0 -24px 64px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cc-banner-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cc-text {
    flex: 1;
    min-width: 220px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.65;
}

.cc-text a {
    color: #ff6600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cc-text a:hover {
    opacity: 0.8;
}

.cc-buttons {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Przyciski */
.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1.125rem;
    transition: all 0.25s ease;
    line-height: 1;
}

.cc-btn-accept {
    background: #ff6600;
    color: #050505;
}

.cc-btn-accept:hover {
    background: #e55a00;
    box-shadow: 0 0 24px rgba(255, 102, 0, 0.4);
    transform: translateY(-1px);
}

.cc-btn-reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.cc-btn-reject:hover {
    border-color: rgba(255, 255, 255, 0.32);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.cc-btn-customize {
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.5rem 0.875rem;
}

.cc-btn-customize:hover {
    border-color: rgba(255, 102, 0, 0.3);
    color: rgba(255, 255, 255, 0.72);
    transform: translateY(-1px);
}

/* Modal overlay */
.cc-overlay {
    position: fixed;
    inset: 0;
    z-index: 9991;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.cc-overlay.cc-open {
    opacity: 1;
    visibility: visible;
}

/* Modal karta */
.cc-modal {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.98) 0%, rgba(10, 10, 10, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
    transform: scale(0.95) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cc-overlay.cc-open .cc-modal {
    transform: scale(1) translateY(0);
}

/* Pomarańczowy radial-gradient jak w contact-card */
.cc-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 102, 0, 0.1), transparent 50%);
    pointer-events: none;
}

/* Lewa linia akcentująca jak w contact-card */
.cc-modal::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 102, 0, 0.9), rgba(255, 154, 0, 0.05));
}

.cc-modal-body {
    position: relative;
    z-index: 1;
    padding: 1.875rem 1.875rem 1.875rem 3.375rem;
}

.cc-modal-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.cc-modal-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.7;
    margin-bottom: 1.375rem;
}

/* Wiersze toggleów */
.cc-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.375rem;
}

.cc-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.1rem;
    background: rgba(5, 5, 5, 0.4);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.cc-toggle-row:hover:not(.cc-toggle-row--necessary) {
    border-color: rgba(255, 102, 0, 0.16);
    background: rgba(255, 255, 255, 0.02);
}

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

.cc-toggle-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

.cc-toggle-row--necessary .cc-toggle-title {
    color: rgba(255, 255, 255, 0.42);
}

.cc-toggle-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.36);
    line-height: 1.5;
}

/* Toggle switch */
.cc-toggle-switch {
    position: relative;
    flex-shrink: 0;
    width: 2.75rem;
    height: 1.5rem;
    cursor: pointer;
    display: block;
}

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

.cc-toggle-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.11);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cc-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.36);
    transition: transform 0.25s ease, background 0.25s ease;
}

.cc-toggle-switch input:checked ~ .cc-toggle-track {
    background: linear-gradient(135deg, #ff6600, #ff9a00);
    border-color: transparent;
    box-shadow: 0 0 14px rgba(255, 102, 0, 0.4);
}

.cc-toggle-switch input:checked ~ .cc-toggle-thumb {
    transform: translateX(20px);
    background: #050505;
}

.cc-toggle-switch input:disabled ~ .cc-toggle-track {
    cursor: not-allowed;
    opacity: 0.4;
}

/* Przyciski modala */
.cc-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cc-modal-actions .cc-btn {
    flex: 1;
    min-width: 100px;
}

/* Link w stopce */
#cc-open-preferences {
    cursor: pointer;
}

/* Mobile */
@media (max-width: 640px) {
    .cc-banner {
        padding: 1rem;
    }

    .cc-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.875rem;
    }

    .cc-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .cc-btn-accept {
        grid-column: 1 / -1;
    }

    .cc-modal-body {
        padding: 1.5rem;
    }

    .cc-modal::after {
        display: none;
    }

    .cc-modal-actions .cc-btn {
        min-width: 70px;
        font-size: 0.72rem;
        padding: 0.5rem 0.625rem;
    }
}
