/* =========================================================
   Sidebar Optiuni – CLEAN (consolidated)
   ========================================================= */

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

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

/* Keep separator alignment reliable */
.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;
}

/* Hover/active more pronounced */
.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);
}

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

/* Loading state (JS adds .is-loading) */
.attr-chip.is-loading{
  opacity: .6;
  pointer-events: none;
}

/* Chip inner parts */
.attr-chip__icon{
  font-size: 16px;
  line-height: 1;
}

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

/* Badge (used on payment chips) */
.attr-chip__badge{
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #dcdfe3;
  background: #ffffff;
  line-height: 1;
}

/* Badge types */
.attr-chip__badge[data-type="recomandat"]{
  border-color: #cfe3ff;
  background: #eaf3ff;
}

.attr-chip__badge[data-type="free"]{
  border-color: #d6f5d6;
  background: #e9ffe9;
}

/* Mobile: full width chips in payment box (optional) */
@media (max-width: 480px){
  .attr-plata_produs_multi .attr-chip--plata{
    width: 100%;
    justify-content: flex-start;
  }
}

/* =========================================================
   Dispozitiv medical + clasa (single line, badge only for class)
   ========================================================= */
.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 separated, header small, chips full width
   ========================================================= */

/* Remove any old border-top approach; we build separator via ::before */
.attr-plata_produs_multi{
  border-top: none;
  margin-top: 22px;
}

/* Separator aligned exactly to container width */
.selling-feature-sidebar .attr-plata_produs_multi::before{
  content: "";
  display: block;
  height: 1px;
  background: #e6e8ee;
  margin: 0 0 18px 0;
}

/* Requested: media-body padding 0 for plata section */
.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;
  padding-top: 15px !important;
}
/* Payment box */
.attr-plata_produs_multi .plata-box{
  background: #ffffff;
  border: 1px solid #e6e8ee;
  border-radius: 10px;
  padding: 12px 12px 10px;

  /* subtle elevation */
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Header row */
.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;
}

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

/* Chips container full width */
.attr-plata_produs_multi .plata-box__chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

/* In payment box, remove default margins if any */
.attr-plata_produs_multi .attr-chip{
  margin: 0;
}

/* =========================================================
   Payment Modal (Magento UI modal)
   - max width 850px
   - responsive
   - subtle fade/scale
   - title protected from theme global H1
   ========================================================= */

/* width + animation start */
.plata-modal .modal-inner-wrap{
  max-width: 850px !important;
  width: calc(100% - 32px) !important;
  margin: 16px auto !important;

  transform: scale(.97);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
  will-change: transform, opacity;
}

/* visible state */
._has-modal .plata-modal .modal-inner-wrap{
  transform: scale(1);
  opacity: 1;
}

@media (max-width: 768px){
  .plata-modal .modal-inner-wrap{
    width: calc(100% - 16px) !important;
    margin: 8px auto !important;
  }
}

/* header layout */
.plata-modal .modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e6e8ee;
}

/* Title: override global theme H1/page title rules */
.plata-modal .modal-title,
.plata-modal .modal-header h1.modal-title{
  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* Title with icon (JS injects HTML) */
.plata-modal .modal-title .plata-title{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.plata-modal .modal-title .plata-title__icon{
  font-size: 20px;
  line-height: 1;
}

.plata-modal .modal-title .plata-title__text{
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

/* close button */
.plata-modal .action-close{
  position: static !important;
  margin: 0 !important;
  padding: 6px !important;
  opacity: 1 !important;
}

.plata-modal .action-close:before{
  font-size: 28px;
  line-height: 28px;
}

/* body scroll area */
.plata-modal #plata-popup-modal .plata-popup-content{
  padding: 16px 18px;
  max-height: calc(100vh - 210px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 768px){
  .plata-modal #plata-popup-modal .plata-popup-content{
    max-height: calc(100vh - 190px);
    padding: 14px 14px;
  }
}

/* footer */
.plata-modal .modal-footer{
  padding: 12px 18px 16px;
  border-top: 1px solid #e6e8ee;
}

.plata-modal .modal-footer .plata-continue{
  width: 100%;
  max-width: 260px;
}

/* =========================================================
   Modal content helpers (framework-agnostic)
   ========================================================= */
#plata-popup-modal .plata-popup-content h2,
#plata-popup-modal .plata-popup-content h3{
  margin: 0 0 12px;
  font-weight: 700;
}

#plata-popup-modal .plata-popup-content p{
  margin: 0 0 12px;
}

/* Card look */
#plata-popup-modal .plata-popup-content .popup-card{
  background: #f8f9fb;
  border: 1px solid #d9e2ef;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 14px;
}

/* Table striped */
#plata-popup-modal .plata-popup-content .popup-table{
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 0;
}

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

#plata-popup-modal .plata-popup-content .popup-table tbody tr:nth-child(odd){
  background: #fafbfe;
}