.buy-flow-2024 .h4 {
    text-transform: uppercase;
    color: #028652;
}

.buy-flow-2024.choose-product .description {
    font-size: 14px;
}

.buy-flow-2024.choose-product .product-block {
    /*background-color: #f1f2f1;*/
    border: 1px solid #028652;
    padding: 30px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Ensure product columns stretch to equal height */
.buy-flow-2024.choose-product .row.mt-5.mb-5 {
    display: flex;
    flex-wrap: wrap;
}

.buy-flow-2024.choose-product .row.mt-5.mb-5 > .col-md-6 {
    display: flex;
}

/* Push the "View More Information" link to bottom */
.buy-flow-2024.choose-product .product-block > .mt-4:last-child {
    margin-top: auto !important;
    padding-top: 20px;
}

.buy-flow-2024.choose-product .product-block.no-border {
    border: none;
}

.buy-flow-2024.view-product .price-from-block {
    font-size: 20px;
    font-weight: 600;
}

.buy-flow-2024.view-product .price-from-block span {
    text-transform: uppercase;
    color: #028652;
}

.buy-flow-2024.view-product .new-syndicate-form {
    background-color: #f1f2f1;
    padding: 30px;
}

.buy-flow-2024.choose-product .product-option-title {
    line-height: 160%;
}

.buy-flow-2024.choose-product .product-option-title .star {
    font-size: 16px;
    vertical-align: top;
}

.buy-flow-2024.choose-product .product-option-title .star:nth-child(1) {
    margin-right: 6px;
}

.buy-flow-2024.choose-product .product-option-title .star:nth-child(2) {
    margin-left: 6px;
}

.buy-flow-2024.choose-product .price-from {
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
    color: #028652;
}

.buy-flow-2024.choose-product .price-from .value {
    color: #5c5c5c;
}

.buy-flow-2024.choose-product .product-block a {
    font-size: 14px;
}

.buy-flow-2024.choose-product .product-block input[type="text"]:before {
    content: "asdf";
}

.login-control {
    padding-top: 10px !important;
    padding-bottom: 10px !important;;
    font-size: 16px;
}

.extra-label {
    font-weight: bold;
    display: block;
}

.product-details-cart {
    padding-right: 30px;
}

.buy-flow-error {
    background-color: #ffffff;
    color: #d13939;
    border: 1px solid #d13939;
    border-radius: 0px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

.buy-flow-error div {
    padding-top: 8px;
    padding-bottom: 8px;
}

.buy-flow-error div a {
    color: #d13939;
    font-weight: bold;
    text-decoration: underline;
}

.wizardBlock form label.bf-label-error {
    color: #d13939 !important;
}

/* =============================================
   Responsive: Buy Flow Wizard
   ============================================= */

/* Wizard steps container — desktop uses gap for even spacing */
.wizard-steps-container {
    gap: 10px;
    align-items: stretch !important;
}

/* Wizard step tabs — flex to fill available space equally */
.wizard-step {
    flex: 1 1 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 16px 10px !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0 !important;
    background: #fff !important;
    cursor: pointer;
}

/* Active tab — green border at all sizes */
.wizard-step.active {
    border-color: #028652 !important;
    color: #028652 !important;
    font-weight: 600 !important;
}

.wizard-step.active svg.svg-inline--fa {
    color: #028652 !important;
}

/* Reset the inner span — override ccc3.css at all sizes (needs higher specificity) */
.wizard-steps-container .wizard-step span {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
    text-align: center !important;
    border-radius: 0 !important;
}

/* Active tab span — extra specificity to beat ccc3.css */
.wizard-steps-container .wizard-step.active span {
    background: transparent !important;
    border: none !important;
}

/* --- Wizard scroll wrapper and indicators --- */
.wizard-steps-wrapper {
    position: relative;
}

.wizard-scroll-indicator {
    display: none;
}

/* --- Tablet & below (< 992px): Fixed-width scrollable cards --- */
@media (max-width: 991.98px) {
    /* Wrapper with fade gradient on right edge */
    .wizard-steps-wrapper {
        position: relative;
    }

    .wizard-steps-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 40px;
        height: calc(100% - 30px);
        background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 70%, rgba(255,255,255,1) 100%);
        pointer-events: none;
        z-index: 10;
    }

    /* Hide gradient when scrolled to end */
    .wizard-steps-wrapper.scrolled-end::after {
        opacity: 0;
    }

    /* Scroll indicator below tabs */
    .wizard-scroll-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 12px;
        color: #6c757d;
        padding-bottom: 10px;
    }

    .wizard-scroll-indicator i {
        font-size: 14px;
        animation: scrollHint 1.5s ease-in-out infinite;
    }

    @keyframes scrollHint {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(5px); }
    }

    .wizard-steps-container {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 0;
    }

    .wizard-steps-container::-webkit-scrollbar {
        display: none;
    }

    .wizard-step {
        flex: 0 0 120px !important;
        width: 120px !important;
        padding: 14px 8px !important;
        color: #6c757d !important;
    }

    /* Smaller font on mobile spans */
    .wizard-steps-container .wizard-step span {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    /* Larger icons on mobile */
    .wizard-steps-container .wizard-step svg.svg-inline--fa {
        display: block !important;
        height: 30px !important;
        width: 30px !important;
        margin: 0 auto 8px auto !important;
        color: #6c757d;
    }

    /* Accessory cards: stack image above text */
    label.accessoriesBlock {
        flex-direction: column !important;
        text-align: center;
    }

    /* Accessory image: full width when stacked */
    label.accessoriesBlock .accessoriesBlock-image-wrap {
        width: 100%;
    }

    label.accessoriesBlock .accessoriesBlock-image-wrap img {
        width: 100%;
        height: 160px !important;
    }

    /* Extension cards: left-align text on tablet/mobile */
    .showInfo.text-center {
        text-align: left !important;
    }
}

