/* Outer wrapper - extra top space for phone overflow above banner */
#cz-vdp-buynow-info {
    padding-top: 30px;
}

/* BuyNow Banner — overflow visible so phones can extend above top edge */
.buynow-banner {
    position: relative;
    border-radius: 12px;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

/* Background lives on ::before so banner can be overflow:visible */
.buynow-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(to bottom, #A40F2C 0%, #A40F2C 30%, rgba(255, 255, 255, 0.2) 100%), #A40F2C;
    z-index: 0;
}

/* CarZing Theme */
.buynow-banner.carzing::before {
    background: linear-gradient(to right, #C74402 0%, #F06010 100%);
}

.buynow-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 80px;
    padding: 12px 45px 12px 55px;
    min-height: 255px;
}

/* Phone image extends upward above the banner top */
.buynow-banner-left {
    flex: 0 0 auto;
    width: 245px;
    max-width: 245px;
    align-self: flex-end;
    margin-top: -35px;
}

.buynow-phones-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Right text column - vertically centered within banner */
.buynow-banner-right {
    flex: 0 0 auto;
    width: calc(100% - 245px - 80px);
    color: white;
    align-self: center;
    padding: 10px 0;
    text-align: center;
}

.buynow-main-heading {
    font-size: 1.50rem;
    font-weight: 450;
    line-height: 1.25;
    margin: 0 0 12px 0;
    color: white;

    text-align: center;
}

.buynow-subheading {
    font-size: 15px;
    font-weight: 470;
    line-height: 1.45;
    margin: 0 0 16px 0;
    color: rgba(255, 255, 255, 0.92);
    text-align: left;
}

.buynow-secondary-heading {
    font-size: 15px;
    font-weight: 470;
    line-height: 1.3;
    margin: 0 0 10px 0;
    color: white;
    text-align: left;
}

.buynow-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
    text-align: left;
}

.buynow-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 400;
    color: white;
}

.buynow-checklist li:last-child {
    margin-bottom: 0;
}

.buynow-check-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: block;
    align-self: center;
}

.buynow-muted {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    font-style: italic;
}

/* Responsive Styles */

/* Medium screens — VDP with sidebar gets narrow, switch to stacked */
@media (max-width: 1200px) {
    #cz-vdp-buynow-info {
        padding-top: 0;
    }

    .buynow-banner-content {
        flex-direction: column;
        align-items: center;
        padding: 20px 25px 25px;
        gap: 15px;
        min-height: unset;
    }

    .buynow-banner-left {
        width: 200px;
        max-width: 200px;
        margin-top: 0;
        align-self: auto;
    }

    .buynow-banner-right {
        width: 100%;
        max-width: 100%;
        flex: 1 1 auto;
        align-self: auto;
        padding: 0;
        text-align: center;
    }

    .buynow-main-heading {
        font-size: 1.4rem;
        text-align: center;
    }

    .buynow-subheading {
        font-size: 16px;
        margin-bottom: 12px;
        text-align: center;
    }

    .buynow-secondary-heading {
        font-size: 16px;
        margin-bottom: 10px;
        text-align: center;
    }

    .buynow-checklist {
        display: inline-block;
        text-align: left;
    }

    .buynow-checklist li {
        font-size: 14px;
        margin-bottom: 8px;
    }
}

/*tablets and mobile */
@media (max-width: 768px) {
    #cz-vdp-buynow-info {
        padding-top: 0;
    }

    .buynow-banner-content {
        flex-direction: column;
        align-items: center;
        padding: 20px 20px 25px;
        gap: 15px;
        min-height: unset;
    }

    .buynow-banner-left {
        width: 200px;
        max-width: 200px;
        margin-top: 0;
        align-self: auto;
    }

    .buynow-banner-right {
        width: 100%;
        max-width: 100%;
        flex: 1 1 auto;
        align-self: auto;
        padding: 0;
        text-align: center;
    }

    .buynow-main-heading {
        font-size: 1.8rem;
        text-align: center;
    }

    .buynow-subheading {
        font-size: 18px;
        margin-bottom: 12px;
        text-align: left;
    }

    .buynow-secondary-heading {
        font-size: 18px;
        margin-bottom: 10px;
        text-align: left;
    }

    .buynow-checklist {
        display: block;
        text-align: left;
    }

    .buynow-checklist li {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .buynow-check-icon {
        width: 16px;
        height: 16px;
    }
}

/* Small mobile phones — hide phone image, stack and center text, reduce font sizes */
@media (max-width: 576px) {
    .buynow-banner-content {
        padding: 15px 15px 20px;
        gap: 12px;
    }

    .buynow-banner-left {
        display: none;
    }

    .buynow-main-heading {
        font-size: 1.6rem;
    }

    .buynow-subheading {
        font-size: 16px;
    }

    .buynow-secondary-heading {
        font-size: 16px;
    }

    .buynow-checklist li {
        font-size: 14px;
    }

    .buynow-check-icon {
        width: 14px;
        height: 14px;
    }
}
