/* Responsive subscription-card layout.
 * Keep this file after custom.css so these scoped rules win without changing
 * the legacy dashboard, checkout, or quick-login bundles.
 */

#dashboard .workplace .container section.buy-plan > .panel {
    min-height: 0;
}

#dashboard .workplace .container section.buy-plan > .panel > .body.pv15 > .row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(306px, 1fr));
    grid-auto-rows: auto;
    gap: 15px;
    align-items: stretch;
    justify-content: initial;
}

#dashboard .workplace .container section.buy-plan > .panel > .body.pv15 > .row > .col.pad {
    display: flex;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

#dashboard .workplace .container section.buy-plan > .panel > .body.pv15 > .row > .col.pad > .card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    margin: 0 !important;
}

#dashboard .workplace .container section.buy-plan > .panel > .body.pv15 > .row > .col.pad > .card > .align-center {
    margin-top: auto;
    padding-top: 8px;
}

#dashboard .workplace .container section.buy-plan > .panel > .body.pv15 > .row > .col.pad .row {
    gap: 0;
}

#dashboard section.buy-plan .card .media,
#dashboard section.buy-plan .card .media .body,
#dashboard section.buy-plan .plan-content {
    min-width: 0;
}

#dashboard section.buy-plan .card .media .body h1,
#dashboard section.buy-plan .plan-content {
    overflow-wrap: anywhere;
    word-break: break-word;
}

#dashboard section.buy-plan .plan-content img {
    max-width: 100%;
    height: auto;
}

/* Restore the original full subscription-card presentation. */
#dashboard section.buy-plan .plan-card-original {
    border: 1px solid #596174;
    border-radius: 12px;
    padding: 18px 16px 20px;
    color: #374154;
}

#dashboard section.buy-plan .plan-card-original > .media {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0;
}

#dashboard section.buy-plan .plan-card-original > .media > .rounded-img-box {
    width: 150px;
    height: 86px;
    margin: 10px auto 16px;
    border-radius: 0;
    overflow: visible;
}

#dashboard section.buy-plan .plan-card-original > .media > .rounded-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#dashboard section.buy-plan .plan-card-original > .media > .body {
    display: block;
}

#dashboard section.buy-plan .plan-card-original > .media > .body h1 {
    margin: 0;
    padding: 0 0 14px;
    border-bottom: 1px solid #eceef2;
    color: #2f405e;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 700;
}

#dashboard section.buy-plan .plan-card-original > .plan-content {
    min-width: 0;
    padding-top: 10px;
}

#dashboard section.buy-plan .plan-content--structured .price-intro-contrainer {
    margin: 0 0 14px;
}

#dashboard section.buy-plan .plan-content--structured .price-intro-contrainer > .row {
    display: block;
    margin: 0;
    padding: 12px 0 10px;
    border: 0;
    border-bottom: 1px solid #e6e8ec;
}

#dashboard section.buy-plan .plan-content--structured .mini-row-top,
#dashboard section.buy-plan .plan-content--structured .mini-row-bottom {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

#dashboard section.buy-plan .plan-content--structured .mini-row-top .t-1,
#dashboard section.buy-plan .plan-content--structured .mini-row-bottom .t-3 {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

#dashboard section.buy-plan .plan-content--structured .mini-row-top .t-2,
#dashboard section.buy-plan .plan-content--structured .mini-row-bottom .t-4 {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
}

#dashboard section.buy-plan .plan-content--structured .mini-row-top .t-1,
#dashboard section.buy-plan .plan-content--structured .mini-row-top .t-2 {
    font-size: 19px;
    line-height: 1.5;
}

#dashboard section.buy-plan .plan-content--structured .mini-row-top .t-1 .label {
    display: inline-block;
    margin-left: 7px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.55;
    white-space: nowrap;
    vertical-align: 2px;
}

#dashboard section.buy-plan .plan-content--structured .plan-primary-price--featured .t-2,
#dashboard section.buy-plan .plan-content--structured .mini-row-bottom .t-3 {
    color: #087bf3;
    font-weight: 700;
}

#dashboard section.buy-plan .plan-content--structured .mini-row-bottom .t-3,
#dashboard section.buy-plan .plan-content--structured .mini-row-bottom .t-4 {
    font-size: 12px;
    line-height: 1.5;
}

#dashboard section.buy-plan .plan-content--structured .plan-reset-price {
    margin: 0;
    padding: 2px 0 14px;
    border-bottom: 1px solid #eceef2;
    color: #374154;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
}

#dashboard section.buy-plan .plan-content--structured .plan-reset-price .price_amount {
    margin-left: 5px;
    color: #2f405e;
    font-size: 17px;
}

#dashboard section.buy-plan .plan-content--structured .plan-detail {
    margin: 14px 0 0;
    padding: 0;
}

#dashboard section.buy-plan .plan-content--structured .plan-content-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 8px;
}

#dashboard section.buy-plan .plan-content--structured .plan-feature-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: #4d0bff;
    color: #fff;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
}

#dashboard section.buy-plan .plan-content--structured .plan-content-item p {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #3f4652;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 500;
    overflow-wrap: anywhere;
}

#dashboard section.buy-plan .plan-card-original > .row.price-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 10px;
    justify-content: initial;
}

#dashboard section.buy-plan .plan-card-original > .row.price-options > .col {
    min-width: 0;
    line-height: 1.45;
}

#dashboard .workplace .container section.buy-plan .plan-card-original > .align-center > .btn {
    width: 100% !important;
    min-width: 0;
    height: 46px;
    border-color: #2f405e;
    border-radius: 12px;
    background: #2f405e;
}

#dashboard .workplace .container section.buy-plan .plan-card-original > .align-center > .btn:hover,
#dashboard .workplace .container section.buy-plan .plan-card-original > .align-center > .btn:active {
    border-color: #24344f;
    background: #24344f;
}

@media only screen and (max-width: 767px) {
    #dashboard .workplace .container section.buy-plan > .panel > .body.pv15 > .row {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto;
    }

    #dashboard section.buy-plan .plan-card-original {
        padding: 18px 16px 20px;
    }

    #dashboard section.buy-plan .plan-card-original > .media > .rounded-img-box {
        width: 158px;
        height: 90px;
    }

    #dashboard section.buy-plan .plan-card-original > .media > .body h1 {
        font-size: 24px;
    }

    #dashboard .workplace .container section.buy-plan .plan-card-original > .align-center > .btn {
        height: 46px;
    }
}

@media only screen and (max-width: 400px) {
    #dashboard section.buy-plan .plan-card-original {
        padding-right: 14px;
        padding-left: 14px;
    }

    #dashboard section.buy-plan .plan-content--structured .mini-row-top .t-1,
    #dashboard section.buy-plan .plan-content--structured .mini-row-top .t-2 {
        font-size: 17px;
    }

    #dashboard section.buy-plan .plan-content--structured .mini-row-top .t-1 .label {
        margin-left: 5px;
        padding-right: 7px;
        padding-left: 7px;
        font-size: 10px;
    }
}
