.htmx-indicator{
    display:none;
}
.htmx-request .htmx-indicator{
    display: inline;
}
.htmx-request.htmx-indicator{
    display:inline;
}

div.htmx-indicator.pricing-modal{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color: aliceblue;
    &.htmx-request{
        display: flex;
        justify-content: center;
        align-items: center;
    }

    & .spinner-grow{
        width: 4rem;
        height: 4rem;
    }

}

ul.dash {
    text-indent: 10px;
}

#pricing-chart-modal, #tv-scripts-modal-essential, #tv-scripts-modal-complete{

    & p.modal-title{
        font-weight: 500;
        display:flex;
        justify-content:start;
        align-items:center;

        & span{
            padding:6px 14px;
            border-radius:20px;
            font-size:15px;
            font-weight:500;
            background-image:linear-gradient(to right, #FEFEFE,#F1F1F1);
            color:#3C75D5;
        }
    }

    & .modal-body{
        background-attachment: fixed;
        background-size: 100% 100%;
        background-color: rgba(255, 255, 255, 0.486);
        background-blend-mode: overlay;
        max-height: 600px;
        height: 600px;
        overflow-y: scroll;
    }

    & .modal-content{
        min-height:400px;
    }

    & button.close{
        width:32px;
        top:1.1rem;
    }

}
a.fw-light{
    font-weight: 400;
}

/* Sale pricing — responsive layout for homepage cards and subscribe mobile */
.sale-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 100%;
}

.sale-price-row .sale-promo-price {
    font-size: 2.5rem;
    line-height: 1;
    margin: 0;
}

.sale-price-row .sale-promo-price sup {
    font-size: 1.1rem;
    vertical-align: 30%;
}

.sale-pro-price-row {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 4px 8px;
    max-width: 100%;
}

/* Professional plan header — title left, promo pill right */
.pro-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.pro-header-wrapper h3 {
    margin: 0;
    padding-bottom: 0;
    text-align: left;
    flex: 0 1 auto;
}

.pro-promo-pill {
    background-color: #f2e7dc;
    color: #733e1c;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.2;
    display: inline-block;
    flex-shrink: 0;
}

/* Homepage hero banner — mobile overflow fixes */
@media (max-width: 767px) {
    .new_theme_pages .banner {
        overflow-x: hidden;
        max-width: 100%;
    }

    .banner .container {
        max-width: 100%;
        overflow-x: hidden;
    }

    .homepage-cta-wrapper {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        max-width: 100%;
        text-align: left;
    }

    .homepage-cta-wrapper .homepage-button,
    .homepage-cta-wrapper .blue-btn {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-top: 0 !important;
        text-align: center;
    }

    .banner .homepage-cta-wrapper a i {
        margin-left: 8px !important;
    }

    .banner .homepage-cta-wrapper .campaign-home-microcopy {
        text-align: center !important;
    }

    /*
     * Subscribe page has 2 cards (no Free tier). theme.css positions .value_box h5
     * at top:446px for the homepage 3-card layout — override for subscribe ribbon spacer.
     */
    .pricing_table .value_boxes .subscribe-ribbon-spacer {
        margin: 0 0 27px !important;
        padding: 0;
        border: 0;
        background: transparent;
        min-height: 0;
        overflow: visible;
    }

    .pricing_table .value_boxes .subscribe-ribbon-spacer h5 {
        top: -27px !important;
    }

    .pricing_table .value_boxes .value_box:first-child:not(.subscribe-ribbon-spacer) {
        margin-top: 0;
    }

    /* Stack CTA + microcopy at card bottom without overlap */
    .pricing_table .value_boxes .value_box_cta {
        position: absolute;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        width: 83%;
        text-align: center;
    }

    .pricing_table .value_boxes .value_box_cta .value_link {
        position: static;
        bottom: auto;
        width: 100%;
        display: block;
    }

    .pricing_table .value_boxes .value_box_cta .campaign-microcopy {
        display: block;
        margin-top: 10px;
        margin-bottom: 0;
        font-size: 0.85rem;
        line-height: 1.35;
        white-space: normal;
        text-align: center;
    }

    .pricing_table .value_boxes .value_box:has(.value_box_cta) ul.value_innr_list {
        padding-bottom: 84px;
    }

    .pricing_table .value_boxes .value_box:has(.value_box_cta .campaign-microcopy) ul.value_innr_list {
        padding-bottom: 130px;
    }

    .pricing_table .value_boxes .pro-header-wrapper {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .pricing_table .value_boxes .pro-header-wrapper h3 {
        min-width: 0;
        padding-bottom: 0 !important;
        text-align: left;
    }

    .pricing_table .value_boxes ul.value_tab li:has(h4) {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 8px 4px;
        min-width: 0;
    }

    .pricing_table .value_boxes ul.value_tab li:has(h4) h4 {
        font-size: 32px !important;
        line-height: 1 !important;
        padding-bottom: 0 !important;
        letter-spacing: -1px;
    }

    .pricing_table .value_boxes ul.value_tab li:has(h4) h4 sup {
        top: -10px !important;
        font-size: 14px !important;
    }

    .pricing_table .value_boxes ul.value_tab li:has(h4) span {
        margin-left: 0 !important;
        margin-top: 4px;
        font-size: 11px;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
    }

    .sale-price-row {
        gap: 6px;
    }

    .sale-price-row .original-price-container {
        font-size: 1.2rem !important;
        white-space: nowrap;
    }

    .sale-price-row .sale-promo-price {
        font-size: 2rem !important;
    }

    .sale-pro-price-row h4 {
        font-size: 36px !important;
        line-height: 1 !important;
        padding-bottom: 0 !important;
    }

    .sale-pro-price-row h4 sup {
        top: -14px !important;
        font-size: 14px !important;
    }

    .sale-pro-price-row span {
        margin-left: 0 !important;
        font-size: 12px;
        line-height: 1.2;
    }

    ul.annullay_tab li {
        font-size: 11px;
        line-height: 16px;
        padding: 6px 2px;
        white-space: normal;
    }

    .campaign-microcopy,
    .campaign-home-microcopy {
        white-space: normal !important;
        font-size: 0.85rem;
        text-align: center !important;
    }

    .value_sec .value_boxes .value_box:has(.campaign-home-microcopy) {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    .pricing_table .value_boxes ul.value_tab li:has(h4) h4 {
        font-size: 26px !important;
    }

    .sale-price-row {
        flex-direction: column;
        align-items: center;
    }

    .sale-price-row .sale-promo-price {
        font-size: 1.75rem !important;
    }

    .sale-pro-price-row h4 {
        font-size: 30px !important;
    }
}
