/* =============================================================
   CONFIGURE PRODUCT — Fresh cp- namespaced CSS
   All selectors use .cp-page prefix — zero conflict
   ============================================================= */

/* --- Kill inherited styles --- */
.cp-page .cp-form .sub-heading,
.cp-page .cp-form .primary-bg-color { display: none !important; }
.cp-page .cp-form .field-container,
.cp-page .cp-main,
.cp-page #frmConfigureProduct,
.cp-page #productAddonsContainer {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* --- Page Header --- */
.cp-page .cp-header {
    border: none !important;
    margin: 12px 0 20px !important;
    padding: 0 !important;
}
.cp-page .cp-header h1 {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #0f1d36 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* --- Subtitle --- */
.cp-page .cp-subtitle {
    font-size: 14px !important;
    color: #5a6d8a !important;
    margin: 0 0 16px !important;
}

/* --- Product Info Banner --- */
.cp-page .cp-product-banner {
    background: linear-gradient(135deg, #f0f5ff, #e8effc) !important;
    border: 1px solid #dce6f5 !important;
    border-radius: 14px !important;
    padding: 22px 26px !important;
    margin-bottom: 24px !important;
    box-shadow: none !important;
}
.cp-page .cp-product-name {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0f1d36 !important;
    margin: 0 0 6px !important;
}
.cp-page .cp-product-desc {
    font-size: 14px !important;
    color: #5a6d8a !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}
.cp-page .cp-product-banner ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 10px 0 0 !important;
}
.cp-page .cp-product-banner ul li {
    padding: 6px 0 6px 22px !important;
    position: relative !important;
    font-size: 13px !important;
    color: #5a6d8a !important;
    border-bottom: 1px solid rgba(0,0,0,.04) !important;
}
.cp-page .cp-product-banner ul li:last-child { border-bottom: none !important; }
.cp-page .cp-product-banner ul li::before {
    content: '\2713' !important;
    position: absolute !important;
    left: 0 !important;
    color: #01aa5d !important;
    font-weight: 700 !important;
    font-size: 13px !important;
}
.cp-page .cp-product-banner ul li b { font-weight: 800 !important; color: #0f1d36 !important; }

/* --- Section Titles --- */
.cp-page .cp-section-title {
    border: none !important;
    border-left: 3px solid #004fac !important;
    background: #f0f5ff !important;
    border-radius: 0 8px 8px 0 !important;
    margin: 24px 0 12px !important;
    padding: 10px 16px !important;
    height: auto !important;
    line-height: normal !important;
}
.cp-page .cp-section-title span {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0f1d36 !important;
    background: none !important;
    padding: 0 !important;
}

/* --- White Card Containers --- */
.cp-page .cp-card,
.cp-page .cp-card.product-configurable-options,
.cp-page div.cp-card {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    border: 1px solid #edf0f5 !important;
    border-radius: 12px !important;
    padding: 20px 20px 12px !important;
    margin-bottom: 4px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.03) !important;
}

/* --- Form Fields --- */
.cp-page .cp-input,
.cp-page .cp-select,
.cp-page .cp-card .form-control,
.cp-page .cp-config-options .form-control {
    background: #fff !important;
    border: 1.5px solid #dee3e8 !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    color: #2e3442 !important;
    font-weight: 500 !important;
    height: 46px !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
}
.cp-page .cp-input:focus,
.cp-page .cp-select:focus,
.cp-page .cp-card .form-control:focus,
.cp-page .cp-config-options .form-control:focus {
    border-color: #004fac !important;
    box-shadow: 0 0 0 3px rgba(0,79,172,.08) !important;
    outline: none !important;
}

/* --- Select Dropdowns --- */
.cp-page .cp-select,
.cp-page .cp-config-options select.form-control {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6d8a' d='M6 8.825L.587 3.412l.825-.825L6 7.175l4.587-4.588.826.825z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px !important;
    padding-right: 36px !important;
    cursor: pointer !important;
}

/* --- Labels --- */
.cp-page .cp-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    color: #7a8ba8 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* --- Radio / Checkbox Labels --- */
.cp-page .cp-radio-label {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #2e3442 !important;
    cursor: pointer !important;
}

/* --- Configurable Options — clean grid layout --- */
.cp-page .cp-config-options,
.cp-page div.cp-config-options,
.cp-page .cp-config-options.product-configurable-options,
.cp-page #productConfigurableOptions {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    border: 1px solid #edf0f5 !important;
    border-radius: 12px !important;
    padding: 12px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.03) !important;
}
.cp-page .cp-config-options > .row {
    margin: 0 !important;
}
.cp-page .cp-config-options > .row > [class*="col-"] {
    padding: 4px !important;
}
.cp-page .cp-option {
    background: #f8fafc !important;
    border: 1.5px solid #edf0f5 !important;
    border-radius: 10px !important;
    padding: 14px 16px 12px !important;
    margin-bottom: 0 !important;
    transition: all .2s ease !important;
    height: 100% !important;
}
.cp-page .cp-option:hover {
    border-color: #c5d4e8 !important;
    background: #f0f5ff !important;
}
.cp-page .cp-option .cp-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    color: #7a8ba8 !important;
    margin-bottom: 8px !important;
}
.cp-page .cp-option .form-control,
.cp-page .cp-option select.form-control {
    background: #fff !important;
    border: 1.5px solid #dee3e8 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0f1d36 !important;
    height: 44px !important;
}
.cp-page .cp-option .form-control:focus,
.cp-page .cp-option select.form-control:focus {
    border-color: #004fac !important;
    box-shadow: 0 0 0 3px rgba(0,79,172,.08) !important;
}
.cp-page .cp-option select.form-control {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6d8a' d='M6 8.825L.587 3.412l.825-.825L6 7.175l4.587-4.588.826.825z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    padding-right: 34px !important;
    cursor: pointer !important;
}

