/* =========================
   Container
========================= */
.wcm-checkout-container{
  max-width:760px;
  margin:40px auto;
  padding:30px;
  background:#fff;
  border-radius:16px;
  box-shadow:0 12px 30px rgba(0,0,0,0.08);
  direction:rtl;
}

/* =========================
   Steps
========================= */
.wcm-steps.modern-steps{
  display:flex;
  justify-content:space-between;
  align-items:center;
  position:relative;
  margin-bottom:40px;
  padding:0 20px;
}

.wcm-steps.modern-steps .step{
  position:relative;
  text-align:center;
  flex:1;
}

.wcm-steps.modern-steps .step:not(:first-child)::before{
  content:"";
  position:absolute;
  top:20px;
  right:-50%;
  width:100%;
  height:3px;
  background:#d9dce3;
  z-index:1;
}

.wcm-steps.modern-steps .circle{
  width:40px;
  height:40px;
  line-height:40px;
  border-radius:50%;
  border:3px solid #d9dce3;
  background:#fff;
  color:#7b8190;
  font-weight:bold;
  margin:0 auto 8px;
  position:relative;
  z-index:3;
}

.wcm-steps.modern-steps .step.completed .circle,
.wcm-steps.modern-steps .step.active .circle{
  border-color:#1a73e8;
  background:#1a73e8;
  color:#fff;
}

.wcm-steps.modern-steps .label{
  font-size:13px;
  color:#6b7280;
}

/* =========================
   Form Layout
========================= */
.wcm-checkout-form .form-row{
  display:flex;
  gap:14px;
  margin-bottom:18px;
}

.wcm-checkout-form .form-row.single{
  flex-direction:column;
}

/* =========================
   Input Fields (اصلی)
========================= */
.wcm-checkout-form input,
.wcm-checkout-form select{
  width:100%;
  /*padding:14px 16px;*/
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#fafafa;
  font-size:14px;
  transition:all .2s ease;
  box-sizing:border-box;
}

.wcm-checkout-form input:focus,
.wcm-checkout-form select:focus{
  border-color:#1a73e8;
  background:#fff;
  box-shadow:0 0 0 3px rgba(26,115,232,0.15);
  outline:none;
}

.wcm-checkout-form input::placeholder{
  color:#94a3b8;
  font-size:13px;
}

/* =========================
   Checkbox
========================= */
.checkbox-label{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
}

.checkbox-label input{
  width:auto;
}

/* =========================
   Pricing Card
========================= */
.wcm-pricing-card{
  position:relative;
  background:linear-gradient(180deg,#ffffff 0%,#fffaf5 100%);
  border:1px solid #f1e3d3;
  border-radius:18px;
  padding:22px;
  margin:20px 0;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
}

.pricing-header{
  text-align:center;
  font-size:18px;
  font-weight:800;
  color:#00a049;
  margin-top: inherit;
  margin-bottom:18px;
}

.pricing-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.pricing-col{
  background:#fff;
  border:1px solid #edf2f7;
  border-radius:14px;
  padding:16px;
  text-align:center;
}

.pricing-col-featured{
  border:2px solid #f5003b;
  transform:scale(1.05);
  background:#fafff9;
}

.pricing-label{
  font-size:13px;
  color:#64748b;
  margin-bottom:10px;
}

.old-price{
  color:#071324;
  font-size: 26px;
  font-weight:800;
  text-decoration:line-through;
}

.new-price-highlight{
  color:#dc2626;
  font-size:30px;
  font-weight:900;
}

.discount-label{
  margin-top:8px;
  display:inline-block;
  background:linear-gradient(135deg,#ef4056,#ff1d3a);
  color:#fff;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.timer-wrapper{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:44px;
  padding:10px 14px;
  border-radius:12px;
  background:#080808;
  border:1px dashed #fff669;
  color:#fff;
}

.timer-countdown{
  font-family:monospace;
  font-size:22px;
  font-weight:800;
  direction:ltr;
}

/* حالت عادی */
.pricing-simple-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 18px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:14px;
}

.simple-label{
  font-weight:700;
  color:#475569;
}

.simple-value{
  font-size:20px;
  font-weight:800;
  color:#1e293b;
}

/* badge */
.flash-badge{
  position:absolute;
  top:-2px;
  right:18px;
  background:linear-gradient(135deg,#ef4444,#dc2626);
  color:#fff;
  font-size:12px;
  font-weight:800;
  padding:10px 16px;
  border-radius:999px;
}

/* =========================
   Gateways
========================= */
.gateway-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin-bottom:25px;
}

.gateway-option{
  position:relative;
  display:block;
  cursor:pointer;
}

.gateway-option input{
  position:absolute;
  opacity:0;
}

.gateway-content{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:52px;
  border:1.5px solid #e5e7eb;
  border-radius:12px;
  background:#fff;
  transition:.25s;
  font-weight:600;
}

.gateway-content img{
  height:34px;
}

.gateway-option input:checked ~ .gateway-content{
  border-color:#1a73e8;
  background:#eef5ff;
}

/* =========================
   Pay Button
========================= */
.pay-button{
  background:#1a73e8 !important;
  color:#fff !important;
  border:none;
  padding:15px;
  border-radius:12px !important;
  font-size:17px;
  width:100%;
  box-shadow:0 5px 18px rgba(26, 115, 232, 0.35) !important;
  cursor:pointer;
}

.pay-button:hover{
  background:#155fc3;
}

/* =========================
   Bank Card
========================= */
.card-bank-wrapper{
  position:relative;
  width:100%;
}

#bank_card{
  width:100%;
  padding-left:55px;
  direction:ltr;
  text-align:right;
}

