:root {
    --scm-primary: #32b1a8;
    --scm-primary-light: rgba(50,177,168,.15);

    --scm-accent: #f7941d;

    --scm-border: #dddddd;
    --scm-background: #fafafa;
}

.scm-package-builder {
    max-width: 700px;
    margin: 30px auto;
}

.scm-package-builder h2 {
    margin-bottom: 10px;
}

.scm-package-builder select {
    width: 100%;
    max-width: 500px;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

.scm-builder-step {
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    background: #ffffff;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.scm-builder-step:first-of-type {
    border: 2px solid #f7941d;
}

.scm-step-number {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #777777;
}

.scm-builder-step h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.scm-step-description {
    margin-top: 0;
    margin-bottom: 18px;
}

.scm-builder-step select {
    width: 100%;
    min-height: 52px;
    padding: 10px 42px 10px 14px;
    font-size: 17px;
    line-height: 1.4;
    border: 1px solid #b8b8b8;
    border-radius: 7px;
    background-color: #ffffff;
    box-sizing: border-box;
}

.scm-builder-step select:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.scm-builder-step select:disabled {
    cursor: wait;
    opacity: 0.7;
}

.scm-builder-step-hidden {
    display: none;
    opacity: 0;
    transform: translateY(12px);
}

.scm-builder-step-visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.scm-builder-message {
    margin-top: 12px;
    font-size: 15px;
}

.scm-builder-message-error {
    font-weight: 600;
}

.scm-package-details {
    margin-top: 20px;
}

.scm-package-name {
    margin-bottom: 24px;
}

.scm-package-section {
    margin-top: 28px;
}

.scm-package-section-description {
    margin-bottom: 15px;
}

.scm-package-item-grid {
    display: grid;
    gap: 16px;
}

.scm-package-item {
    display: block;
    border: 2px solid #dddddd;
    border-radius: 6px;
    padding: 16px;
    background: #ffffff;
}

.scm-instrument-choice {
    position: relative;
    padding: 18px;
    cursor: pointer;
}

.scm-instrument-choice-most-popular {
    position: relative;
    padding-top: 28x;
}

.scm-most-popular-badge {
    position: absolute;
    top: 8px;
    right: 10px;

    padding: 2px 8px;
    border-radius: 999px;

    background: #f79632;
    color: #ffffff;

    font-size: 0.70rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.scm-instrument-choice > input[type="radio"] {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 20px;
    height: 20px;
    margin: 0;
    z-index: 2;
}

.scm-instrument-choice-selected {
    border-color: var(--scm-primary);

    box-shadow:
        0 3px 10px var(--scm-primary-light);
}

.scm-instrument-choice:hover:not(
    .scm-package-item-unavailable
) {
    border-color: #999999;
}

.scm-package-item-unavailable {
    opacity: 0.6;
    cursor: not-allowed;
}

.scm-package-product {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.scm-package-product-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex: 0 0 120px;
}

.scm-package-product-details {
    flex: 1;
}

.scm-package-product-name {
    margin-top: 0;
    margin-bottom: 8px;
}

.scm-package-product-mode {
    margin-bottom: 8px;
    font-weight: 600;
}

.scm-package-product-price {
    margin-bottom: 12px;
    font-size: 1.1em;
}

.scm-instrument-choice
.scm-package-product {
    display: block;
    text-align: center;
}

.scm-instrument-choice
.scm-package-product-image {
    display: block;
    width: 100%;
    max-width: 220px;
    height: 180px;
    margin: 12px auto 18px;
    object-fit: contain;
    flex: none;
}

.scm-instrument-choice
.scm-package-product-details {
    width: 100%;
}

.scm-instrument-choice
.scm-package-product-name {
    margin-bottom: 10px;
    margin-top: 8px;
    font-weight: 700;
    font-size: 1.32em;
    line-height: 1.3;
    color: #222222;
}

.scm-instrument-choice
.scm-package-product-mode {
    margin-bottom: 8px;
}

.scm-instrument-choice
.scm-package-product-price {
    margin-bottom: 8px;
    font-size: 1.15em;
    font-weight: 700;
}

.scm-standard-item
.scm-package-product-image {
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
}

.scm-package-product-stock {
    font-weight: 600;
}

.scm-package-product-in-stock {
    color: #32b1a8;
}

.scm-package-product-out-of-stock {
    color: #f7941d;
    line-height: 1.35;
    font-weight: 500;
}


@media screen and (min-width: 768px) {
    .scm-instrument-choices
    .scm-package-item-grid {
        grid-template-columns:
            repeat(
                auto-fit,
                minmax(240px, 1fr)
            );
    }
}

@media screen and (max-width: 600px) {
    .scm-package-product {
        display: block;
    }

    .scm-package-product-image {
        width: 100%;
        height: auto;
        max-width: 220px;
        margin-bottom: 12px;
    }
}

.scm-selected-instrument-summary {
    margin: 0 0 22px;
    padding: 14px 16px;
    border-left: 4px solid #32b1a8;
    background: #f7f7f7;
}

#scm-customer-info-description {
    color: #32b1a8;
}

.scm-customer-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.scm-customer-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.scm-customer-field input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #b8b8b8;
    border-radius: 7px;
    background: #ffffff;
    box-sizing: border-box;
    font-size: 16px;
}

