.prod-subscriptions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding-bottom: 5rem;
}


.prod-subscriptions-breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #85869E;
    font-size: .75rem;
}


.prod-subscriptions-breadcrumb a {
    color: #85869E;
    text-decoration: none;
}


.prod-subscriptions-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.25rem;
    margin-top: .5rem;
}


.prod-tariff {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1.75rem;
}


.prod-tariff-header {
    position: sticky;
    z-index: 10;
    top: 0;
    padding-top: 1rem;
    border-radius: 1rem;
    background: #F8F9FE;
}


.prod-tariff-header h1 {
    margin: 0 0 1.25rem;
    color: #0A0C3C;
    font-size: 2rem;
    font-weight: 700;
}


.prod-tariff-types {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}


.prod-tariff-type {
    display: flex;
    padding: .75rem 1.5rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 2.5rem;
    background: #EBE9F8;
    color: #0A0C3C;
    font: inherit;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
}


.prod-tariff-type.active {
    background: #5F4FD0;
    color: #F1FAFF;
}


.prod-tariff-section {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    scroll-margin-top: 8rem;
}


.prod-tariff-section > h2 {
    margin: 0;
    color: #0A0C3C;
    font-size: 1.125rem;
    font-weight: 700;
}


/* SERVICES */

.prod-service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .25rem;
}


.prod-service-card {
    display: flex;
    width: 100%;
    padding: .75rem .75rem .75rem 1rem;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid #EBE9F8;
    border-radius: .75rem;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}


.prod-service-card.active {
    border-color: #2BC4D5;
}


.prod-service-icon {
    display: flex;
    width: 2.75rem;
    height: 2.75rem;
    padding: .75rem;
    box-sizing: border-box;
    flex: 0 0 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
    background: #EBE9F8;
}


.prod-service-icon svg {
    max-width: 100%;
    max-height: 100%;
}


.prod-service-body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    justify-content: space-around;
    gap: .5rem;
}


.prod-service-name {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
}


.prod-service-name > span {
    color: #505050;
    font-size: 1rem;
    font-weight: 500;
}


.prod-round-select {
    display: flex;
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #2BC4D5;
    border-radius: 50%;
}


.prod-service-card.active
.prod-round-select small {
    display: block;
    width: .72rem;
    height: .72rem;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #2BC4D5;
}


.prod-service-price,
.prod-package-price {
    display: flex;
    align-items: flex-end;
    gap: .5rem;
}


.prod-service-price strong,
.prod-package-price strong {
    color: #0A0C3C;
    font-size: 1.25rem;
    font-weight: 600;
}


.prod-old-price {
    position: relative;
    color: #0A0C3C;
    font-size: 1rem;
    font-weight: 500;
}


.prod-old-price::after {
    content: "";
    position: absolute;
    left: -.125rem;
    bottom: .5rem;
    width: calc(100% + .25rem);
    height: 2px;
    background: #f00;
    transform: rotate(-15deg);
}


/* PACKAGES */

.prod-package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    align-items: start;
}


.prod-package-card {
    position: relative;
    display: flex;
    min-height: 17.5rem;
    padding: 1.25rem 1.25rem .5rem;
    box-sizing: border-box;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #E1EDF5;
    border-radius: 1.25rem;
    background: #fff;
}


.prod-package-card.active {
    border-color: #2BC4D5;
}


.prod-package-period {
    position: absolute;
    top: -.875rem;
    right: .75rem;
    display: flex;
    padding: .5rem 1rem;
    align-items: center;
    justify-content: center;
    border-radius: 3.125rem;
    background: #2BC4D5;
    color: #F1FAFF;
    font-size: .625rem;
    font-weight: 600;
}


.prod-package-month-3
.prod-package-period {
    background: #13A5FF;
}


.prod-package-month-6
.prod-package-period {
    background: #5F4FD0;
}


.prod-package-card > h3 {
    margin: 0;
    color: #000;
    font-size: 1.25rem;
    font-weight: 600;
}


.prod-package-card > p {
    margin: .5rem 0;
    color: #000;
    font-size: .75rem;
    font-weight: 400;
}


.prod-package-price {
    margin: auto 0 1.25rem;
}


.prod-package-select {
    display: flex;
    width: 100%;
    padding: .75rem 1.5rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: .75rem;
    background: #2BC4D5;
    color: #fff;
    font: inherit;
    font-size: .75rem;
    font-weight: 500;
    cursor: pointer;
}


.prod-package-card.active
.prod-package-select {
    background: #5F4FD0;
}


.prod-package-footer {
    width: 100%;
}


.prod-package-more {
    display: flex;
    width: 100%;
    padding: .75rem;
    align-items: center;
    justify-content: center;
    gap: .625rem;
    border: 0;
    background: none;
    color: #2BC4D5;
    font: inherit;
    font-size: .75rem;
    font-weight: 500;
    cursor: pointer;
}


