

.event-checkout-card {
    display: flex;
    flex-direction: column;
    background: #e5f4e7 url('../../images/termsbackgroundsvg.svg') no-repeat;
    background-position: left bottom;
    border-radius: 16px;
    position: relative;
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.event-checkout-new-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.event-checkout-info-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(36,33,67,0.08);
    padding: 2rem;
    flex: 1 1 0;
    width: calc(50% - 1rem);
    max-width: calc(50% - 1rem);
    min-width: 443px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.event-hpp-iframe-new {
    position: relative;
    height: 535px;
    flex: 1 1 0;
    width: calc(50% - 1rem);
    max-width: calc(50% - 1rem);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(36,33,67,0.08);
   
    box-sizing: border-box;
    min-width: 443px;
}

    .event-hpp-iframe-new iframe {
        width: 100%;
        height: 100%;
        min-height: 500px;
        border: none;
        border-radius: 12px;
        box-sizing: border-box;
        overflow: hidden;
    }

.event-hpp-iframe-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    background: #e5f4e7;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-checkout-info-title {
    font-family: 'Arvo';
    font-weight: 700;
    font-size: 1.5rem;
    color: #242143;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.event-checkout-info-details {
    margin-bottom: 0.5rem;
}

.event-checkout-info-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-family: 'Futura';
    font-size: 1rem;
    color: #242143;
}

