/* =========================================================
   TRAVOCOST COOKIE CONSENT
   ========================================================= */

/* ---------------------------------------------------------
   COOKIE BANNER
   --------------------------------------------------------- */

#travocost-cookie-banner {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    z-index: 999999 !important;

    margin: 0 !important;
    padding: 0 !important;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

#travocost-cookie-banner.tc-cookie-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Dark overlay behind banner */

#travocost-cookie-banner .tc-cookie-overlay {
    display: none;
}

/* Actual banner */

#travocost-cookie-banner .tc-cookie-banner {
    width: 100%;
    box-sizing: border-box;

    background: #ffffff;
    color: #172033;

    border-top: 1px solid #e5e7eb;

    box-shadow:
        0 -8px 30px rgba(0, 0, 0, 0.12);

    padding: 24px 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

/* Content */

#travocost-cookie-banner .tc-cookie-content {
    display: flex;
    align-items: flex-start;

    gap: 18px;

    max-width: 850px;
}

#travocost-cookie-banner .tc-cookie-icon {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1f5f9;

    border-radius: 12px;

    font-size: 24px;
}

#travocost-cookie-banner .tc-cookie-text h2 {
    margin: 0 0 8px 0;

    font-size: 20px;
    line-height: 1.3;

    font-weight: 700;

    color: #111827;
}

#travocost-cookie-banner .tc-cookie-text p {
    margin: 4px 0;

    font-size: 14px;
    line-height: 1.55;

    color: #4b5563;
}

#travocost-cookie-banner .tc-cookie-link {
    display: inline-block;

    margin-top: 8px;

    color: #2563eb;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;
}

#travocost-cookie-banner .tc-cookie-link:hover {
    text-decoration: underline;
}

/* Buttons */

#travocost-cookie-banner .tc-cookie-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    flex-shrink: 0;
}

.tc-cookie-button {
    border: 0;

    min-height: 44px;

    padding: 0 20px;

    border-radius: 10px;

    font-family: inherit;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.tc-cookie-button:hover {
    transform: translateY(-1px);
}

.tc-cookie-reject {
    background: #f3f4f6;
    color: #374151;
}

.tc-cookie-reject:hover {
    background: #e5e7eb;
}

.tc-cookie-settings {
    background: #ffffff;
    color: #1f2937;

    border: 1px solid #d1d5db !important;
}

.tc-cookie-settings:hover {
    background: #f9fafb;
}

.tc-cookie-accept {
    background: #111827;
    color: #ffffff;
}

.tc-cookie-accept:hover {
    background: #1f2937;
}


/* =========================================================
   COOKIE SETTINGS MODAL
   ========================================================= */

#travocost-cookie-settings {
    position: fixed !important;

    top: 0 !important;
    left: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    z-index: 1000000 !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

/* Modal background */

#travocost-cookie-settings .tc-cookie-modal-overlay {
    position: fixed !important;

    top: 0 !important;
    left: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    background: rgba(15, 23, 42, 0.68);

    z-index: 1;
}

/* Modal */

#travocost-cookie-settings .tc-cookie-modal {
    position: relative !important;

    z-index: 2;

    width: min(620px, calc(100vw - 32px));

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    box-sizing: border-box;

    background: #ffffff;

    color: #172033;

    border-radius: 18px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.25);

    padding: 28px;
}

/* Header */

#travocost-cookie-settings .tc-cookie-modal-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}

#travocost-cookie-settings .tc-cookie-modal-label {
    display: block;

    margin-bottom: 5px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;

    color: #64748b;
}

#travocost-cookie-settings .tc-cookie-modal h2 {
    margin: 0;

    font-size: 28px;
    line-height: 1.2;

    color: #111827;
}

/* Close button */

#travocost-cookie-settings .tc-cookie-close {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    border: 0;

    border-radius: 10px;

    background: #f3f4f6;

    color: #374151;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

#travocost-cookie-settings .tc-cookie-close:hover {
    background: #e5e7eb;

    transform: scale(1.03);
}

/* Description */

#travocost-cookie-settings .tc-cookie-modal-description {
    margin: 0 0 22px 0;

    font-size: 14px;
    line-height: 1.6;

    color: #64748b;
}


/* =========================================================
   COOKIE CATEGORIES
   ========================================================= */

#travocost-cookie-settings .tc-cookie-category {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 0;

    border-top: 1px solid #e5e7eb;
}