.scm-customer-field input:focus {
    outline: 2px solid #32b1a8;
    outline-offset: 2px;
    border-color: #32b1a8;
}

@media screen and (min-width: 700px) {
    .scm-customer-fields {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

.scm-instrument-selection-message {
    margin-top: 16px;
    padding: 12px 14px;
    border-left: 4px solid #777777;
    background: #f7f7f7;
    font-weight: 600;
}

.scm-instrument-selection-error {
    border-left-color: #b32d2e;
    background: #fff2f2;
    color: #b32d2e;
}

.scm-package-actions {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #dddddd;
}

#scm-build-cart-payload {
    min-height: 50px;
    padding: 12px 24px;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
}

#scm-cart-action-message {
    margin-top: 14px;
}

.scm-package-item-selection {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
}

.scm-package-item-checkbox {
    width: 20px;
    height: 20px;
    margin: 0;
    flex: 0 0 20px;
}

.scm-package-item-selection-label {
    font-weight: 700;
}

.scm-package-item-optional {
    cursor: pointer;
}

.scm-package-item-selected {
    border-color: var(--scm-primary);

    box-shadow:
        0 3px 10px var(--scm-primary-light);
}

.scm-package-item-required {
    background: #fafafa;
}

.scm-package-item-optional:not(
    .scm-package-item-selected
) {
    opacity: 0.72;
}

.scm-package-item-optional:not(
    .scm-package-item-selected
):hover {
    opacity: 1;
    border-color: #999999;
}

.scm-package-summary {
    margin-top: 34px;
    padding: 22px;
    border: 2px solid #dddddd;
    border-radius: 8px;
    background: #fafafa;
}

.scm-package-summary h3 {
    margin-top: 0;
    margin-bottom: 18px;
}

.scm-package-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid #dddddd;
}

.scm-package-summary-row:last-of-type {
    border-bottom: 0;
}

.scm-package-summary-amount {
    flex: 0 0 auto;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.scm-package-summary-term {
    margin-top: 4px;
    font-size: 0.92em;
    font-weight: 400;
    color: #666666;
}

.scm-package-summary-total {
    margin-top: 8px;
    padding-top: 16px;
    font-size: 1.18em;
    font-weight: 700;
    border-top: 2px solid var(--scm-primary);
}

.scm-package-summary-total
.scm-package-summary-amount {
    color: var(--scm-primary);    
    font-size: 1.25em;
    font-weight: 700;
}

.scm-package-summary-prompt {
    margin-bottom: 0;
    font-weight: 600;
}

.scm-package-summary-note {
    margin: 15px 0 0;
    font-size: 0.9em;
    color: #666666;
}

@media screen and (max-width: 520px) {
    .scm-package-summary-row {
        display: block;
    }

    .scm-package-summary-amount {
        margin-top: 8px;
        text-align: left;
    }
}

/* =========================================================
 * SCM package builder: brand colors and compact spacing
 * ========================================================= */

/*
 * Native radio buttons and checkboxes.
 */
.scm-package-builder input[type="radio"],
.scm-package-builder input[type="checkbox"] {
    accent-color: #32b1a8;
}


/*
 * Selected instrument and accessory cards.
 */
.scm-instrument-choice-selected,
.scm-package-item-selected {
    border-color: #32b1a8;
    box-shadow:
        0 3px 10px rgba(50,177,168,.18);
}


/*
 * Main action button.
 */
#scm-build-cart-payload {
    background: #f7941d;
    color: #ffffff;
}

#scm-build-cart-payload:hover,
#scm-build-cart-payload:focus {
    background: #f7941d;
    color: #ffffff;
    filter: brightness(0.92);
}


/*
 * Reduce the overall vertical footprint.
 */
.scm-package-builder {
    margin-top: 18px;
    margin-bottom: 18px;
}

.scm-builder-step {
    margin-bottom: 16px;
    padding: 20px;
}

.scm-step-number {
    margin-bottom: 3px;
}

.scm-builder-step h2 {
    margin-bottom: 5px;
}

.scm-step-description {
    margin-bottom: 12px;
}


/*
 * More compact select fields.
 */
.scm-builder-step select {
    min-height: 46px;
    padding-top: 8px;
    padding-bottom: 8px;
}


/*
 * Package sections.
 */
.scm-package-details {
    margin-top: 12px;
}

.scm-package-name {
    margin-bottom: 16px;
}

.scm-package-section {
    margin-top: 20px;
}

.scm-package-section h3 {
    margin-top: 0;
    margin-bottom: 7px;
}

.scm-package-section-description {
    margin-top: 0;
    margin-bottom: 10px;
}

.scm-package-item-grid {
    gap: 11px;
}

.scm-package-item {
    padding: 12px;
}


/*
 * Instrument cards.
 */

.scm-instrument-choice {
    padding: 13px;
}

.scm-instrument-choice-most-popular {
    padding-top: 38px;
}

.scm-instrument-choice > input[type="radio"] {
    top: 12px;
    left: 12px;
    width: 19px;
    height: 19px;
}