#bank_logo_preview{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
}

#bank_logo_preview img{
  height:26px;
  max-width:45px;
}

/* =========================
   Responsive
========================= */
@media(max-width:768px){

  .wcm-checkout-container{
    margin:15px;
    padding:20px;
  }

  .form-row{
    flex-direction:column;
  }

  .gateway-grid{
    grid-template-columns:1fr;
  }

  .pricing-grid{
    grid-template-columns:1fr;
  }

  .pricing-col-featured{
    transform:none;
  }

}

/* =========================
   Floating Fields
========================= */

.floating-field{
  position:relative;
  width:100%;
}

.floating-field input,
.floating-field select{
  width:100%;
  padding:18px 14px 8px;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#fafafa;
  font-size:14px;
  transition:.2s;
}

.floating-field label{
  position:absolute;
  right:12px;
  top:14px;
  font-size:14px;
  color:#94a3b8;
  pointer-events:none;
  transition:.2s ease;
  background:#fff;
  padding:0 4px;
}

/* focus */

.floating-field input:focus,
.floating-field select:focus{
  border-color:#1a73e8;
  background:#fff;
  box-shadow:0 0 0 3px rgba(26,115,232,0.15);
  outline:none;
}

/* move label */

.floating-field input:focus + label,
.floating-field input:not(:placeholder-shown) + label{
  top:-7px;
  font-size:12px;
  color:#1a73e8;
}

.floating-field select:focus + label,
.floating-field select:not([value=""]) + label{
  top:-7px;
  font-size:12px;
  color:#1a73e8;
}

/* mobile hint */

#wcm-mobile-hint{
  display:block;
  margin-top:5px;
  color:#64748b;
}

.wcm-slots-wrapper{
    margin-top:18px;
    background:#fff;
    border-radius:18px;
    padding:18px;
    border:1px solid #eee;
}

.wcm-slots-title{
    font-size:14px;
    font-weight:700;
    margin-bottom:14px;
    color:#111;
}

.wcm-slots-track{
    display:flex;
    gap:10px;
    overflow:auto;
    padding-bottom:6px;
}

.wcm-slot-item{
    min-width:90px;
    height:70px;
    border-radius:16px;
    background:#f5f5f5;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:15px;
    color:#555;
    transition:all .25s ease;
    border:2px solid transparent;
}

.wcm-slot-item.active{
    background:linear-gradient(135deg,#ff512f,#dd2476);
    color:#fff;
    transform:scale(1.06);
    border-color:#fff;
    box-shadow:0 8px 24px rgba(221,36,118,.25);
}

.wcm-slot-item.active::after{
    content:'🔥';
    position:absolute;
    margin-top:-52px;
}

.wcm-slots-note{
    margin-top:12px;
    font-size:13px;
    color:#777;
    text-align:center;
}