#travocost-cookie-settings .tc-cookie-category-info {
    flex: 1;
}

#travocost-cookie-settings .tc-cookie-category-info h3 {
    margin: 0 0 5px 0;

    font-size: 16px;
    font-weight: 700;

    color: #111827;
}

#travocost-cookie-settings .tc-cookie-category-info p {
    margin: 0;

    font-size: 13px;
    line-height: 1.5;

    color: #64748b;
}

#travocost-cookie-settings .tc-cookie-always {
    flex-shrink: 0;

    padding: 7px 11px;

    border-radius: 999px;

    background: #ecfdf5;

    color: #047857;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   TOGGLE SWITCH
   ========================================================= */

#travocost-cookie-settings .tc-switch {
    position: relative;

    display: inline-block;

    width: 48px;
    height: 28px;

    flex: 0 0 48px;
}

#travocost-cookie-settings .tc-switch input {
    opacity: 0;

    width: 0;
    height: 0;
}

#travocost-cookie-settings .tc-slider {
    position: absolute;

    cursor: pointer;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: #cbd5e1;

    border-radius: 999px;

    transition: 0.25s;
}

#travocost-cookie-settings .tc-slider::before {
    position: absolute;

    content: "";

    width: 22px;
    height: 22px;

    left: 3px;
    top: 3px;

    background: #ffffff;

    border-radius: 50%;

    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.2);

    transition: 0.25s;
}

#travocost-cookie-settings
.tc-switch input:checked
+ .tc-slider {
    background: #2563eb;
}

#travocost-cookie-settings
.tc-switch input:checked
+ .tc-slider::before {
    transform: translateX(20px);
}


/* =========================================================
   MODAL FOOTER
   ========================================================= */

#travocost-cookie-settings .tc-cookie-modal-footer {
    display: flex;

    justify-content: flex-end;

    margin-top: 24px;
}

#travocost-cookie-settings
.tc-cookie-modal-footer
.tc-cookie-button {
    min-width: 180px;
}

/* Legal links */

#travocost-cookie-settings .tc-cookie-legal {
    display: flex;

    justify-content: center;

    gap: 20px;

    margin-top: 18px;

    padding-top: 16px;

    border-top: 1px solid #e5e7eb;
}

#travocost-cookie-settings .tc-cookie-legal a {
    color: #64748b;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;
}

#travocost-cookie-settings .tc-cookie-legal a:hover {
    color: #2563eb;

    text-decoration: underline;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    #travocost-cookie-banner .tc-cookie-banner {
        flex-direction: column;

        align-items: stretch;

        gap: 18px;

        padding: 20px;
    }

    #travocost-cookie-banner .tc-cookie-content {
        max-width: none;
    }

    #travocost-cookie-banner .tc-cookie-actions {
        width: 100%;

        display: grid;

        grid-template-columns: 1fr;

        gap: 8px;
    }

    #travocost-cookie-banner
    .tc-cookie-button {
        width: 100%;
    }

    #travocost-cookie-settings .tc-cookie-modal {
        width: calc(100vw - 24px);

        max-height: calc(100vh - 24px);

        padding: 22px;

        border-radius: 16px;
    }

    #travocost-cookie-settings .tc-cookie-modal h2 {
        font-size: 24px;
    }

    #travocost-cookie-settings .tc-cookie-category {
        align-items: flex-start;
    }

    #travocost-cookie-settings
    .tc-cookie-modal-footer
    .tc-cookie-button {
        width: 100%;

        min-width: 0;
    }

    #travocost-cookie-settings .tc-cookie-modal-footer {
        display: block;
    }

    #travocost-cookie-settings .tc-cookie-legal {
        flex-direction: column;

        align-items: center;

        gap: 10px;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

    #travocost-cookie-banner .tc-cookie-content {
        gap: 12px;
    }

    #travocost-cookie-banner .tc-cookie-icon {
        width: 40px;
        height: 40px;

        flex-basis: 40px;

        font-size: 20px;
    }

    #travocost-cookie-banner .tc-cookie-text h2 {
        font-size: 18px;
    }

    #travocost-cookie-banner .tc-cookie-text p {
        font-size: 13px;
    }

    #travocost-cookie-settings .tc-cookie-modal {
        padding: 18px;
    }

    #travocost-cookie-settings
    .tc-cookie-category-info p {
        font-size: 12px;
    }
}