/* --- Phone (< 576px): Form field stacking --- */
@media (max-width: 575.98px) {
    /* Smaller tab cards on phone */
    .wizard-step {
        flex: 0 0 100px !important;
        width: 100px !important;
    }

    /* Force col-6 fields inside the form to full-width */
    .wizardBlock form .row > .col-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Reduce general spacing on mobile */
    .product-details-cart {
        padding-right: 15px;
    }

    .buy-flow-2024.view-product .new-syndicate-form {
        padding: 15px;
    }
}

/* =============================================
   Responsive: Choose Product Page (/buy/)
   ============================================= */

/* --- Tablet & below (< 992px): Stack columns, remove border --- */
@media (max-width: 991.98px) {
    /* Remove border when columns stack */
    .buy-flow-2024.choose-product > .row > .col-lg-7[style*="border-right"] {
        border-right: none !important;
        padding-bottom: 30px;
        margin-bottom: 30px;
        border-bottom: 1px solid #028652;
    }

    /* Remove hard-coded margins */
    .buy-flow-2024.choose-product .row[style*="margin-right: 50px"],
    .buy-flow-2024.choose-product .row[style*="margin-left: 40px"] {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    /* Login section margins */
    .buy-flow-2024.choose-product .product-block.no-border[style*="margin-left: 50px"] {
        margin-left: 0 !important;
    }
}

/* --- Phone (< 768px): Full width product blocks --- */
@media (max-width: 767.98px) {
    /* Make product blocks full width */
    .buy-flow-2024.choose-product .row.mt-5.mb-5 > .col-md-6,
    .buy-flow-2024.choose-product .row.mt-5.mb-5 > .col-md-6.text-center {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-top: 15px !important;
    }

    /* Reset equal heights on mobile - stack naturally */
    .buy-flow-2024.choose-product .product-block {
        height: auto;
    }

    /* Remove the constraining margins on parent rows */
    .buy-flow-2024.choose-product .row[style*="margin-right"],
    .buy-flow-2024.choose-product .row[style*="margin-left"] {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

/* --- Phone (< 576px): Additional mobile styles --- */
@media (max-width: 575.98px) {
    /* Reduce product block padding */
    .buy-flow-2024.choose-product .product-block {
        padding: 20px;
    }

    /* Form elements stack on mobile */
    .buy-flow-2024.choose-product .product-block select {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

    .buy-flow-2024.choose-product .product-block input[type="submit"] {
        width: 100%;
        margin-top: 5px !important;
    }

    /* Banner text adjustments */
    .buy-flow-2024.choose-product .banner .section-title-1 {
        font-size: 1.3rem;
    }

    .buy-flow-2024.choose-product .banner-text {
        font-size: 14px;
    }
}

/* --- Very small screens (< 375px): DOB inputs & nav buttons --- */
@media (max-width: 374.98px) {
    /* Shrink DOB day/month fields */
    .wizardBlock form input[name="dob_day"],
    .wizardBlock form input[name="dob_month"] {
        width: 50px !important;
        margin-right: 4px !important;
    }

    /* Shrink DOB year field */
    .wizardBlock form input[name="dob_year"] {
        width: 70px !important;
    }

    /* Slightly reduce nav button sizing */
    [data-container="navigation-buttons"] .btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}
