/* Dentalhitec Needle Bundle — luxury stepper configurator (v1.1.1)
   Hardened against theme overrides with scoped specificity + !important. */

.dhnb-configurator {
    margin: 0 0 18px !important;
    padding: 20px 22px 18px !important;
    border: 1px solid #e7eaf0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    max-width: 460px !important;
    box-sizing: border-box !important;
}

/* Header: label + counter */
.dhnb-configurator .dhnb-head {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    margin-bottom: 12px !important;
}
.dhnb-configurator .dhnb-label {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #2A4A96 !important;
}
.dhnb-configurator .dhnb-counter {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #0B1D3A !important;
    font-variant-numeric: tabular-nums !important;
}
.dhnb-configurator .dhnb-count { font-size: 1.05rem !important; }

/* Slim progress bar */
.dhnb-configurator .dhnb-progress {
    height: 3px !important;
    background: #eef1f6 !important;
    border-radius: 3px !important;
    overflow: hidden !important;
    margin-bottom: 16px !important;
}
.dhnb-configurator .dhnb-progress-bar {
    display: block !important;
    height: 100% !important;
    width: 0;
    background: #63ABCE !important;
    border-radius: 3px !important;
    transition: width 0.28s ease !important;
}
.dhnb-configurator.dhnb-complete .dhnb-progress-bar { background: #1f8b4c !important; }

/* Rows */
.dhnb-configurator .dhnb-rows { display: flex !important; flex-direction: column !important; }
.dhnb-configurator .dhnb-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 11px 0 !important;
    border-bottom: 1px solid #f0f2f6 !important;
    background: transparent !important;
}
.dhnb-configurator .dhnb-row:last-child { border-bottom: none !important; }
.dhnb-configurator .dhnb-name {
    font-size: 0.92rem !important;
    color: #1a2332 !important;
    font-weight: 500 !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
}

/* Stepper container */
.dhnb-configurator .dhnb-stepper {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #e0e5ee !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: none !important;
}

/* THE FIX: stepper buttons forced navy/neutral, beating the theme pink */
.dhnb-configurator .dhnb-stepper .dhnb-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border: none !important;
    border-radius: 0 !important;
    background: #f7f9fc !important;
    background-image: none !important;
    color: #0B1D3A !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.dhnb-configurator .dhnb-stepper .dhnb-btn:hover {
    background: #0B1D3A !important;
    color: #ffffff !important;
}
.dhnb-configurator .dhnb-stepper .dhnb-btn:disabled {
    opacity: 0.3 !important;
    cursor: default !important;
    background: #f7f9fc !important;
    color: #0B1D3A !important;
}

/* Stepper value (read-only) */
.dhnb-configurator .dhnb-stepper .dhnb-input {
    width: 42px !important;
    min-width: 42px !important;
    height: 34px !important;
    text-align: center !important;
    border: none !important;
    border-left: 1px solid #e0e5ee !important;
    border-right: 1px solid #e0e5ee !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #0B1D3A !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
    box-shadow: none !important;
    -moz-appearance: textfield !important;
    min-height: 0 !important;
}

/* Status line */
.dhnb-configurator .dhnb-status {
    margin: 16px 0 0 !important;
    padding: 0 !important;
    font-size: 0.85rem !important;
    color: #6b7280 !important;
    transition: color 0.2s ease !important;
}
.dhnb-configurator .dhnb-status.dhnb-ok {
    color: #1f8b4c !important;
    font-weight: 600 !important;
}
.dhnb-configurator .dhnb-status.dhnb-ok::before {
    content: "\2713  ";
    font-weight: 700 !important;
}

/* ---- THE FIX: stack the form so Add to Cart is full-width BELOW ---- */
/* The .dhnb-form class is added by JS to the add-to-cart form on bundle pages. */
form.cart.dhnb-form {
    display: block !important;
    width: 100% !important;
    max-width: 460px !important;
}
form.cart.dhnb-form .quantity { display: none !important; }
form.cart.dhnb-form .single_add_to_cart_button {
    display: block !important;
    width: 100% !important;
    max-width: 460px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 14px 0 0 !important;
    float: none !important;
    line-height: 1.2 !important;
}
/* Locked Add to Cart — clean, intentional (not a stretched grey block) */
.single_add_to_cart_button.dhnb-locked {
    background-color: #c7cedb !important;
    background-image: none !important;
    border-color: #c7cedb !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    transform: none !important;
}

/* ---- Tighten the oversized scale on the bundle page ---- */
.dhnb-bundle-page .woocommerce div.product p.price,
.dhnb-bundle-page .woocommerce div.product span.price {
    font-size: 1.5rem !important;
}
.dhnb-bundle-page .woocommerce div.product .product_title,
.dhnb-bundle-page h1.product_title,
.dhnb-bundle-page .elementor-widget-woocommerce-product-title h1 {
    font-size: 2.2rem !important;
    line-height: 1.15 !important;
}
