/* Product configuration only: leave the shared header and cart pages unchanged. */
#frmConfigureProduct.cp-configurator {
    --cp-blue: #0874e9;
    --cp-blue-soft: #f3f8ff;
    --cp-ink: #162a48;
    --cp-muted: #8793a3;
    --cp-line: #e4e9ef;
    counter-reset: cp-section;
    min-width: 0;
    padding: 8px 28px 28px;
    color: var(--cp-ink);
}

#frmConfigureProduct.cp-configurator *,
#frmConfigureProduct.cp-configurator *::before,
#frmConfigureProduct.cp-configurator *::after {
    box-sizing: border-box;
}

#frmConfigureProduct.cp-configurator .item-content {
    min-width: 0;
    width: 100%;
}

#frmConfigureProduct.cp-configurator .cp-section {
    counter-increment: cp-section;
    min-width: 0;
    padding: 25px 0 26px;
    border-bottom: 1px solid #edf0f4;
}

#frmConfigureProduct.cp-configurator .cp-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 19px;
}

#frmConfigureProduct.cp-configurator .cp-section-heading h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--cp-ink);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
}

#frmConfigureProduct.cp-configurator .cp-section-heading h2::before {
    content: counter(cp-section, decimal-leading-zero);
    position: static;
    display: flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #edf5ff;
    color: var(--cp-blue);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    transform: none;
}

#frmConfigureProduct.cp-configurator .cp-section-hint {
    color: #8997a9;
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
}

#frmConfigureProduct.cp-configurator .cp-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 22px;
}

#frmConfigureProduct.cp-configurator .cp-fields.cp-fields-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#frmConfigureProduct.cp-configurator .cp-field,
#frmConfigureProduct.cp-configurator .cp-choice-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

#frmConfigureProduct.cp-configurator .cp-field-label {
    display: block;
    float: none;
    width: 100%;
    margin: 0 0 9px;
    padding: 0;
    border: 0;
    color: #263b56;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

#frmConfigureProduct.cp-configurator .form-control {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    /* Override the theme's global 40px / 3px !important controls. */
    height: 46px !important;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid #dbe3ec;
    border-radius: 9px !important;
    background-color: #fff;
    box-shadow: none;
    color: #344862;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color .15s ease, box-shadow .15s ease;
}

#frmConfigureProduct.cp-configurator select.form-control {
    overflow: hidden;
    padding-right: 30px;
    text-overflow: ellipsis;
    cursor: pointer;
}

#frmConfigureProduct.cp-configurator textarea.form-control {
    height: auto !important;
    min-height: 90px;
    resize: vertical;
}

#frmConfigureProduct.cp-configurator .form-control:hover {
    border-color: #8ab9f6;
}

#frmConfigureProduct.cp-configurator .form-control:focus {
    border-color: var(--cp-blue);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(8, 116, 233, .12) !important;
}

#frmConfigureProduct.cp-configurator .cp-choice-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#frmConfigureProduct.cp-configurator .cp-choice,
#frmConfigureProduct.cp-configurator .cp-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid #dbe3ec;
    border-radius: 9px;
    background: #fff;
    color: #344862;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
}

#frmConfigureProduct.cp-configurator .cp-choice:has(input:checked),
#frmConfigureProduct.cp-configurator .cp-checkbox:has(input:checked) {
    border-color: var(--cp-blue);
    background: var(--cp-blue-soft);
}

#frmConfigureProduct.cp-configurator input[type="radio"],
#frmConfigureProduct.cp-configurator input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--cp-blue);
}

#frmConfigureProduct.cp-configurator .cp-quantity {
    min-width: 0;
}

#frmConfigureProduct.cp-configurator .cp-quantity .slider {
    max-width: 100%;
}

#frmConfigureProduct.cp-configurator .cp-os-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

#frmConfigureProduct.cp-configurator .cp-os-card,
#frmConfigureProduct.cp-configurator .cp-cycle-card {
    min-width: 0;
    margin: 0;
    border: 1px solid #dfe6ed;
    border-radius: 10px;
    background: #fff;
    color: #283b54;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

#frmConfigureProduct.cp-configurator .cp-os-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
}