.event-checkout-info-icon {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.event-checkout-info-divider {
    border: none;
    border-top: 1px solid #242143;
    margin: 0.5rem 0;
    width: 100%;
}

.event-checkout-image img {
    width: 100%;
    max-width: 456px;
    height: 250px;
    border-radius: 8px;
    object-fit: cover;
}

.event-checkout-info-payment {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.event-checkout-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-checkout-payment-label {
    font-family: 'Futura';
    font-weight: 500;
    font-size: 1rem;
    color: #242143;
}

.event-checkout-payment-value {
    font-family: 'Futura';
    font-weight: 500;
    font-size: 1rem;
    color: #242143;
}

.event-checkout-payment-row-bold .event-checkout-payment-label,
.event-checkout-payment-row-bold .event-checkout-payment-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.event-checkout-payment-row-total .event-checkout-payment-label,
.event-checkout-payment-row-total .event-checkout-payment-value {
    font-weight: 600;
    font-size: 1.05rem;
}

.event-checkout-main-content {
    max-height: 300px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
    flex: 1;
}

.event-checkout-content {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    padding: 1.7rem;
    max-width: 50%;
    min-height: 270px;
}

.event-checkout-booking-summary {
    flex: 1;
    padding: 0;
    margin: 0.1rem;
}

.event-checkout-service-title {
    font-family: 'Arvo';
    font-weight: 700;
    font-size: 1.35rem;
    color: #242143;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.event-checkout-details {
    margin-bottom: 0.4rem;
}

.event-checkout-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-family: 'Futura';
    font-size: 1rem;
    color: #242143;
}

@media (min-width: 1025px) {
    .event-checkout-details {
        display: flex;
        flex-wrap: wrap;
        gap: 0 1.5rem;
        margin-bottom: 0.4rem;
    }

    .event-checkout-detail-item:nth-child(1),
    .event-checkout-detail-item:nth-child(2) {
        margin-bottom: 0.4rem;
        flex: 0 0 auto;
    }

    .event-checkout-detail-item:nth-child(3),
    .event-checkout-detail-item:nth-child(4) {
        flex: 0 0 100%;
        margin-bottom: 0.4rem;
    }
}

.event-checkout-icon {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.event-checkout-divider {
    border: none;
    border-top: 1px solid #242143;
    margin: 0.25rem 0;
    width: 100%;
}

.event-checkout-payment-summary {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.event-checkout-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    max-width: 50%;
}

.event-checkout-main-content .checkout-error-container {
    min-height:282px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    max-width: 50%;
    padding: 0.5rem;
}

.event-checkout-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.7rem;
    width: 50%;
    margin-top: 0.5rem;
    justify-content: flex-start;
}

    .event-checkout-buttons .event-customer-info-btn {
        width: 50%;
    }

.event-checkout-buttons-mobile {
    width: 100%;
    margin-top: 1.5rem;
}

.iframe-loading-hidden {
    display: none;
}

.iframe-loading-visible {
    display: block;
}

@media (min-width: 700px) and (max-width: 1024px) {
    .event-checkout-buttons .event-customer-info-btn {
        width: 100%;
    }
    .event-bottom-image-sticky {
        bottom: -46px !important;
    }
    .event-checkout-error-icon-desktop {
      
        top: -28px;
        right: -62px;
    }
        .event-checkout-image img {
        max-width:100%;
    }
        .event-checkout-new-layout {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 1rem;
        align-items: stretch;
        padding: 0.5rem;
    }

    .event-hpp-iframe-new,
    .event-checkout-info-panel {
        width: 100% !important;
        min-width: 0 !important;
        min-height: auto;
        height: auto;
        margin-bottom: 1rem;
        max-width:100% !important;
    }

    .event-checkout-info-panel {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        padding: 1.8rem !important;
        margin-bottom: 1rem;
        box-sizing: border-box;
        min-height: 348px !important;
    }

    .event-checkout-main-content {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
        max-height:700px !important;
    }

    .event-checkout-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-bottom: 1rem !important;
    }
    .checkout-error-container-desktop {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .event-checkout-details,
    .event-checkout-info-details {
        width:500px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: center;
    }
  .event-checkout-detail-item{
        margin-bottom:0 !important;
    }
    .event-checkout-info-detail-item {
        margin-bottom: 0;
        flex: 0 0 auto;
    }

    .event-checkout-image {
        height:313px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-bottom: 1rem;
    }

    .event-checkout-buttons {
        width: 100%;
    }
}

@media (max-width: 699px) {
    .event-popup-card-price-ipad {
        display: none;
    }
    .event-checkout-card {
        padding: 1rem;
        border-radius: 16px;
        margin-bottom: 0;
    }

    .event-checkout-new-layout {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 1rem;
        align-items: stretch;
        padding: 0.5rem;
    }

    .event-checkout-main-content {
        flex-direction: column !important;
        gap: 0.75rem;
        align-items: stretch;
    }

    .event-checkout-content {
        flex: 1 1 0;
        max-width: none;
        width: auto;
        padding: 1rem;
        min-height: auto;
    }

    .event-checkout-image {
        flex: 1 1 0;
        max-width: none;
        width: auto;
        min-width: 0;
        margin-bottom: 0;
    }

        .event-checkout-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
        }

    .event-checkout-main-content .checkout-error-container {
        flex: 1 1 0;
        max-width: none;
        width: auto;
        min-width: 0;
        margin-bottom: 0;
    }

    .event-checkout-info-panel {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        padding: 16px !important;
        margin-bottom: 1rem;
        box-sizing: border-box;
        min-height: auto;
        order: 1;
    }

    .event-checkout-info-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .event-checkout-info-detail-item {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .event-checkout-payment-label,
    .event-checkout-payment-value {
        font-size: 0.95rem;
    }

    .event-checkout-payment-row-bold .event-checkout-payment-label,
    .event-checkout-payment-row-bold .event-checkout-payment-value {
        font-size: 1rem;
    }

    .event-checkout-payment-row-total .event-checkout-payment-label,
    .event-checkout-payment-row-total .event-checkout-payment-value {
        font-size: 0.98rem;
    }

    .event-checkout-service-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .event-checkout-detail-item {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .event-hpp-iframe-new {
        max-width:100%;
        width: 100% !important;
        min-width: 0 !important;
        min-height: auto;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        padding: 0.5rem;
        order: 2;
    }

        .event-hpp-iframe-new iframe {
            min-height: 400px;
        }

    .checkout-error-container {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 400px;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        padding: 1rem !important;
        order: 2;
    }

    .event-checkout-buttons {
        width: 100%;
        margin-top: 1rem;
    }

    .event-checkout-buttons-mobile {
        width: 100%;
        margin-top: 1.5rem;
    }
    
    .event-checkout-summary-wrapper.event-popup-scroll-content-full {
        max-height: calc(100vh - 120px) !important;
        height: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        flex: 1 1 auto !important;
        overscroll-behavior: contain !important;
    }
    
    .event-popup-container .event-popup-scroll-content-full {
        max-height: calc(100vh - 120px) !important;
        height: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        flex: 1 1 auto !important;
        overscroll-behavior: contain !important;
    }

    .event-checkout-card {
        flex: 0 0 auto !important;
        min-height: 100vh !important;

        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .event-checkout-new-layout {
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
        display: flex !important;
    }
}
.event-checkout-error-message-desktop {
    font-family: 'Arvo';
    
    font-style: normal;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #242143;
    margin: 1.5rem 0 2rem 0;
}
.event-checkout-error-icon-desktop {
    position: absolute;
    top: -40px;
    right: -4px;
    width: 80px;
    height: 50px;
    z-index: 1;
}

.oops-checkout-error-icon-desktop {
    position: absolute;
    top: -20px;
    right: -4px;
    width: 80px;
    height: 50px;
    z-index: 1;
}

.event-bottom-image-sticky {
    width: 220px;
    position: absolute !important;
    bottom: -25px;
    left: 0;
}
@media (min-width: 703px) and (max-width: 1024px) {
    .event-checkout-buttons {
        display: flex !important; 
    }
}

.event-popup-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    isolation: isolate;
    position: fixed;
    left: 50%;
    top: 50%; 
    transform: translate(-50%, -50%); 
    height: 780px; 
    width: 1080px; 
    background: #fff;
    border-radius: 1rem;
    z-index: 1010;
    box-sizing: border-box;
    min-height: auto; 
    max-height: auto; 
}

