/* Single-service storefront and client portal. Loaded last on purpose. */
body.cg-body .cg-main,
body.cg-body.cg-order-page .cg-main {
    width: min(1180px, calc(100% - 40px));
}

body.cg-body .cg-primary-content {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: 0 0 100%;
}

body.cg-body [hidden] {
    display: none !important;
}

body.cg-body .cg-native-sidebar,
body.cg-body #order-standard_cart .cart-sidebar,
body.cg-body #order-standard_cart .sidebar-collapsed {
    display: none !important;
}

body.cg-body #order-standard_cart .cart-body {
    float: none;
    width: 100%;
    max-width: none;
    padding: 0;
}

.cg-plan-page-head,
.cg-service-page-head {
    position: relative;
    margin: 0 auto 24px;
}

.cg-plan-page-head {
    max-width: 760px;
    text-align: center;
}

.cg-plan-page-head h1,
.cg-service-page-head h1 {
    margin: 7px 0 8px;
    color: var(--cg-ink);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -.045em;
}

.cg-plan-page-head p {
    margin: 0;
    color: var(--cg-muted);
    font-size: 14px;
    line-height: 1.75;
}

.cg-plan-page-head-compact {
    max-width: none;
    margin-bottom: 18px;
    text-align: left;
}

.cg-plan-page-head-compact h1 {
    font-size: clamp(25px, 3vw, 34px);
}

.cg-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.cg-plan-card {
    display: flex;
    min-width: 0;
    min-height: 300px;
    padding: 20px;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 20px;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 16px 42px rgba(48, 68, 120, .1);
    backdrop-filter: blur(18px);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.cg-plan-card:hover {
    transform: translateY(-3px);
    border-color: rgba(78, 112, 255, .42);
    box-shadow: 0 22px 54px rgba(48, 68, 120, .15);
}

.cg-plan-card-head {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
}

.cg-plan-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #e7edff, #fff);
    color: var(--cg-blue);
}

.cg-plan-stock {
    color: var(--cg-muted);
    font-size: 11px;
}

.cg-plan-card h2 {
    margin: 18px 0 8px;
    color: var(--cg-ink);
    font-size: 20px;
    letter-spacing: -.025em;
}

.cg-plan-description {
    flex: 1;
    color: var(--cg-muted);
    font-size: 12px;
    line-height: 1.7;
}

.cg-plan-description p {
    margin: 0 0 10px;
}

.cg-plan-description ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cg-plan-description li {
    display: flex;
    gap: 7px;
    margin: 5px 0;
}

.cg-plan-description li i {
    margin-top: 5px;
    color: #25aa70;
    font-size: 9px;
}

.cg-plan-card footer {
    display: flex;
    margin-top: 18px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.cg-plan-price {
    display: flex;
    min-width: 0;
    flex-direction: column;
    color: var(--cg-muted);
    font-size: 11px;
}

.cg-plan-price strong {
    color: var(--cg-ink);
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -.04em;
    white-space: nowrap;
}

.cg-plan-card .cg-primary-button {
    min-height: 43px;
    padding: 10px 11px;
    white-space: nowrap;
}

.cg-service-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.cg-service-page-head .cg-eyebrow {
    position: absolute;
    top: -2px;
    left: 0;
}

.cg-service-page-head h1 {
    margin: 22px 0 0;
}

.cg-service-controls[hidden] {
    display: none !important;
}

body.cg-body .cg-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.cg-body .cg-service-card {
    min-height: 270px;
}

body.cg-body.cg-configure-page #order-standard_cart,
body.cg-body.cg-checkout-page #order-standard_cart,
body.cg-body.cg-review-page #order-standard_cart {
    width: 100%;
    max-width: 1180px;
}

body.cg-body.cg-configure-page #frmConfigureProduct > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 20px;
    margin: 0;
}

body.cg-body.cg-configure-page #frmConfigureProduct .secondary-cart-body,
body.cg-body.cg-configure-page #frmConfigureProduct .secondary-cart-sidebar {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.cg-body.cg-configure-page #orderSummary {
    position: sticky;
    top: 90px;
    margin: 0;
}