.scm-instrument-choice
.scm-package-product-image {
    height: 118px;
    max-width: 175px;
    margin: 2px auto 6px;    
}

.scm-instrument-choice
.scm-package-product-name {
    margin-bottom: 6px;
    font-size: 1.05em;
}

.scm-instrument-choice
.scm-package-product-mode,
.scm-instrument-choice
.scm-package-product-price {
    margin-bottom: 5px;
}


/*
 * Recommended and optional accessory cards.
 */
.scm-package-item-selection {
    margin-bottom: 9px;
}

.scm-standard-item
.scm-package-product-image {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
}

.scm-package-product {
    gap: 13px;
}

.scm-package-product-name {
    margin-bottom: 5px;
}

.scm-package-product-mode,
.scm-package-product-price {
    margin-bottom: 5px;
}


/*
 * Instrument-selection message.
 */
.scm-instrument-selection-message {
    margin-top: 11px;
    padding: 9px 11px;
}


/*
 * Customer information step.
 */
.scm-selected-instrument-summary {
    margin-bottom: 15px;
    padding: 10px 12px;
    border-left-color: #32b1a8;
}

.scm-customer-fields {
    gap: 12px 16px;
}

.scm-customer-field label {
    margin-bottom: 4px;
}

.scm-customer-field input {
    min-height: 43px;
    padding: 8px 10px;
}

.scm-customer-field input:focus {

    border-color: var(--scm-primary);

    outline: none;

    box-shadow:
        0 0 0 3px
        rgba(50,177,168,.18);

}


/*
 * Package summary.
 */
.scm-package-summary {
    margin-top: 22px;
    padding: 15px;
    border-color: #dddddd;
}

.scm-package-summary h3 {
    margin-bottom: 10px;
}

.scm-package-summary-row {
    gap: 14px;
    padding: 9px 0;
}

.scm-package-summary-term {
    margin-top: 2px;
}

.scm-package-summary-note {
    margin-top: 10px;
}


/*
 * Add-to-cart area.
 */
.scm-package-actions {
    margin-top: 20px;
    padding-top: 16px;
}

#scm-build-cart-payload {
    min-height: 46px;
    padding: 10px 20px;
}


/*
 * Tighten the interface a little more on phones.
 */
@media screen and (max-width: 600px) {
    .scm-package-builder {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .scm-builder-step {
        margin-bottom: 12px;
        padding: 15px;
    }

    .scm-package-section {
        margin-top: 16px;
    }

    .scm-package-item {
        padding: 10px;
    }

    .scm-instrument-choice
    .scm-package-product-image {
        width: 100%;
        max-width: 175px;
        height: 115px;
        margin: 3px auto 8px;
    }

    .scm-standard-item
    .scm-package-product-image {
        width: 75px;
        height: 75px;
        max-width: 75px;
        margin-bottom: 7px;
    }

    .scm-package-summary {
        margin-top: 17px;
        padding: 12px;
    }

    .scm-package-summary-row {
        padding: 7px 0;
    }
}

.scm-starter-pak-book {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #dddddd;
}

.scm-starter-pak-book-label {
    margin-bottom: 3px;
    font-size: 0.9em;
    font-weight: 600;
}

.scm-starter-pak-book-value {
    font-size: 0.95em;
    color: #333333;
}

.scm-starter-pak-book-select {
    display: block;
    width: 100%;
    max-width: 420px;
    margin-top: 4px;
}

.scm-package-notes {
    margin: 4px 0 14px;
    color: #f7941d;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: pre-line;
}

.scm-starter-pak-description {
    margin-top: 5px;
    font-size: 0.76rem;
    line-height: 1.35;
    color: #32b1a8;
}

.scm-instrument-size-choice {
    margin-top: 14px;
    text-align: center;
}

.scm-builder-step select.scm-instrument-size-select {
    width: 170px;
    min-width: 170px;
    max-width: 170px;
    display: inline-block;
}

.scm-instrument-size-label {
    margin-bottom: 6px;
    text-align: center;
    font-weight: 600;
}

/* Strong visual hierarchy for instrument cards */
.scm-instrument-choice
.scm-package-product-name {
    display: block;
    margin: 10px -13px 14px;
    padding: 10px 12px;

    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.25;
    color: #222222;

    background: #f5f5f5;
    border-top: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
}

.scm-instrument-choice
.scm-package-product-mode {
    margin-bottom: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #666666;
}

.scm-instrument-choice
.scm-package-product-price {
    margin-bottom: 10px;
    font-size: 1.05rem;
    font-weight: 700;
}

.scm-instrument-choice
.scm-package-product-stock {
    margin-top: 8px;
}

.scm-customer-field select {
    width: 100%;
    min-height: 43px;
    padding: 8px 38px 8px 10px;
    border: 1px solid #b8b8b8;
    border-radius: 7px;
    background-color: #ffffff;
    box-sizing: border-box;
    font-size: 16px;
}

.scm-customer-field select:focus {
    border-color: var(--scm-primary);
    outline: none;
    box-shadow:
        0 0 0 3px
        rgba(50,177,168,.18);
}
