.loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #0d6efd;
    width: 20px;
    height: 20px;
    -webkit-animation: spin 0.5s linear infinite; /* Safari */
    animation: spin 0.5s linear infinite;
}
/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.paymentcontainer {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    /* overflow:auto;*/
    margin-left: auto;
    margin-right: auto;
    height: auto;
    width: 100%;
    max-width: 1220px;
    text-align: center;
}
.paymentrow {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}
.paymentimg {
    width: auto;
    height: 4vh;
    background: black;
    margin: 4px;
    border-radius: 4px;
}

.membershipwarning {
    color: red;
    font-style: italic;
    font-weight: bold;
    padding-top: 4px;
    display: none;
}
.membershipbuttonwrap {
    display: flex;
    flex-wrap: wrap;
}
.membershipbuttonwrapdob {
    display: flex;
}
.membershipbutton {
    width: auto;
}

hr {
    height: 2px !important;
}

.orderlink {
    color: black;
}

.orderblock {
    border: 2px solid #cccccc;
    border-radius: 0px;
    color: black;
    background-color: #fdfdfd;
    margin-bottom: 16px;
}

.orderheading {
    padding: 6px 14px;
    margin-bottom: 0px;
}

.orderflex {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.orderitem {
    text-align: left;
    background-color: #eeeeee;
    padding: 2px 14px;
    margin: 0px;
}

.orderitemalt {
    background-color: white;
}

.orderbottom {
    text-align: center;
    padding: 4px;
    margin: 0px;
    font-style: oblique;
    font-variant: small-caps;
    background-color: #f0f0ff;
}

.summary-left {
    flex-basis: 30%;
    font-style: normal;
}
.summary-right {
    flex-basis: 70%;
    font-style: normal;
    text-align: right;
}

.invalid_entry {
    padding: 1rem;
    color: red;
    font-size: 1.1rem;
    font-weight: 500;
    display: none;
}

/* Fixed container positioned at the bottom of the viewport */
.cookie-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 20px 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: none; /* Controlled via JS */
    animation: slideUp 0.4s ease-out;
}

/* Inner layout wrapper to manage alignment */
.cookie-box {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Text block styles */
.cookie-text {
    font-size: 16px;
    line-height: 1.5;
    color: #e0e0e0;
    margin: 0;
}

    .cookie-text a {
        color: #4dadff;
        text-decoration: underline;
    }

/* Button alignment layout */
.cookie-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-shrink: 0;
}

/* Shared button foundation styling */
.cookie-btn {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    min-width: 110px;
    text-align: center;
    box-sizing: border-box;
}

/* Equal prominence styling rule for Accept vs Reject */
.cookie-btn-reject {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #555555;
}

    .cookie-btn-reject:hover {
        background-color: #333333;
        border-color: #777777;
    }

.cookie-btn-accept {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 2px solid #ffffff;
}

    .cookie-btn-accept:hover {
        background-color: #e0e0e0;
        border-color: #e0e0e0;
    }

/* Animation for smooth UI entrance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* MOBILE OPTIMIZATION: Stacks text and buttons cleanly on small viewports */
@media (max-width: 768px) {
    .cookie-box {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        padding: 12px; /* Marginally larger touch target for mobile devices */
    }
}

.ai-style-change-1 {
    div& {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 0px;
        flex-wrap: wrap;
        margin: 0px;
        width: 100%;
    }
}

.ai-style-change-2 {
    .form-group& {
        flex: 1 1 0%;
        margin-bottom: 0px;
        min-width: 0px;
        display: flex;
        align-items: center;
        margin: 0px;
        padding: 0px;
        height: 48px;
        width: auto;
        max-width: none;
    }
}

.ai-style-change-3 {
    .cid-uYopGaXexd .mbr-section-btn& {
        width: auto;
        margin: 0px;
        padding-bottom: 3px;
        flex: 0 0 auto;
        padding: 0px;
        display: flex;
        align-items: center;
        height: 48px;
        max-width: none;
    }
}

.ai-style-change-4 {
    .text-black& {
        width: 100%;
        flex-basis: 100%;
        margin-bottom: 10px;
        margin: 0px 0px 10px;
        padding: 0px;
    }
}

.ai-style-change-6 {
    .cid-uYopGaXexd .mbr-section-btn .btn& {
        white-space: nowrap;
        padding: 0px 20px;
        width: auto;
        height: 100%;
        margin: 0px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 0px;
        padding-bottom: 0px;
        line-height: 1;
        vertical-align: top;
    }
}

.ai-style-change-13 {
    .form-control& {
        height: 100%;
        box-sizing: border-box;
        margin: 0px;
        vertical-align: top;
        width: 100%;
        min-width: 0px;
    }
}

.ai-style-change-36 {
    .voucher-row-inner& {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        width: 100%;
        gap: 10px;
    }
}

.ai-style-change-1 h5 {
    width: 100% !important;
    margin: 8px 0 10px 0 !important;
}

/* 3. The inner row forces the Input and Button to be side-by-side */
.voucher-row-inner {
    display: flex !important;
    flex-direction: row !important; /* Side-by-side */
    flex-wrap: nowrap !important; /* Never wrap to next line */
    align-items: flex-start !important;
    width: 100% !important;
    gap: 10px !important;
}

/* 4. Input Wrapper takes up remaining space */
.ai-style-change-1 .ai-style-change-2 {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 48px !important;
    margin: 0 !important;
    display: flex !important;
}

/* 5. Button Wrapper stays as small as the word "Apply" */
#btnSRVoucherApply {
    flex: 0 0 auto !important;
    height: 48px !important;
    margin: 0 !important;
    display: flex !important;
}

    /* 6. Ensure actual elements fill the 48px height */
    .ai-style-change-1 .ai-style-change-2 input,
    #btnSRVoucherApply button {
        height: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    #btnSRVoucherApply button {
        padding: 0 20px !important;
        white-space: nowrap !important;
    }