:root {
    --nvs-blue: #0f43ff;
    --nvs-dark-blue: #07156d;
    --nvs-cyan: #11bceb;
    --nvs-text: #050505;
    --nvs-muted: #91a5b2;
    --nvs-border: #e5e8ec;
    --nvs-selected-bg: #eef7ff;
    --nvs-selected-border: #2454ff;
    --nvs-light-row: #f7f8fa;
    --nvs-card-radius: 15px;
}

.nvs-store,
.nvs-store * {
    box-sizing: border-box;
    letter-spacing: 0 !important;
}

.nvs-store {
    width: 100%;
    max-width: 1140px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
}

.nvs-card {
    background: #ffffff;
    border-radius: var(--nvs-card-radius);
    color: var(--nvs-text);
    box-shadow: none;
}

.nvs-products-card {
    padding: 30px 22px 32px;
}

.nvs-products-card h3,
.nvs-summary-card h3 {
    margin: 0;
    color: #050505;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    font-size: 26px;
    line-height: 1.05;
    font-weight: 800;
}

.nvs-accordion-list {
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.nvs-course-group {
    --nvs-group-bg: #11bceb;
    --nvs-group-text: #ffffff;
    --nvs-group-border: #11bceb;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nvs-group-head,
.nvs-store button.nvs-group-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0 !important;
    border-bottom: 1px solid #e5e9ec !important;
    background: transparent !important;
    padding: 0 0 18px !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    min-height: 42px;
}

.nvs-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-width: 226px;
    min-height: 42px;
    padding: 10px 22px 9px;
    font-family: "Special Gothic Expanded One", "Plus Jakarta Sans", Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
    font-weight: 400;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--nvs-group-text) !important;
    background: var(--nvs-group-bg) !important;
    border: 1px solid var(--nvs-group-border) !important;
}

.nvs-chevron {
    width: 26px;
    height: 26px;
    position: relative;
    flex: 0 0 26px;
}

.nvs-chevron::before {
    content: "";
    width: 15px;
    height: 15px;
    border-right: 2px solid #6c7278;
    border-bottom: 2px solid #6c7278;
    position: absolute;
    top: 2px;
    left: 4px;
    transform: rotate(45deg);
    transition: transform .2s ease, top .2s ease;
}

.nvs-course-group.is-open .nvs-chevron::before {
    top: 9px;
    transform: rotate(225deg);
}

.nvs-group-panel {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.nvs-course-group.is-open .nvs-group-panel {
    display: flex;
}

.nvs-product {
    position: relative;
    min-height: 132px;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 132px;
    grid-template-rows: auto auto;
    column-gap: 18px;
    row-gap: 8px;
    align-items: center;
    padding: 26px 26px 24px 30px;
    border: 2px solid transparent;
    border-radius: 18px;
    background: #f7f8fa;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.nvs-product:hover {
    border-color: rgba(36, 84, 255, .30);
}

.nvs-product.is-selected {
    background: var(--nvs-selected-bg);
    border-color: var(--nvs-selected-border);
    box-shadow: none;
}

.nvs-product-icon {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: 78px;
    height: 78px;
    border-radius: 18px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.nvs-product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.nvs-icon-placeholder {
    color: #1765e9;
    font-size: 24px;
}

.nvs-product-content {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    min-width: 0;
}

.nvs-product h4 {
    margin: 0 0 6px;
    color: #050505;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    font-size: 20px;
    line-height: 1.12;
    font-weight: 800;
}

.nvs-product p {
    margin: 0 0 10px;
    color: #8fa5b4;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
}

.nvs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: #8da4b1;
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
}

.nvs-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nvs-meta img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.nvs-product-price {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    align-self: end;
    justify-self: end;
    width: auto;
    padding: 0;
    text-align: right;
    white-space: nowrap;
}

.nvs-product-price strong {
    color: #070707;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
}

.nvs-check,
.nvs-store button.nvs-check {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    justify-self: end;
    align-self: start;
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 4px !important;
    border: 2px solid #dde4e8 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    align-self: start;
    margin-top: 0 !important;
}

.nvs-product.is-selected .nvs-check,
.nvs-store .nvs-product.is-selected button.nvs-check {
    border-color: var(--nvs-selected-border) !important;
    background: var(--nvs-selected-border) !important;
}

.nvs-product.is-selected .nvs-check::after {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: -2px;
}

.nvs-summary-card {
    padding: 35px 28px 30px;
    min-height: 456px;
    border-radius: 18px;
}

.nvs-summary-card h3 {
    text-align: center;
    font-size: 19px;
    margin-bottom: 31px;
}

.nvs-summary-block {
    min-height: 78px;
}

.nvs-section-label {
    display: block;
    color: #9baeba;
    font-size: 11px;
    line-height: 1;
    font-weight: 500;
    margin-bottom: 15px;
}

.nvs-summary-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nvs-summary-empty {
    color: #aebdc5;
    font-size: 10px;
}

.nvs-summary-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    color: #050505;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 500;
}

