/* =========================================================
   Sidebar Optiuni v1.1.0 – CLEAN
   Popup uses conf-popup pattern (same as Configuratii_Accesorii)
   ========================================================= */

/* =========================================================
   General sidebar typography
   ========================================================= */
.selling-feature-sidebar i {
    font-size: 20px !important;
    font-weight: 500;
}

.selling-feature-sidebar .media-heading {
    font-size: 15px;
}

.selling-feature-sidebar {
    position: relative;
}

/* =========================================================
   Chips (base)
   ========================================================= */
.attr-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8f9fb;
    border: 1px solid #dcdfe6;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition:
        background-color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease,
        transform .08s ease;
}

.attr-chip:hover {
    background: #ffffff;
    border-color: #cfd3dc;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.attr-chip:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.attr-chip:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(21,156,228,.25);
}

.attr-chip.is-loading {
    opacity: .6;
    pointer-events: none;
}

.attr-chip__text {
    display: inline-block;
}

@media (max-width: 480px) {
    .attr-plata_produs_multi .attr-chip--plata {
        width: 100%;
        justify-content: flex-start;
    }
}

/* =========================================================
   Dispozitiv medical + clasa
   ========================================================= */
.attr-dispozitiv-medical .dispozitiv-medical-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.attr-dispozitiv-medical .dm-label {
    font-weight: 600;
}

.attr-dispozitiv-medical .dm-class-badge {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #d6d9df;
    background: #f4f6f8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

/* =========================================================
   Plata (multi) – box layout
   ========================================================= */
.attr-plata_produs_multi {
    border-top: none;
    margin-top: 22px;
}

.selling-feature-sidebar .attr-plata_produs_multi::before {
    content: "";
    display: block;
    height: 1px;
    background: #e6e8ee;
    margin: 0 0 18px 0;
}

.attr-plata_produs_multi .media-body {
    padding: 0 !important;
}

.padd0 {
    padding: 0 !important;
}

.selling-feature-sidebar .list-features {
    padding: 0 15px;
}

.selling-feature-sidebar .attr-plata_produs_multi {
    border-top: 1px solid #e6e8ee;
    margin: 0 !important;
    padding: 0 !important;
}

.attr-plata_produs_multi .plata-box {
    background: #ffffff;
    padding: 15px 15px 10px;
}

.attr-plata_produs_multi .plata-box__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.attr-plata_produs_multi .plata-box__icon {
    font-size: 15px;
    line-height: 1;
    opacity: .8;
}

.attr-plata_produs_multi .plata-box__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
}

.attr-plata_produs_multi .plata-box__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.attr-plata_produs_multi .attr-chip {
    margin: 0;
}

/* =========================================================
   conf-popup: custom modal (same pattern as Configuratii_Accesorii)
   No Magento UI modal dependency – pure CSS overlay + panel
   ========================================================= */

/* Body scroll lock */
body._conf-popup-open {
    overflow: hidden;
}

/* Overlay */
.conf-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.conf-popup-overlay._visible {
    opacity: 1;
    visibility: visible;
}

/* Modal panel */
.conf-popup {
    position: fixed;
    z-index: 9001;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    max-width: 850px;
    width: calc(100% - 32px);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.conf-popup._visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Close button */
.conf-popup__close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.conf-popup__close:hover {
    background: #f0f1f3;
    color: #222;
}

/* Header (icon + title) */
.conf-popup__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e6e8ee;
}

.conf-popup__header-icon {
    font-size: 20px;
    line-height: 1;
    opacity: .8;
}

.conf-popup__name {
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    text-transform: none;
    letter-spacing: normal;
    color: #1a1a2e;
}

/* Content area (scrollable) */
.conf-popup__description {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* Loading state */
.conf-popup__description .plata-loading {
    text-align: center;
    padding: 32px 0;
    color: #888;
    font-size: 14px;
}

/* Footer */
.conf-popup__footer {
    padding: 16px 24px;
    border-top: 1px solid #e6e8ee;
    display: flex;
    justify-content: flex-end;
}

/* Button (same style as conf-popup in Accesorii) */
.conf-popup__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease, transform .08s ease;
}

.conf-popup__btn--primary {
    background: #2563eb;
    color: #fff;
}

.conf-popup__btn--primary:hover {
    background: #1d4ed8;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.conf-popup__btn--primary:active {
    transform: scale(0.98);
}

/* =========================================================
   Content helpers inside popup (tables, cards, etc.)
   ========================================================= */
.conf-popup__description h2,
.conf-popup__description h3 {
    margin: 0 0 12px;
    font-weight: 700;
}

.conf-popup__description p {
    margin: 0 0 12px;
}

.conf-popup__description .popup-card {
    background: #f8f9fb;
    border: 1px solid #d9e2ef;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 0 0 14px;
}

.conf-popup__description .popup-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 0;
}

.conf-popup__description .popup-table th,
.conf-popup__description .popup-table td {
    border-top: 1px solid #e6e8ee;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.conf-popup__description .popup-table tbody tr:nth-child(odd) {
    background: #fafbfe;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px) {
    .conf-popup {
        width: calc(100% - 16px);
        max-height: calc(100vh - 24px);
        border-radius: 12px;
    }

    .conf-popup__header {
        padding: 16px 18px 14px;
    }

    .conf-popup__description {
        padding: 16px 18px;
    }

    .conf-popup__footer {
        padding: 14px 18px;
    }
}