body.cg-body.cg-configure-page #orderSummary .text-center {
    margin-top: 10px;
}

body.cg-body.cg-configure-page #btnCompleteProductConfig {
    width: 100%;
}

.cg-change-plan {
    display: inline-flex;
    min-height: 32px;
    margin: 0 0 0 auto;
    padding: 6px 10px;
    align-items: center;
    border: 1px solid rgba(123, 141, 181, .2);
    border-radius: 9px;
    background: rgba(255, 255, 255, .5);
    color: var(--cg-blue);
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

body.cg-body.cg-checkout-page #order-standard_cart {
    max-width: 1080px;
}

body.cg-body.cg-checkout-page.cg-minimal-signup #containerNewUserSignup > .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 14px;
    margin: 0;
}

body.cg-body.cg-checkout-page.cg-minimal-signup #containerNewUserSignup > .row > [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
}

body.cg-body.cg-checkout-page.cg-minimal-signup #containerNewUserSignup .form-group {
    margin: 0;
}

body.cg-body.cg-checkout-page.cg-minimal-signup #containerNewUserSignup:not(.cg-has-invite-field) .cg-minimal-email {
    grid-column: 1 / -1;
}

body.cg-body.cg-checkout-page.cg-minimal-signup #containerNewUserSignup .cg-minimal-visible-field .form-control {
    width: 100%;
    min-height: 52px;
    padding: 13px 16px 13px 48px;
    color: var(--cg-ink);
    font-size: 14px;
    line-height: 1.4;
}

body.cg-body.cg-checkout-page.cg-minimal-signup #containerNewUserSignup .prepend-icon .field-icon,
body.cg-body.cg-checkout-page.cg-minimal-signup #containerNewUserSignup .ic-field-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    bottom: auto;
    left: 17px;
    display: grid;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #97a4ba;
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
}

body.cg-body.cg-checkout-page.cg-minimal-signup #containerNewUserSignup .prepend-icon .field-icon > i,
body.cg-body.cg-checkout-page.cg-minimal-signup #containerNewUserSignup .ic-field-icon:before {
    line-height: 1;
}

body.cg-body.cg-checkout-page.cg-minimal-signup #containerNewUserSignup .form-control::placeholder {
    color: var(--cg-muted);
    opacity: .88;
}

body.cg-body.cg-checkout-page.cg-minimal-signup #containerNewUserSignup .cg-minimal-invite-note {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid rgba(123, 141, 181, .14);
    border-radius: 11px;
    background: rgba(255, 255, 255, .32);
    color: var(--cg-muted);
    font-size: 11px;
    line-height: 1.65;
}

html.cg-dark body.cg-body.cg-checkout-page.cg-minimal-signup #containerNewUserSignup .cg-minimal-invite-note {
    border-color: rgba(177, 196, 235, .14);
    background: rgba(48, 66, 100, .28);
}

body.cg-body.cg-checkout-page.cg-minimal-signup #containerNewUserSecurity {
    display: none !important;
}

body.cg-body.cg-checkout-page #paymentGatewaysContainer > .text-center {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 9px;
}

body.cg-body.cg-checkout-page #paymentGatewaysContainer {
    display: grid;
    width: min(100%, 680px);
    max-width: 680px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    align-items: center;
    gap: 18px;
    margin: 14px auto 0;
    padding: 14px 16px;
}

body.cg-body.cg-checkout-page #paymentGatewaysContainer > p {
    margin: 0;
    color: var(--cg-muted);
    line-height: 1.55;
    text-align: left;
}

body.cg-body.cg-checkout-page #paymentGatewaysContainer .radio-inline {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 12px 15px;
    border: 1px solid rgba(123, 141, 181, .2);
    border-radius: 12px;
    background: rgba(255, 255, 255, .5);
    text-align: left;
}

