/* Horti Dual Price - front (paleta horticola.ro) */

#hdp-selector.hdp-selector {
    margin: 16px 0;
    padding: 12px;
    background: #fdf8f0;
    border: 1px solid #f0e6d6;
    border-radius: 12px;
    text-align: left;
    max-width: 100%;
    overflow: hidden;
}

#hdp-selector, #hdp-selector * {
    box-sizing: border-box;
}

#hdp-selector .hdp-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8a8273;
    margin: 0 0 10px;
}

/* cardul unei optiuni */
#hdp-selector label.hdp-opt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    margin: 0 0 8px;
    background: #fff;
    border: 2px solid #e8e0d2;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font-weight: normal;
    line-height: 1.3;
    transition: border-color .15s ease, box-shadow .15s ease;
}

#hdp-selector label.hdp-opt:last-of-type {
    margin-bottom: 0;
}

/* radio nativ ascuns, desenam unul propriu (consistent in orice tema) */
#hdp-selector .hdp-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

#hdp-selector .hdp-radio {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 2px solid #cfc6b4;
    border-radius: 50%;
    background: #fff;
    position: relative;
    transition: border-color .15s ease;
}

#hdp-selector .hdp-opt input:checked ~ .hdp-radio {
    border-color: #ffa500;
}

#hdp-selector .hdp-opt input:checked ~ .hdp-radio::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffa500;
}

/* coloana text */
#hdp-selector .hdp-opt-text {
    flex: 1 1 120px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

#hdp-selector .hdp-opt-label {
    color: #4f4b42;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: break-word;
}

#hdp-selector .hdp-opt-sub {
    color: #9b937f;
    font-size: 12px;
}

/* coloana pret */
#hdp-selector .hdp-opt-price {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    margin-left: auto;
    font-weight: 800;
    font-size: 16px;
    color: #4f4b42;
    min-width: 0;
    max-width: 100%;
}

#hdp-selector .hdp-save-ghost {
    visibility: hidden;
}

#hdp-selector .hdp-save {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #80C243;
    padding: 2px 7px;
    border-radius: 20px;
    white-space: normal;
    text-align: right;
    line-height: 1.3;
}

/* evidentierea optiunii active */
#hdp-selector.hdp-active-courier label.hdp-opt-courier,
#hdp-selector.hdp-active-pickup label.hdp-opt-pickup {
    border-color: #ffa500;
    background: #fffaf2;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, .14);
}

#hdp-selector.hdp-active-courier label.hdp-opt-courier .hdp-opt-price,
#hdp-selector.hdp-active-pickup label.hdp-opt-pickup .hdp-opt-price {
    color: #80C243;
}

#hdp-selector .hdp-msg {
    margin-top: 10px;
    padding: 10px 12px;
    background: #fff7e6;
    border-left: 4px solid #ffa500;
    border-radius: 6px;
    color: #4f4b42;
    font-size: 13px;
    line-height: 1.45;
}

/* banner cos / checkout */
.hdp-banner {
    margin: 0 0 15px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #4f4b42;
}

.hdp-banner-pickup {
    background: #fff7e6;
    border-left: 4px solid #ffa500;
}

.hdp-banner-courier {
    background: #f3f9ec;
    border-left: 4px solid #80C243;
}

.hdp-banner a {
    color: #ffa500;
    font-weight: 600;
    text-decoration: underline;
}

/* popup anti-amestec */
#hdp-modal .hdp-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(40, 36, 28, .55);
    z-index: 99998;
}

#hdp-modal .hdp-modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(440px, calc(100vw - 32px));
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    z-index: 99999;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
    text-align: left;
}

#hdp-modal .hdp-modal-title {
    font-size: 17px;
    font-weight: 800;
    color: #4f4b42;
    margin: 0 0 10px;
}

#hdp-modal .hdp-modal-text {
    font-size: 14px;
    line-height: 1.5;
    color: #4f4b42;
    margin: 0 0 16px;
}

#hdp-modal .hdp-modal-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

#hdp-modal .hdp-btn {
    flex: 1 1 0;
    min-width: 0;
    border: 0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    white-space: normal;
    text-align: center;
}

#hdp-modal .hdp-btn-keep {
    background: #f1ece1;
    color: #4f4b42;
}

#hdp-modal .hdp-btn-switch {
    background: #ffa500;
    color: #fff;
}

/* produs exclusiv-ridicare: mesaj simplu, stilul casetei hdp-msg */
#hdp-selector.hdp-selector-exclusive {
    margin: 16px 0;
    text-align: left;
}

#hdp-selector.hdp-selector-exclusive .hdp-msg {
    margin-top: 0;
    font-weight: 400;
    color: #4f4b42;
    font-size: 13px;
    line-height: 1.5;
}

#hdp-selector.hdp-selector-exclusive .hdp-msg strong {
    font-weight: 700;
    color: #4f4b42;
}

.hdp-banner-exclusive {
    background: #fff7e6;
    border-left: 4px solid #ffa500;
    font-weight: 400;
}

.hdp-banner-exclusive strong {
    font-weight: 700;
}