.prod-package-more svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: #2BC4D5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .15s ease;
}


.prod-package-more[aria-expanded="true"] svg {
    transform: rotate(180deg);
}


.prod-package-details {
    display: none;
    flex-direction: column;
    gap: .75rem;
}


.prod-package-details.active {
    display: flex;
}


.prod-package-line {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #000;
    font-size: .875rem;
}


.prod-package-line i {
    display: flex;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
    background: #EBE9F8;
    color: #5F4FD0;
    font-style: normal;
    font-weight: 700;
}


/* CART */

.prod-cart-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}


.prod-cart {
    display: flex;
    padding: 1.25rem 1.75rem;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    border-radius: 1.25rem;
    background: #fff;
}


.prod-cart > h2 {
    margin: 0;
    color: #0A0C3C;
    font-size: 1.25rem;
    font-weight: 700;
}


.prod-cart-list {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 1.5rem;
}


.prod-cart-line,
.prod-cart-total-line {
    display: grid;
    width: 100%;
    grid-template-columns: auto 1fr auto;
    gap: .25rem;
    align-items: end;
    color: #505050;
    font-size: .875rem;
}


.prod-cart-line i,
.prod-cart-total-line i {
    margin-bottom: 2px;
    border-bottom: 2px dotted #505050;
}


.prod-cart-line strong,
.prod-cart-total-line strong {
    color: #0A0C3C;
    font-size: 1rem;
    font-weight: 500;
}


.prod-cart-total {
    display: flex;
    width: 100%;
    padding-top: 1.25rem;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px dashed #DFDFFE;
}


.prod-cart-total-line strong {
    font-size: 1.25rem;
    font-weight: 600;
}


.prod-cart-next {
    display: flex;
    width: 100%;
    padding: .75rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: .75rem;
    background: #2BC4D5;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}


.prod-cart-next:disabled {
    opacity: .45;
    cursor: default;
}


.prod-subscriptions-poster {
    overflow: hidden;
    border-radius: 1.25rem;
}


.prod-subscriptions-poster img {
    display: block;
    width: 100%;
    height: auto;
}


/* PAYMENT SAFE STATE */

.prod-payment-dialog {
    width: min(28rem, calc(100vw - 2rem));
    padding: 1.5rem;
    box-sizing: border-box;
    border: 0;
    border-radius: 1.25rem;
    background: #fff;
    color: #0A0C3C;
}


.prod-payment-dialog::backdrop {
    background: rgba(10,12,60,.35);
}


.prod-payment-dialog h2 {
    margin: 0 0 .75rem;
    font-size: 1.25rem;
}


.prod-payment-dialog p {
    margin: 0 0 1.25rem;
    color: #85869E;
    font-size: .875rem;
    line-height: 1.5;
}


.prod-payment-dialog button {
    display: flex;
    width: 100%;
    padding: .75rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: .75rem;
    background: #5F4FD0;
    color: #fff;
    font: inherit;
    cursor: pointer;
}


@media (max-width: 640.98px) {

    .prod-subscriptions-breadcrumb {
        margin: 0 .75rem;
    }


    .prod-subscriptions-layout {
        grid-template-columns: 1fr;
        margin: 0 .75rem;
    }


    .prod-tariff {
        gap: 1.25rem;
    }


    .prod-tariff-header h1 {
        font-size: 1.5rem;
    }


    .prod-tariff-types {
        max-width: calc(100vw - 2rem);
        flex-wrap: nowrap;
        padding-bottom: .5rem;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }


    .prod-tariff-types::-webkit-scrollbar {
        display: none;
    }


    .prod-tariff-type {
        flex: 0 0 auto;
    }


    .prod-service-grid,
    .prod-package-grid {
        grid-template-columns: 1fr;
    }


    .prod-cart-column {
        order: -1;
    }


    .prod-subscriptions-poster {
        display: none;
    }

}


/* ============================================================
   PATCH 07S-A
   Legacy PROD subscriptions width
   ============================================================ */

@media (min-width: 641px) {

    /*
       Python shell reserves more space on the left for navigation
       than the legacy subscriptions page.

       Extend only the tariff/cart layout into that unused area.
       Legacy page container max-width = 1320px.
    */
    .prod-subscriptions-layout {
        width:
            min(
                82.5rem,
                calc(100% + 6.25rem)
            );

        margin-left:
            -6.25rem;
    }


    /*
       Do not allow the widened subscriptions content
       to overlap an explicitly opened desktop sidebar.
    */
    body:has(.legacy-nav .sidebar.active-menu)
    .prod-subscriptions-layout {
        width: 100%;

        margin-left: 0;
    }

}