body.cg-body.cg-checkout-page #paymentGatewaysContainer .radio-inline.is-selected {
    border-color: #8ca7ff;
    background: rgba(235, 241, 255, .84);
    box-shadow: 0 8px 20px rgba(66, 105, 255, .1);
    color: var(--cg-ink);
}

body.cg-body.cg-checkout-page #btnCompleteOrder {
    display: flex;
    width: min(100%, 360px);
    min-height: 52px;
    margin: 16px auto 0;
    align-items: center;
    justify-content: center;
    gap: 11px;
}

html.cg-dark .cg-change-plan {
    border-color: rgba(177, 196, 235, .2);
    background: rgba(48, 66, 100, .66);
    color: #b9caff;
}

html.cg-dark body.cg-body.cg-checkout-page #paymentGatewaysContainer .radio-inline.is-selected {
    border-color: #83a1ff;
    background: linear-gradient(135deg, rgba(54, 82, 140, .78), rgba(39, 61, 108, .82));
    box-shadow: 0 9px 22px rgba(0, 0, 0, .18);
    color: #edf3ff;
}

.cg-order-complete {
    max-width: 680px !important;
}

.cg-complete-card {
    padding: clamp(28px, 6vw, 58px);
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 24px;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 22px 64px rgba(48, 68, 120, .13);
    text-align: center;
    backdrop-filter: blur(20px);
}

.cg-complete-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--cg-blue), #6b7dff);
    box-shadow: 0 13px 28px rgba(66, 105, 255, .25);
    color: #fff;
    font-size: 22px;
}

.cg-complete-card h1 {
    margin: 8px 0 12px;
    color: var(--cg-ink);
    font-size: 34px;
    letter-spacing: -.045em;
}

.cg-complete-card p {
    color: var(--cg-muted);
}

.cg-complete-card .cg-primary-button {
    min-width: 190px;
    margin-top: 10px;
}

.cg-v2-technical-details {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(123, 141, 181, .13);
}

.cg-v2-technical-details summary {
    color: var(--cg-muted);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.cg-v2-technical-details > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 12px;
}

.cg-v2-technical-details p {
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .42);
}

.cg-v2-technical-details span {
    overflow-wrap: anywhere;
}

html.cg-dark .cg-plan-card,
html.cg-dark .cg-complete-card,
html.cg-dark body.cg-body.cg-checkout-page #paymentGatewaysContainer .radio-inline {
    border-color: rgba(177, 196, 235, .16);
    background: rgba(27, 41, 68, .72);
}

html.cg-dark .cg-plan-icon,
html.cg-dark .cg-v2-technical-details p {
    background: rgba(48, 67, 103, .72);
}

@media (max-width: 980px) {
    .cg-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.cg-body .cg-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.cg-body.cg-configure-page #frmConfigureProduct > .row {
        grid-template-columns: 1fr;
    }

    body.cg-body.cg-configure-page #orderSummary {
        position: static;
    }
}

@media (max-width: 600px) {
    body.cg-body.cg-checkout-page #paymentGatewaysContainer {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    body.cg-body.cg-checkout-page #paymentGatewaysContainer > p {
        text-align: center;
    }

    body.cg-body.cg-checkout-page.cg-minimal-signup #containerNewUserSignup > .row {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    body.cg-body .cg-main,
    body.cg-body.cg-order-page .cg-main {
        width: calc(100% - 28px);
        padding-top: 28px;
    }

    .cg-plan-grid,
    body.cg-body .cg-service-grid {
        grid-template-columns: 1fr;
    }

    .cg-plan-page-head {
        margin-bottom: 18px;
        text-align: left;
    }

    .cg-plan-card {
        min-height: 255px;
    }

    .cg-service-page-head {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .cg-service-page-head .cg-secondary-button {
        align-self: flex-start;
    }

    .cg-v2-technical-details > div {
        grid-template-columns: 1fr;
    }

    body.cg-body.cg-checkout-page #paymentGatewaysContainer .radio-inline {
        width: 100%;
    }

    body.cg-body.cg-checkout-page #btnCompleteOrder {
        width: 100%;
    }
}