.nvs-summary-item strong {
    color: #050505;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.nvs-line {
    height: 1px;
    background: #e7ecef;
    margin: 21px 0;
}

.nvs-dark-line {
    height: 1px;
    background: #111111;
    opacity: .72;
    margin: 20px 0 18px;
}

.nvs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: #050505;
    font-size: 13px;
    line-height: 1;
    font-weight: 500;
    margin: 0 0 14px;
}

.nvs-row strong {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.nvs-total-row {
    margin-bottom: 0;
    font-weight: 800;
}

.nvs-checkout-form {
    margin: 0;
}

.nvs-checkout-form label {
    position: relative;
    display: block;
    margin: 0 0 15px;
}

.nvs-checkout-form label span {
    position: absolute;
    top: -5px;
    left: 16px;
    z-index: 1;
    background: #ffffff;
    padding: 0 4px;
    color: #687d89;
    font-size: 8px;
    line-height: 1;
    font-weight: 500;
}

.nvs-checkout-form input,
.nvs-store input[type="text"],
.nvs-store input[type="email"] {
    width: 100%;
    height: 38px;
    border: 1px solid #dce2e6 !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    padding: 8px 12px !important;
    color: #050505;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    font-size: 12px;
    box-shadow: none !important;
    outline: none;
}

.nvs-continue,
.nvs-store button.nvs-continue {
    width: calc(100% - 20px) !important;
    height: 46px !important;
    border: 0 !important;
    border-radius: 4px !important;
    margin: 4px 10px 0 !important;
    padding: 0 14px !important;
    background: #1a79c9 !important;
    color: #ffffff !important;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    box-shadow: none !important;
    cursor: pointer;
}

.nvs-continue:disabled,
.nvs-store button.nvs-continue:disabled {
    background: #dce3e7 !important;
    color: #aab9c2 !important;
    cursor: not-allowed;
}

.nvs-payment-area {
    margin-top: 14px;
}

.nvs-paypal-placeholder {
    border-radius: 4px;
    background: #f1f5f8;
    color: #8395a0;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    padding: 11px 8px;
}

.nvs-terms {
    display: block;
    margin-top: 28px;
    color: #7e929e !important;
    font-size: 11px;
    line-height: 1;
    text-align: center;
    text-decoration: underline !important;
}

@media (max-width: 900px) {
    .nvs-store {
        grid-template-columns: 1fr;
        max-width: 640px;
    }

    .nvs-summary-card {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .nvs-products-card {
        padding: 28px 16px;
    }

    .nvs-product {
        grid-template-columns: 62px minmax(0, 1fr) 76px;
        column-gap: 12px;
        row-gap: 6px;
        padding: 16px;
        min-height: 100px;
    }

    .nvs-product-icon {
        width: 58px;
        height: 58px;
    }

    .nvs-product h4 {
        font-size: 15px;
    }

    .nvs-product p,
    .nvs-meta {
        font-size: 10px;
    }

    .nvs-meta {
        gap: 8px;
    }

    .nvs-product-price {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
        align-self: end;
        justify-self: end;
        width: auto;
        padding: 0;
        text-align: right;
    }

    .nvs-product-price strong {
        font-size: 16px;
    }

    .nvs-check {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
        justify-self: end;
        align-self: start;
    }
}

/* v2.8 - Right checkout card adjusted to match the provided design */
.nvs-store {
    grid-template-columns: minmax(0, 1fr) 330px;
}

.nvs-summary-card {
    padding: 38px 34px 36px !important;
    min-height: 520px !important;
    border-radius: 18px !important;
}

.nvs-summary-card h3 {
    display: none !important;
}

.nvs-summary-block {
    display: none !important;
}

.nvs-summary-card > .nvs-line:first-of-type {
    display: none !important;
}

.nvs-summary-card .nvs-row,
.nvs-summary-card .nvs-row span,
.nvs-summary-card .nvs-row strong {
    font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
    font-size: 13px !important;
    letter-spacing: 0 !important;
}

.nvs-summary-card .nvs-row {
    margin-bottom: 24px !important;
    line-height: 1.2 !important;
}

.nvs-summary-card .nvs-row strong {
    font-weight: 800 !important;
}

.nvs-total-row span,
.nvs-total-row strong {
    font-weight: 800 !important;
}

.nvs-summary-card .nvs-line {
    margin: 14px 0 25px !important;
    background: #dfe6ea !important;
}

.nvs-summary-card .nvs-dark-line {
    margin: 24px 0 26px !important;
    background: #101010 !important;
    opacity: .85 !important;
}

.nvs-checkout-form .nvs-section-label {
    font-size: 13px !important;
    color: #8ea2ad !important;
    margin-bottom: 18px !important;
}

.nvs-checkout-form label {
    margin-bottom: 22px !important;
}

.nvs-checkout-form label span {
    top: -8px !important;
    left: 18px !important;
    padding: 0 8px !important;
    font-size: 13px !important;
    color: #050505 !important;
}

.nvs-checkout-form input,
.nvs-store input[type="text"],
.nvs-store input[type="email"] {
    height: 56px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    padding: 13px 18px !important;
}

.nvs-continue,
.nvs-store button.nvs-continue {
    width: calc(100% - 42px) !important;
    height: 55px !important;
    margin: 8px 21px 0 !important;
    border-radius: 10px !important;
    font-size: 13px !important;
}

.nvs-terms {
    margin-top: 28px !important;
    font-size: 13px !important;
}

@media (max-width: 900px) {
    .nvs-store {
        grid-template-columns: 1fr;
    }

    .nvs-summary-card {
        min-height: auto !important;
    }
}

/* v2.9: keep selected product names visible in the right summary card, without restoring the Order summary title */
.nvs-summary-card .nvs-summary-block {
    display: block !important;
    min-height: 0 !important;
    margin-bottom: 14px !important;
}

.nvs-summary-card > .nvs-line:first-of-type {
    display: block !important;
    margin: 14px 0 20px !important;
    background: #dfe6ea !important;
}

.nvs-summary-card .nvs-section-label,
.nvs-summary-card .nvs-summary-item,
.nvs-summary-card .nvs-summary-item span,
.nvs-summary-card .nvs-summary-item strong,
.nvs-summary-card .nvs-summary-empty {
    font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
    font-size: 13px !important;
    letter-spacing: 0 !important;
}

.nvs-summary-card .nvs-summary-items {
    gap: 8px !important;
}

.nvs-summary-card .nvs-summary-item {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
    align-items: start !important;
    line-height: 1.15 !important;
}

.nvs-summary-card .nvs-summary-item strong {
    font-weight: 800 !important;
    white-space: nowrap !important;
}


/* v3.1: only adjust the outer horizontal padding of the left white card.
   Internal product cards, accordion gaps, icons and typography stay as in v2.9. */
.nvs-products-card {
    padding: 30px 56px 32px !important;
}

@media (max-width: 900px) {
    .nvs-products-card {
        padding-left: 26px !important;
        padding-right: 26px !important;
    }
}

@media (max-width: 640px) {
    .nvs-products-card {
        padding: 28px 16px !important;
    }
}

/* v3.2: external add-to-cart button and floating cart icon shortcodes */
.nvs-external-add,
button.nvs-external-add {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 142px !important;
    height: 50px !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: #0f43ff !important;
    color: #ffffff !important;
    font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: transform .15s ease, opacity .15s ease, background-color .15s ease;
}

.nvs-external-add:hover,
button.nvs-external-add:hover {
    background: #0b35dc !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.nvs-external-add.is-selected,
button.nvs-external-add.is-selected {
    background: #dfe6ea !important;
    color: #7e929e !important;
}

.nvs-cart-widget,
a.nvs-cart-widget {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    cursor: pointer;
}

.nvs-cart-widget img {
    display: block;
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
}

.nvs-cart-badge {
    position: absolute;
    top: -8px;
    right: -9px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #0f43ff;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    border: 1px solid #ffffff;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .16);
}

.nvs-cart-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(5px);
    white-space: nowrap;
    border-radius: 8px;
    background: #050505;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}

.nvs-cart-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #050505;
}

.nvs-cart-widget:hover .nvs-cart-tooltip,
.nvs-cart-widget.has-items .nvs-cart-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nvs-shortcode-error {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fff5f5;
    color: #b00020;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0 !important;
}

@media (max-width: 640px) {
    .nvs-external-add,
    button.nvs-external-add {
        min-width: 128px !important;
        height: 46px !important;
        font-size: 16px !important;
    }

    .nvs-cart-widget,
    a.nvs-cart-widget {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
    }
}
