/* sticky-cart.css - Sticky cart styling med forbedret mobil swipe og iOS fixes */

/* HIDE the old side panel and navigation */
.booking-side-panel {
    display: none !important;
}

.booking-step:not(.step-1)>.step-navigation {
    display: none !important;
}

/* UPDATED STICKY CART STYLES */

/* GLOBAL FONT RULE FOR STICKY CART - ENSURES ALL ELEMENTS USE BARLOW */
body .booking-summary-card,
body .booking-summary-card *,
body .booking-summary-card .match-title,
body .booking-summary-card .venue-info,
body .booking-summary-card .match-time-info,
body .booking-summary-card .match-time-info span,
body .booking-summary-card .match-time-info strong,
body .booking-summary-card .price-display,
body .booking-summary-card .price-amount,
body .booking-summary-card .price-note {
    font-family: 'Barlow' !important;
}

/* Base sticky cart styles WITH iOS FIXES */
.booking-summary-card {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background-color: #1E2B34;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
    font-family: 'Barlow' !important;
    z-index: 1000;
    border-radius: 0 !important;
    margin: 0 !important;
    min-height: 100px;
    max-height: 50vh;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    display: none;
    transition: box-shadow 0.3s ease;

    /* iOS Safari fixes for fixed positioning */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

/* iOS specific fixes for proper fixed positioning */
@supports (-webkit-touch-callout: none) {
    .booking-summary-card {
        position: fixed !important;
        position: -webkit-sticky !important;
        bottom: 0 !important;
        /* Force GPU acceleration */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* When visible */
.booking-summary-card.visible {
    display: block !important;
}

.summary-card-content {
    display: flex;
    align-items: center;
    padding: 20px 20px;
    min-height: 80px;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    font-family: 'Barlow' !important;
    box-sizing: border-box;
}

/* Match info row */
.match-info-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    font-family: 'Barlow' !important;
}

/* Image container */
.match-image {
    width: 164px !important;
    height: 105px !important;
    min-width: 164px !important;
    min-height: 105px !important;
    max-width: 164px !important;
    max-height: 105px !important;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #2a3441;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow' !important;
}

.match-image img {
    width: 164px !important;
    height: 105px !important;
    min-width: 164px !important;
    min-height: 105px !important;
    max-width: 164px !important;
    max-height: 105px !important;
    display: block !important;
}

/* Match details section */
.match-details {
    flex: 1;
    padding-right: 8px;
    color: #ffffff;
    min-width: 0;
    font-family: 'Barlow' !important;
}

.match-details * {
    font-family: 'Barlow' !important;
}

body .booking-summary-card .match-details .match-title {
    font-size: 25px !important;
    font-weight: 800 !important;
    margin: 0 0 4px 0 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
    font-family: 'Barlow' !important;
    margin-bottom: 5px !important;
}

body .booking-summary-card .match-details .venue-info {
    font-size: 20px !important;
    color: #94a3b8 !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
    font-family: 'Barlow' !important;
}

body .booking-summary-card .match-details .match-time-info {
    display: block !important;
    margin-bottom: 0px !important; /* Reduceret fra 2px */
    font-size: 12px !important;
    font-family: 'Barlow' !important;
    line-height: 16px !important; /* Reduceret fra 20px */
    font-weight: bold;
}

/* Hovedcontainere for hver info-linje */
body .booking-summary-card .match-details .match-time-info,
body .booking-summary-card .match-details .match-time-info {
    display: block !important;
    margin-bottom: 2px !important;
    font-size: 12px !important;
    font-family: 'Barlow' !important;
    line-height: 22px !important;
    font-weight: bold;
}

/* Inline spans inden i containerne */
body .booking-summary-card .match-details .match-time-info span.departure-date-display,
body .booking-summary-card .match-details .match-time-info span.to-text,
body .booking-summary-card .match-details .match-time-info span.return-date-display,
body .booking-summary-card .match-details .match-time-info span.package-includes {
    font-weight: 400 !important;
    display: inline !important;
    margin-bottom: 0 !important;
    font-family: 'Barlow' !important;
    color: #ffffff !important;
}

body .booking-summary-card .match-details .match-time-info strong {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-family: 'Barlow' !important;
    display: inline !important;
}

/* Pricing and navigation section */
.pricing-nav-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 200px;
    flex-shrink: 0;
    justify-content: center;
    margin-left: auto;
    font-family: 'Barlow' !important;
}

.price-display {
    text-align: right;
    color: #ffffff;
    font-family: 'Barlow' !important;
}

.price-label {
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 2px;
    font-weight: 400;
    font-family: 'Barlow' !important;
}

.price-amount {
    font-size: 25px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
    line-height: 1.1;
    font-family: 'Barlow' !important;
}

.price-note {
    font-size: 13px;
    color: #a0a8b8;
    line-height: 1.2;
    font-family: 'Barlow' !important;
}

/* Navigation buttons in sticky card - DESKTOP STYLES */
@media (min-width: 769px) {
    .booking-summary-card .step-navigation {
        display: flex !important;
        gap: 8px;
        margin: 0;
        justify-content: flex-end;
        width: 100%;
        font-family: 'Barlow' !important;
    }

    .booking-summary-card .prev-step {
        background-color: #08605F;
        color: #ffffff;
        border: none;
        padding: 8px 14px;
        border-radius: 6px;
        cursor: pointer;
        text-transform: uppercase;
        font-size: 11px;
        font-weight: 600;
        white-space: nowrap;
        font-family: 'Barlow' !important;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .booking-summary-card .next-step {
        background-color: #08605F;
        color: #ffffff;
        border: none;
        padding: 8px 14px;
        border-radius: 6px;
        cursor: pointer;
        text-transform: uppercase;
        font-size: 11px;
        font-weight: 600;
        white-space: nowrap;
        transition: all 0.2s;
        font-family: 'Barlow' !important;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .booking-summary-card .prev-step {
        background-color: transparent;
        color: #ffffff;
        min-width: 70px;
        text-decoration: underline;
        text-underline-offset: 4px;
        position: relative;
        padding-left: 28px;
    }

    .booking-summary-card .prev-step::before {
        content: "←";
        position: absolute;
        left: -0px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        color: #ffffff;
        pointer-events: none;
        margin-right: 8px !important;
        width: 16px !important;
        text-align: center;
        display: inline-block;
        font-family: 'Barlow' !important;
    }

    .booking-summary-card .next-step {
        min-width: 120px;
        background-color: #08605F;
    }

    .booking-summary-card .next-step:hover:not(.disabled) {
        background-color: #025b4e;
    }

    .booking-summary-card .next-step.disabled {
        background-color: #4a5568 !important;
        cursor: not-allowed !important;
        opacity: 0.6 !important;
    }
}

/* Summary rows */
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Barlow' !important;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row .label {
    flex: 1;
    text-align: left;
    padding-right: 10px;
    font-weight: normal;
    color: #94a3b8;
    font-family: 'Barlow' !important;
}

.summary-row .value {
    text-align: right;
    color: #ffffff;
    font-weight: bold;
    font-family: 'Barlow' !important;
}

/* Deposit amount styling */
.summary-row.deposit-amount {
    font-weight: bold;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Barlow' !important;
}

/* Focus states for accessibility */
.booking-summary-card .prev-step:focus,
.booking-summary-card .next-step:focus {
    outline: 2px solid #08605F;
    outline-offset: 2px;
}

/* Touch feedback for buttons */
.booking-summary-card .prev-step.touching,
.booking-summary-card .next-step.touching,
.booking-summary-card .prev-step.active-press,
.booking-summary-card .next-step.active-press {
    transform: scale(0.98);
    opacity: 0.8;
    transition: all 0.1s ease;
}

/* Body padding when sticky cart is active */
body.has-sticky-cart {
    padding-bottom: 120px;
}

/* Ensure main container doesn't overlap sticky cart */
.football-booking-container {
    padding-bottom: 140px !important;
}

/* Force full width on all screen sizes */
@media all {
    .booking-summary-card {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        transform: none !important;
    }
}

/* ===== ENHANCED MOBILE FUNCTIONALITY WITH iOS FIXES ===== */
@media (max-width: 768px) {

    /* Mobile sticky cart container WITH iOS FIXES */
    .booking-summary-card {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        min-height: 140px !important;
        max-height: 140px !important;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: max-height, transform;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);

        /* iOS Safari specific fixes */
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-overflow-scrolling: touch;
    }

    /* iOS Safari specific positioning fix */
    @supports (-webkit-touch-callout: none) {
        .booking-summary-card {
            position: fixed !important;
            bottom: 0 !important;
            bottom: constant(safe-area-inset-bottom) !important;
            bottom: env(safe-area-inset-bottom) !important;
            /* Ensure it stays fixed during scroll */
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
        }

        /* Fix for iOS bounce scroll */
        body.has-sticky-cart {
            position: relative;
            height: 100%;
            overflow-x: hidden;
        }
    }

    /* Expanded state */
    .booking-summary-card.expanded {
        max-height: 75vh !important;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    }

    /* Dragging state */
    .booking-summary-card.dragging {
        transition: none !important;
    }

    .travel-period-display {
        display: none !important;
    }

    /* ENHANCED Swipe handle area - FIXED TO TOP OF CART */
    .mobile-swipe-handle {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 40px;
        cursor: pointer;
        z-index: 20;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 20px 20px 0 0;
        touch-action: pan-y;
        /* Ensure it moves with the cart */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    /* Swipe indicator */
    .mobile-swipe-indicator {
        width: 90px;
        height: 7px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 4px;
        margin-top: 10px;
        transition: all 0.2s ease;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        /* Keep it attached to handle */
        position: relative;
    }

    .mobile-swipe-handle:hover .mobile-swipe-indicator,
    .mobile-swipe-handle:active .mobile-swipe-indicator {
        background: rgba(255, 255, 255, 0.95);
        transform: scaleX(1.1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    }

    /* Animated arrow indicator */
    .mobile-swipe-arrow {
        display: none;
    }

    .mobile-swipe-arrow svg {
        width: 24px;
        height: 24px;
        stroke: #ffffff;
        stroke-width: 2.5;
        transition: transform 0.3s ease;
    }

    /* Enhanced swipe hint */
    .mobile-swipe-hint {
        position: absolute !important;
        bottom: 110px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(8, 96, 95, 0.95);
        color: white;
        padding: 14px 28px;
        border-radius: 25px;
        font-size: 15px;
        font-weight: 600;
        opacity: 0;
        transition: all 0.3s ease;
        white-space: nowrap;
        text-align: center;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        z-index: 30;
        pointer-events: auto;
        cursor: pointer;
    }

    .mobile-swipe-hint .hint-content {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-swipe-hint svg {
        width: 22px;
        height: 22px;
        transition: transform 0.3s ease;
    }

    /* Show hint with pulse animation */
    .mobile-swipe-hint.pulse-hint {
        opacity: 1;
        animation: pulseHint 2s ease-in-out infinite;
    }

    @keyframes pulseHint {

        0%,
        100% {
            transform: translateX(-50%) translateY(0) scale(1);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        }

        50% {
            transform: translateX(-50%) translateY(-5px) scale(1.05);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        }
    }

    /* Hide hint when user has interacted */
    .booking-summary-card.user-has-swiped .mobile-swipe-hint:not(.pulse-hint) {
        opacity: 0;
        pointer-events: none;
    }

    /* Visual drag indicator */
    .mobile-drag-indicator {
        position: fixed !important;
        bottom: 150px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(8, 96, 95, 0.85);
        color: white;
        padding: 10px 20px;
        border-radius: 22px;
        font-size: 26px;
        font-weight: bold;
        opacity: 0;
        transition: opacity 0.2s ease;
        pointer-events: none;
        z-index: 40;
    }

    .mobile-drag-indicator.up {
        animation: bounceUp 0.5s ease-out;
    }

    /* Navigation only section - FIXED TO BOTTOM OF CART */
    .mobile-nav-only {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #1E2B34;
        padding: 25px 20px 35px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 5;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
        background: linear-gradient(to bottom, #1E2B34 0%, #1a2630 100%);
        /* Ensure it moves with the cart */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    /* Safe area support for gesture navigation */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .mobile-nav-only {
            padding-bottom: calc(35px + env(safe-area-inset-bottom));
        }

        .booking-summary-card {
            /* Adjust for safe area */
            bottom: 0 !important;
            bottom: env(safe-area-inset-bottom) !important;
        }
    }

    .mobile-nav-only .step-navigation {
        display: flex !important;
        gap: 24px !important;
        margin: 0 !important;
        justify-content: center !important;
        min-height: 52px;
    }

    /* Details section - hidden by default */
    .mobile-details-content {
        padding: 55px 16px 90px 16px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
        overflow-y: auto;
        max-height: calc(75vh - 140px);
        -webkit-overflow-scrolling: touch;
    }

    .booking-summary-card.expanded .mobile-details-content {
        opacity: 1;
        transform: translateY(0);
        margin-bottom: 35px;
    }

    /* Adjust body padding for collapsed state */
    body.has-sticky-cart {
        padding-bottom: 140px !important;
    }

    body.has-sticky-cart.cart-expanded {
        padding-bottom: 160px !important;
    }
}

/* ===== Enhanced Mobile optimizations ===== */
@media (max-width: 768px) {

    /* STICKY CART CONTAINER */
    .booking-summary-card {
        min-height: 140px !important;
        max-height: 140px !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.4) !important;
    }

    .booking-summary-card.expanded {
        max-height: 75vh !important;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5) !important;
    }

    .summary-card-content {
        padding: 14px 16px !important;
        min-height: 85px !important;
        gap: 12px !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* MATCH INFO ROW */
    .match-info-row {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
        margin-bottom: 10px !important;
    }

    /* IMAGE */
    .match-image {
        width: 85px !important;
        height: 65px !important;
        min-width: 85px !important;
        min-height: 65px !important;
        max-width: 85px !important;
        max-height: 65px !important;
        flex-shrink: 0 !important;
        border-radius: 8px !important;
    }

    .match-image img,
    .match-image .image-placeholder {
        width: 85px !important;
        height: 65px !important;
        border-radius: 8px !important;
    }

    /* MATCH DETAILS */
    .match-details {
        flex: 1 !important;
        min-width: 0 !important;
        padding-right: 0 !important;
    }

    body .booking-summary-card .match-details .match-title {
        font-size: 17px !important;
        font-weight: 800 !important;
        margin: 0 0 3px 0 !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body .booking-summary-card .match-details .venue-info {
        font-size: 14px !important;
        margin-bottom: 5px !important;
        line-height: 1.15 !important;
        color: #94a3b8 !important;
    }

body .booking-summary-card .match-details .match-time-info {
    font-size: 10px !important;
    color: #94a3b8 !important;
    line-height: 1.3 !important;
    font-family: 'Barlow' !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

    body .booking-summary-card .match-details .match-time-info,
    body .booking-summary-card .match-details .match-time-info .package-info-display {
        display: block !important;
        margin-bottom: 2px !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Rejseperiode formatering */
    body .booking-summary-card .match-details .match-time-info span.departure-date-display,
    body .booking-summary-card .match-details .match-time-info span.to-text,
    body .booking-summary-card .match-details .match-time-info span.return-date-display {
        font-size: 11px !important;
        font-weight: 400 !important;
        color: #ffffff !important;
        display: inline !important;
    }

    body .booking-summary-card .match-details .match-time-info strong {
        font-size: 11px !important;
        font-weight: 600 !important;
        color: #ffffff !important;
    }

    /* PRICING AND NAVIGATION SECTION */
    .pricing-nav-section {
        width: 100% !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 14px !important;
        min-width: auto !important;
        margin-top: -8px !important;
    }

    /* PRICE DISPLAY */
    .price-display {
        flex: 1 !important;
        text-align: left !important;
        min-width: 0 !important;
        margin-top: -8px;
        align-items: end !important;
    }

    .price-label {
        font-size: 12px !important;
        margin-bottom: 2px !important;
        color: #94a3b8 !important;
    }

    .price-amount {
        font-size: 17px !important;
        font-weight: 800 !important;
        line-height: 1.15 !important;
        margin-bottom: 2px !important;
        color: #ffffff !important;
    }

    .price-note {
        font-size: 10px !important;
        line-height: 1.15 !important;
        color: #94a3b8 !important;
    }

    /* NAVIGATION BUTTONS */
    .booking-summary-card .step-navigation {
        display: flex !important;
        gap: 20px !important;
        flex-shrink: 0 !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .booking-summary-card .prev-step,
    .booking-summary-card .next-step {
        padding: 16px 28px !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        min-height: 52px !important;
        border-radius: 26px !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #08605F !important;
        color: #ffffff !important;
        border: 2px solid transparent !important;
        transition: all 0.2s ease !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        flex: 1 !important;
        max-width: 160px !important;
        text-decoration: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        position: relative;
    }

    /* Touch feedback overlay */
    .booking-summary-card .prev-step::after,
    .booking-summary-card .next-step::after {
        content: '';
        position: absolute;
        top: -8px;
        right: -8px;
        bottom: -8px;
        left: -8px;
        border-radius: 34px;
    }

    .booking-summary-card .prev-step {
        position: relative !important;
        padding-left: 36px !important;
    }

    .booking-summary-card .prev-step::before {
        content: "←" !important;
        position: absolute !important;
        left: 18px !important;
        font-size: 18px !important;
        font-weight: bold !important;
    }

    .booking-summary-card .next-step {
        position: relative !important;
        padding-right: 36px !important;
    }

    .booking-summary-card .next-step::after {
        position: absolute !important;
        right: 18px !important;
        font-size: 18px !important;
        font-weight: bold !important;
    }

    .booking-summary-card .prev-step:hover:not(.disabled),
    .booking-summary-card .next-step:hover:not(.disabled) {
        background-color: #025b4e !important;
        transform: scale(1.02) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .booking-summary-card .prev-step:active:not(.disabled),
    .booking-summary-card .next-step:active:not(.disabled) {
        transform: scale(0.98) !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }

    .booking-summary-card .next-step.disabled {
        background-color: #4a5568 !important;
        cursor: not-allowed !important;
        opacity: 0.5 !important;
        box-shadow: none !important;
    }
}

/* Extra små skærme */
@media (max-width: 480px) {
    .booking-summary-card {
        min-height: 135px !important;
        max-height: 135px !important;
    }

    .booking-summary-card.expanded {
        max-height: 70vh !important;
    }

    .summary-card-content {
        padding: 12px 14px !important;
        min-height: 75px !important;
        gap: 10px !important;
    }

    /* Skjul image på meget små skærme */
    .match-image {
        display: none;
    }

    .match-image img,
    .match-image .image-placeholder {
        display: none;
    }

    /* Tekst størrelser */
    body .booking-summary-card .match-details .match-title {
        font-size: 16px !important;
    }

    body .booking-summary-card .match-details .venue-info {
        font-size: 13px !important;
    }

    body .booking-summary-card .match-details .match-time-info {
        font-size: 10px !important;
    }

    .price-amount {
        font-size: 15px !important;
    }

    .price-note {
        font-size: 9px !important;
    }

    /* Buttons på små skærme */
    .booking-summary-card .prev-step,
    .booking-summary-card .next-step {
        padding: 14px 24px !important;
        font-size: 12px !important;
        font-weight: bold !important;
        min-height: 48px !important;
        max-width: 140px !important;
    }

    .mobile-nav-only {
        padding: 22px 16px 30px 16px;
    }

    .mobile-swipe-indicator {
        width: 70px !important;
        height: 6px !important;
    }

    .mobile-swipe-hint {
        font-size: 13px !important;
        padding: 12px 24px !important;
        bottom: 105px !important;
    }
}

/* iPhone X og nyere enheder med gesture navigation */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 768px) {
        .booking-summary-card {
            /* Position with safe area */
            bottom: 0 !important;
            bottom: env(safe-area-inset-bottom) !important;
            /* Extra padding for gesture area */
            padding-bottom: env(safe-area-inset-bottom);
        }



        /* Adjust body padding */
        body.has-sticky-cart {
            padding-bottom: calc(140px + env(safe-area-inset-bottom)) !important;
        }
    }
}

/* Landscape mode for phones */
@media (max-width: 768px) and (orientation: landscape) {
    .booking-summary-card {
        min-height: 100px !important;
        max-height: 100px !important;
    }

    .booking-summary-card.expanded {
        max-height: 90vh !important;
    }

    .summary-card-content {
        padding: 10px 14px !important;
        min-height: 65px !important;
    }

    body .booking-summary-card .match-details {
        font-size: 14px !important;
    }

    .price-amount {
        font-size: 14px !important;
    }

    .booking-summary-card .prev-step,
    .booking-summary-card .next-step {
        padding: 12px 20px !important;
        font-size: 11px !important;
        min-height: 44px !important;
    }

    .mobile-swipe-handle {
        height: 30px !important;
    }

    .mobile-swipe-indicator {
        width: 60px !important;
        height: 5px !important;
        margin-top: 8px !important;
    }

    .mobile-swipe-hint {
        bottom: 90px !important;
        font-size: 12px !important;
        padding: 10px 20px !important;
    }

    .mobile-nav-only {
        padding: 18px 16px 25px 16px;
    }
}
/* Separate lines for travel period and package info on desktop */
body .booking-summary-card .match-details .match-time-info .travel-period-display,
body .booking-summary-card .match-details .match-time-info .package-info-display {
    display: block !important;
    margin-bottom: 1px !important; /* Reduceret fra 2px */
    line-height: 16px !important; /* Tættere linjehøjde */
}
body .booking-summary-card .match-details .match-time-info .package-info-display {
    margin-bottom: 0 !important;
}
/* Desktop adjustments */
@media (min-width: 769px) {

    /* Remove swipe functionality on desktop */
    .mobile-swipe-handle,
    .mobile-swipe-indicator,
    .mobile-swipe-arrow,
    .mobile-swipe-hint,
    .mobile-nav-only,
    .mobile-details-content,
    .mobile-drag-indicator {
        display: none !important;
    }

    /* Normal desktop layout */
    .booking-summary-card {
        left: 0;
        right: 0;
        transform: none;
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        bottom: 0;
    }

    .summary-card-content {
        padding: 16px 40px;
        max-width: 1200px;
    }

    .match-image {
        width: 164px;
        height: 105px;
    }

    .pricing-nav-section {
        min-width: 240px;
    }

    .booking-summary-card .prev-step,
    .booking-summary-card .next-step {
        padding: 12px 20px;
        font-size: 13px;
    }

    .booking-summary-card .prev-step {
        min-width: 90px;
    }

    .booking-summary-card .next-step {
        min-width: 160px;
    }

    /* Hover effect for cart itself */
    .booking-summary-card:hover {
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.4);
    }
}

/* Extra large screens */
@media (min-width: 1600px) {
    .summary-card-content {
        max-width: 1200px;
        padding: 16px 60px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .booking-summary-card {
        border: 2px solid #ffffff;
    }

    .booking-summary-card .prev-step,
    .booking-summary-card .next-step {
        border: 2px solid #ffffff;
    }

    .mobile-swipe-indicator {
        background: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .booking-summary-card,
    .booking-summary-card .prev-step,
    .booking-summary-card .next-step,
    .match-image img,
    .mobile-swipe-hint,
    .mobile-swipe-arrow svg,
    .mobile-drag-indicator {
        transition: none !important;
        animation: none !important;
    }

    .booking-summary-card .prev-step.touching,
    .booking-summary-card .next-step.touching,
    .booking-summary-card .prev-step.active-press,
    .booking-summary-card .next-step.active-press {
        transform: none !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .booking-summary-card {
        background-color: #111827;
        border-top: 1px solid #374151;
    }

    .match-image .image-placeholder {
        background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
        border-color: #4b5563;
        color: #6b7280;
    }

    .mobile-swipe-handle {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Print styles */
@media print {
    .booking-summary-card {
        display: none !important;
    }

    body.has-sticky-cart {
        padding-bottom: 0 !important;
    }
}

/* Submit button styling in sticky cart */
.booking-summary-card .next-step.complete-booking {
    background-color: #08605F !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    min-width: 160px !important;
}

.booking-summary-card .next-step.complete-booking:hover:not(.disabled) {
    background-color: #025b4e !important;
    transform: scale(1.02);
}

/* Fix for rejseperiode display issues */
@media (max-width: 768px) {

    /* Hide formatting characters */
    .booking-summary-card .match-time-info *::before,
    .booking-summary-card .match-time-info *::after {
        content: none !important;
    }

    /* Ensure text breaks properly */
    .travel-period-display {
        display: none;
    }

    .package-info-display {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }

    /* Clean up text */
    .departure-date-display,
    .return-date-display {
        display: inline !important;
        white-space: normal !important;
    }
}
@media (max-width: 768px) {
    /* Hide travel period completely on mobile - more specific selector */
    .booking-summary-card .match-details .match-time-info .travel-period-display,
    .booking-summary-card .travel-period-display,
    .travel-period-display {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Ensure only package info is shown on mobile */
    .booking-summary-card .match-details .match-time-info {
        font-size: 11px !important;
    }
    
    .booking-summary-card .match-details .match-time-info .package-info-display {
        display: block !important;
        visibility: visible !important;
    }
}
/* sticky-cart.css - Sticky cart med TOTAL MOBIL REDESIGN */

/* HIDE the old side panel and navigation */
.booking-side-panel {
    display: none !important;
}

.booking-step:not(.step-1)>.step-navigation {
    display: none !important;
}

/* GLOBAL FONT RULE FOR STICKY CART - ENSURES ALL ELEMENTS USE BARLOW */
body .booking-summary-card,
body .booking-summary-card *,
body .booking-summary-card .match-title,
body .booking-summary-card .venue-info,
body .booking-summary-card .match-time-info,
body .booking-summary-card .match-time-info span,
body .booking-summary-card .match-time-info strong,
body .booking-summary-card .price-display,
body .booking-summary-card .price-amount,
body .booking-summary-card .price-note {
    font-family: 'Barlow' !important;
}

/* Base sticky cart styles */
.booking-summary-card {
    position: fixed !important;
    background-color: #1E2B34;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
    font-family: 'Barlow' !important;
    z-index: 1000;
    display: none;
    transition: all 0.3s ease;
}

/* When visible */
.booking-summary-card.visible {
    display: block !important;
}

/* ===== DESKTOP STYLING (769px and up) ===== */
@media (min-width: 769px) {
    .booking-summary-card {
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
        margin: 0 !important;
        min-height: 100px;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
    }

    body.has-sticky-cart {
        padding-bottom: 120px;
    }

    .summary-card-content {
        display: flex;
        align-items: center;
        padding: 20px 20px;
        min-height: 80px;
        gap: 16px;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        font-family: 'Barlow' !important;
        box-sizing: border-box;
    }

    /* Match info row - Desktop */
    .match-info-row {
        display: flex;
        align-items: center;
        gap: 16px;
        flex: 1;
        font-family: 'Barlow' !important;
    }

    /* Image container - Desktop */
    .match-image {
        width: 164px !important;
        height: 105px !important;
        min-width: 164px !important;
        min-height: 105px !important;
        max-width: 164px !important;
        max-height: 105px !important;
        border-radius: 8px;
        overflow: hidden;
        flex-shrink: 0;
        background-color: #2a3441;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Barlow' !important;
    }

    .match-image img {
        width: 164px !important;
        height: 105px !important;
        min-width: 164px !important;
        min-height: 105px !important;
        max-width: 164px !important;
        max-height: 105px !important;
        display: block !important;
    }

    /* Match details section - Desktop */
    .match-details {
        flex: 1;
        padding-right: 8px;
        color: #ffffff;
        min-width: 0;
        font-family: 'Barlow' !important;
    }

    body .booking-summary-card .match-details .match-title {
        font-size: 25px !important;
        font-weight: 800 !important;
        margin: 0 0 4px 0 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
        font-family: 'Barlow' !important;
        margin-bottom: 5px !important;
    }

    body .booking-summary-card .match-details .venue-info {
        font-size: 20px !important;
        color: #94a3b8 !important;
        margin-bottom: 4px !important;
        line-height: 1.2 !important;
        font-family: 'Barlow' !important;
    }

    body .booking-summary-card .match-details .match-time-info {
        display: block !important;
        margin-bottom: 0px !important;
        font-size: 12px !important;
        font-family: 'Barlow' !important;
        line-height: 16px !important;
        font-weight: bold;
    }

    /* Pricing and navigation section - Desktop */
    .pricing-nav-section {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
        min-width: 200px;
        flex-shrink: 0;
        justify-content: center;
        margin-left: auto;
        font-family: 'Barlow' !important;
    }

    .price-display {
        text-align: right;
        color: #ffffff;
        font-family: 'Barlow' !important;
    }

    .price-label {
        font-size: 15px;
        color: #ffffff;
        margin-bottom: 2px;
        font-weight: 400;
        font-family: 'Barlow' !important;
    }

    .price-amount {
        font-size: 25px;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 2px;
        line-height: 1.1;
        font-family: 'Barlow' !important;
    }

    .price-note {
        font-size: 13px;
        color: #a0a8b8;
        line-height: 1.2;
        font-family: 'Barlow' !important;
    }

    /* Navigation buttons - Desktop */
    .booking-summary-card .step-navigation {
        display: flex !important;
        gap: 8px;
        margin: 0;
        justify-content: flex-end;
        width: 100%;
        font-family: 'Barlow' !important;
    }

    .booking-summary-card .prev-step,
    .booking-summary-card .next-step {
        border: none;
        padding: 8px 14px;
        border-radius: 6px;
        cursor: pointer;
        text-transform: uppercase;
        font-size: 11px;
        font-weight: 600;
        white-space: nowrap;
        font-family: 'Barlow' !important;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .booking-summary-card .prev-step {
        background-color: transparent;
        color: #ffffff;
        min-width: 70px;
        text-decoration: underline;
        text-underline-offset: 4px;
        position: relative;
        padding-left: 28px;
    }

    .booking-summary-card .prev-step::before {
        content: "←";
        position: absolute;
        left: -0px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        color: #ffffff;
    }

    .booking-summary-card .next-step {
        min-width: 120px;
        background-color: #08605F;
        color: #ffffff;
    }

    .booking-summary-card .next-step:hover:not(.disabled) {
        background-color: #025b4e;
    }

    .booking-summary-card .next-step.disabled {
        background-color: #4a5568 !important;
        cursor: not-allowed !important;
        opacity: 0.6 !important;
    }
}

/* ===== MOBILE STYLING - TOTAL REDESIGN (768px and below) ===== */
@media (max-width: 768px) {
    
    /* MINIMAL MOBILE STICKY CART */
    .booking-summary-card {
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
        background: #1E2B34;
        border-radius: 16px 16px 0 0 !important;
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3) !important;
        padding: 0 !important;
        overflow: visible !important;
        transform: none !important;
    }

    /* Remove ALL swipe/drag related elements */
    .mobile-swipe-handle,
    .mobile-swipe-indicator,
    .mobile-swipe-arrow,
    .mobile-swipe-hint,
    .mobile-drag-indicator,
    .mobile-details-content {
        display: none !important;
    }

    /* Remove expand/collapse functionality */
    .booking-summary-card.expanded,
    .booking-summary-card.dragging,
    .booking-summary-card.user-has-swiped {
        /* No special styling - always same height */
    }

    /* SIMPLE MOBILE LAYOUT */
    .summary-card-content {
        display: flex !important;
        flex-direction: column !important;
        padding: 12px 16px !important;
        gap: 12px !important;
    }

    /* Hide desktop match info on mobile */
    .match-info-row {
        display: none !important;
    }

    /* MOBILE PRICE AND NAVIGATION ROW */
    .pricing-nav-section {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 16px !important;
        margin: 0 !important;
    }

    /* MOBILE PRICE DISPLAY - MINIMAL */
    .price-display {
        flex: 0 0 auto !important;
        text-align: left !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .price-label {
        display: block !important;
        font-size: 10px !important;
        color: #94a3b8 !important;
        font-weight: 400 !important;
        order: 2 !important;
        margin-top: 4px !important;
    }
    .price-amount {
        font-size: 18px !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        order: 1 !important;
    }

    .price-note {
        display: none !important; /* Hide total price note on mobile */
    }

    /* MOBILE NAVIGATION BUTTONS */
    .booking-summary-card .step-navigation {
        display: flex !important;
        gap: 12px !important;
        flex: 1 !important;
        justify-content: flex-end !important;
        margin: 0 !important;
    }

    .booking-summary-card .prev-step,
    .booking-summary-card .next-step {
        padding: 12px 20px !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        border-radius: 24px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        border: none !important;
        transition: all 0.2s ease !important;
        white-space: nowrap !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .booking-summary-card .prev-step {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
        min-width: auto !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        text-decoration: none !important;
    }

    .booking-summary-card .prev-step::before {
        display: none !important; /* Remove arrow */
    }

    .booking-summary-card .next-step {
        background: #08605F !important;
        color: #ffffff !important;
        flex: 0 0 auto !important;
        font-weight: 800 !important;
        box-shadow: 0 2px 8px rgba(8, 96, 95, 0.3) !important;
    }

    .booking-summary-card .next-step:active:not(.disabled) {
        transform: scale(0.98) !important;
        box-shadow: 0 1px 4px rgba(8, 96, 95, 0.2) !important;
    }

    .booking-summary-card .next-step.disabled {
        background-color: #4a5568 !important;
        opacity: 0.6 !important;
        box-shadow: none !important;
    }

    /* MOBILE BODY PADDING - More space for content */
    body.has-sticky-cart {
        padding-bottom: 80px !important;
    }

    /* Ensure proper spacing for flight selection */
    .mobile-flight-app {
        padding-bottom: 100px !important;
    }

    .mobile-flight-content {
        padding-bottom: 120px !important;
    }

    /* Extra padding for show more button area */
    .mobile-show-more-container {
        margin-bottom: 40px !important;
    }
}

/* Small mobile adjustments */
@media (max-width: 375px) {
    .booking-summary-card .prev-step,
    .booking-summary-card .next-step {
        padding: 10px 16px !important;
        font-size: 12px !important;
        min-height: 40px !important;
    }

    .price-amount {
        font-size: 16px !important;
    }

    .pricing-nav-section {
        gap: 12px !important;
    }
}

/* iOS Safe area support */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 768px) {
        .booking-summary-card {
            padding-bottom: env(safe-area-inset-bottom) !important;
        }

        body.has-sticky-cart {
            padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
        }
    }
}

/* Summary rows - Desktop only */
@media (min-width: 769px) {
    .summary-row {
        display: flex;
        justify-content: space-between;
        padding: 5px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-family: 'Barlow' !important;
    }

    .summary-row:last-child {
        border-bottom: none;
    }

    .summary-row .label {
        flex: 1;
        text-align: left;
        padding-right: 10px;
        font-weight: normal;
        color: #94a3b8;
        font-family: 'Barlow' !important;
    }

    .summary-row .value {
        text-align: right;
        color: #ffffff;
        font-weight: bold;
        font-family: 'Barlow' !important;
    }

    /* Deposit amount styling */
    .summary-row.deposit-amount {
        font-weight: bold;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        font-family: 'Barlow' !important;
    }

    /* Separate lines for travel period and package info on desktop */
    body .booking-summary-card .match-details .match-time-info .travel-period-display,
    body .booking-summary-card .match-details .match-time-info .package-info-display {
        display: block !important;
        margin-bottom: 1px !important;
        line-height: 16px !important;
    }
}

/* Focus states for accessibility */
.booking-summary-card .prev-step:focus,
.booking-summary-card .next-step:focus {
    outline: 2px solid #08605F;
    outline-offset: 2px;
}

/* Complete booking button styling */
.booking-summary-card .next-step.complete-booking {
    background-color: #08605F !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.booking-summary-card .next-step.complete-booking:hover:not(.disabled) {
    background-color: #025b4e !important;
}

/* Print styles */
@media print {
    .booking-summary-card {
        display: none !important;
    }

    body.has-sticky-cart {
        padding-bottom: 0 !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .booking-summary-card {
        border: 2px solid #ffffff;
    }

    .booking-summary-card .prev-step,
    .booking-summary-card .next-step {
        border: 2px solid #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .booking-summary-card,
    .booking-summary-card .prev-step,
    .booking-summary-card .next-step,
    .match-image img {
        transition: none !important;
        animation: none !important;
    }
}
/* ===== MOBILE FLIGHT APP COMPATIBILITY ===== */
@media (max-width: 768px) {
    /* Når mobile flight app er aktiv, sørg for sticky cart er synlig */
    body.mobile-flight-app-active .booking-summary-card {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1001 !important;
        display: block !important;
        visibility: visible !important;
        transform: translateZ(0) !important; /* Force GPU acceleration */
        -webkit-transform: translateZ(0) !important;
    }
}