#frmConfigureProduct.cp-configurator .cp-os-card img {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

#frmConfigureProduct.cp-configurator .cp-os-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

#frmConfigureProduct.cp-configurator .cp-os-tick {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--cp-blue);
    font-size: 17px;
    visibility: hidden;
}

#frmConfigureProduct.cp-configurator .cp-os-card.is-selected .cp-os-tick {
    visibility: visible;
}

#frmConfigureProduct.cp-configurator .cp-os-card:hover,
#frmConfigureProduct.cp-configurator .cp-cycle-card:hover {
    border-color: #8ab9f6;
}

#frmConfigureProduct.cp-configurator .cp-os-card.is-selected,
#frmConfigureProduct.cp-configurator .cp-cycle-card.is-selected {
    border-color: var(--cp-blue);
    background: var(--cp-blue-soft);
    box-shadow: inset 0 0 0 1px var(--cp-blue), inset 0 0 0 3px #e8f2ff;
}

#frmConfigureProduct.cp-configurator .cp-os-card:focus-visible,
#frmConfigureProduct.cp-configurator .cp-cycle-card:focus-visible,
#frmConfigureProduct.cp-configurator #btnCompleteProductConfig:focus-visible {
    outline: 3px solid rgba(8, 116, 233, .35);
    outline-offset: 3px;
}

#frmConfigureProduct.cp-configurator .cp-os-version-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin-top: 13px;
    padding: 13px 16px;
    border: 1px solid #dceafa;
    border-radius: 10px;
    background: #f7faff;
}

#frmConfigureProduct.cp-configurator .cp-os-current-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

#frmConfigureProduct.cp-configurator .cp-os-version-label {
    min-width: 0;
    margin: 0;
    color: #7e8da1;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

#frmConfigureProduct.cp-configurator .cp-os-current-name {
    display: block;
    margin-bottom: 2px;
    color: #283b54;
    font-size: 13px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

#frmConfigureProduct.cp-configurator .cp-os-version {
    flex: 0 1 410px;
    width: 410px;
    margin-left: auto;
}

#frmConfigureProduct.cp-configurator .cp-billing-section {
    border-bottom: 0;
    padding-bottom: 0;
}

#frmConfigureProduct.cp-configurator .cp-cycle-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

#frmConfigureProduct.cp-configurator .cp-cycle-card {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    gap: 8px;
    min-height: 82px;
    padding: 13px 16px;
    line-height: 1.4;
}

#frmConfigureProduct.cp-configurator .cp-cycle-title {
    min-width: 0;
    font-size: 15px;
    font-weight: 650;
}

#frmConfigureProduct.cp-configurator .cp-cycle-description {
    order: 2;
    display: block;
    flex: 0 0 100%;
    color: #8997a9;
    font-size: 12px;
    overflow-wrap: anywhere;
}

#frmConfigureProduct.cp-configurator .cp-cycle-saving {
    margin-left: auto;
    padding: 3px 6px;
    border-radius: 5px;
    background: #e9f8ef;
    color: #198d5d;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

#frmConfigureProduct.cp-configurator [hidden] {
    display: none !important;
}

#frmConfigureProduct.cp-configurator .cp-checkout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
    margin-top: 23px;
    padding: 18px 20px;
    border-radius: 11px;
    background: #f6f9fd;
}

#frmConfigureProduct.cp-configurator .cp-checkout .summary-body {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    margin: 0 !important;
}

#frmConfigureProduct.cp-configurator .cp-checkout #producttotal {
    min-width: 0;
    max-width: 100%;
}

#frmConfigureProduct.cp-configurator .cp-checkout .total-due-today {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px 13px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #738298;
    font-size: 13px;
}

#frmConfigureProduct.cp-configurator .cp-checkout .total-due-today .amt {
    color: var(--cp-blue);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

#frmConfigureProduct.cp-configurator .cp-checkout .agent-price {
    font-size: 13px;
    font-weight: 500;
}

#frmConfigureProduct.cp-configurator #orderSummaryLoader {
    margin: 0 0 0 12px !important;
}