/* --- Server Config — same tile pattern as config options --- */
.cp-page .cp-card .row > [class*="col-"] {
    padding-left: 6px !important;
    padding-right: 6px !important;
}
.cp-page .cp-field {
    background: #f8fafc !important;
    border: 1.5px solid #edf0f5 !important;
    border-radius: 10px !important;
    padding: 14px 16px 12px !important;
    margin-bottom: 8px !important;
}

/* --- Outline Buttons (hostname/password gen) --- */
.cp-page .cp-btn-outline {
    background: #fff !important;
    color: #5a6d8a !important;
    border: 1px solid #dee3e8 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    padding: 6px 14px !important;
    margin-top: 8px !important;
    transition: all .2s ease !important;
}
.cp-page .cp-btn-outline:hover {
    background: #e8f0fe !important;
    color: #004fac !important;
    border-color: #004fac !important;
}
.cp-page .cp-pw-actions {
    display: flex !important;
    gap: 6px !important;
    margin-top: 8px !important;
}

/* --- Addon Cards --- */
.cp-page .cp-addons {
    margin: 0 -8px !important;
}
.cp-page .cp-addons > [class*="col-"] {
    padding: 0 8px !important;
}
.cp-page .cp-addon-card {
    background: #fff !important;
    border: 1px solid #edf0f5 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    margin-bottom: 14px !important;
    transition: all .25s ease !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.03) !important;
    padding: 0 !important;
}
.cp-page .cp-addon-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.06) !important;
    border-color: #d0ddef !important;
    transform: translateY(-2px) !important;
}
.cp-page .cp-addon-body {
    padding: 20px 24px !important;
    text-align: left !important;
}
.cp-page .cp-addon-body label {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f1d36 !important;
    display: block !important;
    margin-bottom: 8px !important;
    width: 100% !important;
}
.cp-page .cp-addon-price {
    padding: 14px 24px !important;
    background: #f8faff !important;
    font-weight: 700 !important;
    color: #0f1d36 !important;
    font-size: 16px !important;
    text-align: left !important;
    border-top: 1px solid #edf0f5 !important;
}
.cp-page .cp-addon-add {
    display: block !important;
    padding: 14px 24px !important;
    background: linear-gradient(135deg, #1bc577, #15a865) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-align: center !important;
    border-radius: 0 0 14px 14px !important;
    cursor: pointer !important;
    transition: opacity .2s ease !important;
}
.cp-page .cp-addon-add:hover { opacity: .9 !important; }
.cp-page .cp-addon-selected {
    border-color: #004fac !important;
    box-shadow: 0 0 0 2px #004fac !important;
}
.cp-page .cp-addon-selected .cp-addon-price {
    background: #004fac !important;
    color: #fff !important;
}
.cp-page .cp-addon-selected .cp-addon-add {
    background: #ffeef0 !important;
    color: #e74c3c !important;
}

/* --- Help Bar --- */
.cp-page .cp-help-bar {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #fff !important;
    border: 1px solid #edf0f5 !important;
    border-radius: 12px !important;
    padding: 16px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #5a6d8a !important;
    margin-top: 24px !important;
}
.cp-page .cp-help-bar i {
    font-size: 20px !important;
    color: #004fac !important;
    flex-shrink: 0 !important;
}
.cp-page .cp-help-bar a {
    color: #004fac !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* --- Order Summary Sidebar --- */
.cp-page .cp-summary-wrap {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin-top: 0 !important;
}
.cp-page .cp-summary {
    background: #fff !important;
    border: 1px solid #edf0f5 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.05) !important;
    padding: 0 !important;
    border-bottom: none !important;
}
.cp-page .cp-summary-title {
    background: #0f1d36 !important;
    color: #fff !important;
    text-align: left !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 18px 24px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 16px 16px 0 0 !important;
    letter-spacing: .3px !important;
}
.cp-page .cp-summary-body {
    background: #fff !important;
    padding: 0 !important;
    min-height: auto !important;
    font-size: 14px !important;
}
.cp-page .cp-sidebar {
    position: sticky !important;
    top: 20px !important;
}

/* --- Continue Button --- */
.cp-page .cp-continue-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 16px !important;
    background: linear-gradient(135deg, #004fac, #0066d6) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(0,79,172,.2) !important;
    transition: all .25s ease !important;
    cursor: pointer !important;
}
.cp-page .cp-continue-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0,79,172,.3) !important;
    color: #fff !important;
}

/* --- Secure Note --- */
.cp-page .cp-secure-note {
    text-align: center !important;
    margin-top: 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #8a94a6 !important;
}
.cp-page .cp-secure-note i {
    color: #01aa5d !important;
    margin-right: 4px !important;
}

/* --- Alerts --- */
.cp-page .cp-alert {
    border-radius: 12px !important;
    border: none !important;
    font-size: 14px !important;
    padding: 14px 20px !important;
}

/* --- Misc --- */
.cp-page .cp-muted {
    font-size: 13px !important;
    color: #8a94a6 !important;
}
.cp-page .cp-help {
    font-size: 12px !important;
    color: #8a94a6 !important;
    margin-top: 4px !important;
    display: block !important;
}
.cp-page .cp-metrics-list {
    margin: 0 !important;
    padding-left: 20px !important;
}
.cp-page .cp-metrics-list li {
    padding: 6px 0 !important;
    font-size: 14px !important;
    color: #2e3442 !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .cp-page .cp-card { padding: 16px 14px 8px !important; }
    .cp-page .cp-sidebar { position: static !important; }
    .cp-page .cp-continue-btn {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 100 !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    .cp-page .cp-secure-note { margin-bottom: 60px !important; }
}
