/* ────────────────────────────────────────────────
   Modal overlay & shell
──────────────────────────────────────────────── */
.wellis-configurator-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.wellis-configurator-modal {
    background: #fff;
    max-width: 620px;
    width: 92%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 2rem;
    border-radius: 8px;
    position: relative;
}

.wellis-configurator-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

/* ────────────────────────────────────────────────
   Step 1 — produs + accesorii
──────────────────────────────────────────────── */
.wellis-configurator-product {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.wellis-configurator-product img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.wellis-from-label {
    font-size: .8rem;
    color: #777;
    margin: .25rem 0 0;
}

.wellis-configurator-total {
    font-weight: 700;
    font-size: 1.3rem;
    color: #1a1a1a;
}

.wellis-configurator-items {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.wellis-configurator-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    border: 1px solid #e5e5e5;
    padding: .5rem .75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color .15s;
}

.wellis-configurator-item:hover {
    border-color: #0073aa;
}

.wellis-configurator-item input[type=checkbox] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.wellis-configurator-item img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.wellis-configurator-item-name {
    flex: 1;
    font-size: .9rem;
}

.wellis-configurator-item-price {
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
}

.wellis-step-footer {
    text-align: right;
    margin-top: 1rem;
}

/* ────────────────────────────────────────────────
   Step 2 — formular de contact
──────────────────────────────────────────────── */
.wellis-step2-summary {
    background: #f5f8fa;
    border: 1px solid #dde3e8;
    border-radius: 6px;
    padding: .75rem 1rem;
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.wellis-quote-form .wellis-form-row {
    margin-bottom: 1rem;
}

.wellis-quote-form label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .3rem;
    color: #333;
}

.wellis-req  { color: #c0392b; }
.wellis-opt  { font-weight: 400; color: #888; font-size: .8rem; }

.wellis-quote-form input[type=text],
.wellis-quote-form input[type=tel],
.wellis-quote-form input[type=email],
.wellis-quote-form textarea {
    display: block;
    width: 100%;
    padding: .55rem .75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: .95rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .15s;
}

.wellis-quote-form input:focus,
.wellis-quote-form textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,.15);
}

.wellis-quote-form textarea {
    resize: vertical;
}

.wellis-quote-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
}

.wellis-btn-back {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    font-size: .9rem;
    padding: 0;
}

.wellis-btn-back:hover { text-decoration: underline; }

.wellis-configurator-status {
    margin-top: .75rem;
    font-size: .85rem;
    color: #c0392b;
    min-height: 1.2em;
}

/* ────────────────────────────────────────────────
   Step 3 — confirmare
──────────────────────────────────────────────── */
.wellis-success {
    text-align: center;
    padding: 2rem 1rem;
}

.wellis-success-icon {
    width: 64px;
    height: 64px;
    background: #27ae60;
    color: #fff;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 64px;
    margin: 0 auto 1.25rem;
}

.wellis-success h2 { margin-bottom: .5rem; }
.wellis-success p  { color: #555; margin-bottom: 1.5rem; }

/* ────────────────────────────────────────────────
   Elemente globale (produs + arhivă)
──────────────────────────────────────────────── */
.wellis-from-price {
    display: block;
    font-size: .95rem;
    color: #555;
    margin-bottom: .25rem;
}

.wellis-from-price strong {
    font-size: 1.15rem;
    color: #1a1a1a;
}

.wellis-quote-box {
    margin: 1rem 0;
}

.wellis-quote-main-btn {
    min-width: 200px;
}

.wellis-quote-note {
    font-size: .8rem;
    color: #888;
    margin-top: .4rem;
}

.wellis-loop-btn {
    font-size: .85rem !important;
}

/* ────────────────────────────────────────────────
   Specificații tehnice produs
──────────────────────────────────────────────── */
.wellis-specs { margin: 1.5rem 0; }

.wellis-specs__section {
    font-size: 1rem;
    font-weight: 700;
    color: #0c5a96;
    margin: 1.5rem 0 .5rem;
    padding-bottom: .35rem;
    border-bottom: 2px solid #e8f0f8;
}

.wellis-specs__list {
    margin: 0;
    padding: 0;
}

.wellis-specs__row {
    display: flex;
    gap: 1rem;
    padding: .45rem 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: baseline;
}

.wellis-specs__row:last-child { border-bottom: none; }

.wellis-specs__row dt {
    font-weight: 600;
    min-width: 220px;
    flex-shrink: 0;
    color: #333;
    font-style: normal;
}

.wellis-specs__row dd {
    margin: 0;
    color: #555;
}

@media (max-width: 600px) {
    .wellis-specs__row { flex-direction: column; gap: .15rem; }
    .wellis-specs__row dt { min-width: 0; }
}

/* ────────────────────────────────────────────────
   Sumar coș (Step 2)
──────────────────────────────────────────────── */
.wellis-cart-box {
    background: #f5f8fa;
    border: 1px solid #dde3e8;
    border-radius: 6px;
    padding: .75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: .9rem;
}

.wellis-cart-label {
    font-weight: 700;
    color: #333;
    margin: 0 0 .5rem;
}

.wellis-cart-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .4rem 0;
    border-bottom: 1px solid #e8edf1;
}

.wellis-cart-row:last-of-type { border-bottom: none; }

.wellis-cart-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.wellis-cart-name { flex: 1; color: #222; }
.wellis-cart-name em { font-style: normal; color: #888; font-size: .85em; }
.wellis-cart-price { font-weight: 600; white-space: nowrap; }

.wellis-cart-total {
    margin-top: .6rem;
    padding-top: .5rem;
    border-top: 2px solid #dde3e8;
    text-align: right;
    font-size: .95rem;
}

.wellis-cart-total strong { color: #0c5a96; font-size: 1.05rem; }

.wellis-cart-empty { color: #888; font-style: italic; margin: 0; }

.wellis-step1-status {
    font-size: .85rem;
    color: #c0392b;
    min-height: 1em;
    margin: .4rem 0 .6rem;
}

/* ── Product description imported from wellis.ro ── */
.wellis-product-description { line-height: 1.7; }
.wellis-product-description h2,
.wellis-product-description h3,
.wellis-product-description h4 { margin: 1.5rem 0 .6rem; color: #0c5a96; }
.wellis-product-description p { margin: .5rem 0; }
.wellis-product-description > div:empty { display: none; }

.wellis-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .5rem;
    margin: 1rem 0 1.5rem;
}
.wellis-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
@media (max-width: 600px) {
    .wellis-gallery { grid-template-columns: 1fr 1fr; }
    .wellis-gallery img { height: 140px; }
}