#frmConfigureProduct.cp-configurator #btnCompleteProductConfig {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 160px;
    min-height: 45px;
    margin: 0;
    padding: 11px 22px;
    border: 1px solid var(--cp-blue);
    border-radius: 8px;
    background: var(--cp-blue);
    box-shadow: 0 5px 13px rgba(8, 116, 233, .15);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

#frmConfigureProduct.cp-configurator #btnCompleteProductConfig:hover {
    border-color: #0664cd;
    background: #0664cd;
}

@media (max-width: 991px) {
    #frmConfigureProduct.cp-configurator .cp-cycle-card {
        padding: 12px;
    }

    #frmConfigureProduct.cp-configurator .cp-cycle-saving {
        font-size: 10px;
    }

    #frmConfigureProduct.cp-configurator .cp-os-version {
        flex-basis: 52%;
        width: 52%;
    }
}

@media (max-width: 768px) {
    #frmConfigureProduct.cp-configurator {
        margin: 0;
        padding: 3px 16px 18px;
        border: 1px solid var(--cp-line);
        border-radius: 12px;
    }

    #frmConfigureProduct.cp-configurator .cp-section {
        padding-top: 21px;
        padding-bottom: 22px;
    }

    #frmConfigureProduct.cp-configurator .cp-section-heading {
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 16px;
    }

    #frmConfigureProduct.cp-configurator .cp-section-heading h2 {
        font-size: 17px;
    }

    #frmConfigureProduct.cp-configurator .cp-section-hint {
        flex: 0 0 100%;
        padding-left: 40px;
        text-align: left;
    }

    #frmConfigureProduct.cp-configurator .cp-fields,
    #frmConfigureProduct.cp-configurator .cp-fields.cp-fields-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }

    #frmConfigureProduct.cp-configurator .cp-os-grid,
    #frmConfigureProduct.cp-configurator .cp-cycle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    #frmConfigureProduct.cp-configurator .cp-os-card {
        gap: 8px;
        min-height: 61px;
        padding: 12px;
        font-size: 14px;
    }

    #frmConfigureProduct.cp-configurator .cp-os-card img {
        flex-basis: 25px;
        width: 25px;
        height: 25px;
    }

    #frmConfigureProduct.cp-configurator .cp-os-version-row {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
    }

    #frmConfigureProduct.cp-configurator .cp-os-version {
        flex: 0 0 100%;
        width: 100%;
        margin-left: 0;
    }

    #frmConfigureProduct.cp-configurator .cp-billing-section {
        padding-bottom: 0;
    }

    #frmConfigureProduct.cp-configurator .cp-cycle-card {
        min-height: 80px;
    }

    #frmConfigureProduct.cp-configurator .cp-checkout {
        flex-wrap: wrap;
        gap: 14px;
        padding: 16px;
    }

    #frmConfigureProduct.cp-configurator .cp-checkout .summary-body {
        flex-basis: 100%;
    }

    #frmConfigureProduct.cp-configurator .cp-checkout .total-due-today .amt {
        font-size: 24px;
    }

    #frmConfigureProduct.cp-configurator #btnCompleteProductConfig {
        width: 100%;
    }
}

@media (max-width: 479px) {
    #frmConfigureProduct.cp-configurator .cp-fields,
    #frmConfigureProduct.cp-configurator .cp-fields.cp-fields-three {
        grid-template-columns: minmax(0, 1fr);
    }

    #frmConfigureProduct.cp-configurator .cp-os-card {
        gap: 7px;
        padding: 10px;
        font-size: 12px;
    }

    #frmConfigureProduct.cp-configurator .cp-os-card img {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
    }

    #frmConfigureProduct.cp-configurator .cp-os-tick {
        font-size: 13px;
    }

    #frmConfigureProduct.cp-configurator .cp-cycle-card {
        gap: 6px;
        padding: 11px;
    }

    #frmConfigureProduct.cp-configurator .cp-cycle-title {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #frmConfigureProduct.cp-configurator .form-control,
    #frmConfigureProduct.cp-configurator .cp-os-card,
    #frmConfigureProduct.cp-configurator .cp-cycle-card {
        transition: none;
    }
}
