#mfix-checkout-root {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.mxc-steps {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.mxc-step {
    flex: 1;
    padding: 10px;
    background: #eee;
    border-radius: 8px;
    text-align: center;
}

.mxc-step.is-active {
    background: #2563eb;
    color: #fff;
}

.mxc-panel {
    width: 70%;
    display: none;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.mxc-panel.is-active {
    display: block;
}

.mxc-panel label {
    display: block;
    margin-bottom: 12px;
}

#mxc-summary {
    margin-top: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.mxc-container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 10px;
}

.mxc-steps {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.mxc-step {
  flex: 1;
  background: #f3f4f6;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}

.mxc-step-number {
  background: #e5e7eb;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mxc-step.is-active {
  background: #2563eb;
  color: #fff;
}

.mxc-step.is-active .mxc-step-number {
  background: #1e40af;
  color: #fff;
}

.mxc-main {
  display: flex;
  gap: 20px;
}

.mxc-panels {
  flex: 1;
}

.mxc-panel {
  display: none;
}

.mxc-panel.is-active {
  display: block;
}

.mxc-card {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

.mxc-grid {
  width: 98%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: start !important; /* مهم */
  margin-bottom: 12px;
}


.mxc-select {
    width: 100%; 
    position: relative;
    display: flex; 
    flex-direction: column; 
    gap: 6px;
}

.mxc-select-box {
  width: 100%;
}


.mxc-card label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.mxc-card input {
  width: 98%;
  margin-top: 4px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.mxc-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.mxc-btn-primary {
  background: #2563eb;
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.mxc-btn-ghost {
  background: transparent;
  border: 1px solid #d1d5db;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
}

.mxc-radio {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.mxc-summary-sticky {
  width: 500px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

#mxc-summary-sticky-box h4 {
  margin-bottom: 10px;
}


/*------MOBILE------*/
/* نسخهٔ صحیح موبایل */
@media only screen and (max-width: 768px) {

  .mxc-summary-sticky {
    display: none !important;
  }

  .mxc-mobile-bar {
    display: flex !important;
  }

  .mxc-mobile-summary {
    display: block !important;
  }
}

/* نسخهٔ دسکتاپ */
@media only screen and (min-width: 769px) {

  .mxc-mobile-bar,
  .mxc-mobile-summary {
    display: none !important;
  }

  .mxc-summary-sticky {
    display: block !important;
  }
}

/* موبایل */
@media (max-width: 768px) {

  .mxc-main {
    flex-direction: column;
  }

  .mxc-summary-sticky {
    display: none;
  }

  .mxc-mobile-summary {
    margin-bottom: 80px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
  }

  .mxc-mobile-summary-toggle {
    width: 100%;
    padding: 14px;
    background: #f3f4f6;
    border: none;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mxc-mobile-summary-content {
    display: none;
    padding: 15px;
    font-size: 14px;
  }

  .mxc-mobile-summary-content.is-open {
    display: block;
  }

  /* نوار پایین */
  .mxc-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
  }

  .mxc-mobile-total span {
    font-size: 13px;
    color: #6b7280;
  }

  .mxc-mobile-total strong {
    font-size: 16px;
    color: #111827;
  }

  .mxc-mobile-btn {
    background: #2563eb;
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    font-size: 15px;
  }
}


/* انتخاب استان/شهر */
.mxc-select {
  position: relative;
  width: 100%;
}

.mxc-select-box {
    width: 100%;
    background: #fff; 
    border: 1px solid #d1d5db; 
    padding: 12px; 
    border-radius: 8px; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    
}

.mxc-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0; left: 0; 
    background: #fff; 
    border: 1px solid #d1d5db;
    border-radius: 8px; 
    max-height: 220px; 
    overflow-y: auto; 
    display: none; 
    z-index: 9999; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
} 

.mxc-select-dropdown div {
  padding: 10px;
  cursor: pointer;
}

.mxc-select-dropdown div:hover {
  background: #f3f4f6;
}

.mxc-select-dropdown.is-open {
  display: block;
}

/* روش ارسال کنار هم */
.mxc-shipping-row {
  display: flex;
  gap: 12px;
}

.mxc-radio-box {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
}

.mxc-radio-box input {
  transform: scale(1.3);
}

.mxc-radio-ui span {
  font-size: 12px;
  color: #6b7280;
}

.mxc-card-pardakht {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    gap: 10px;
    text-align: center;
    flex-direction: column;
    font-size: 14px;
}

#mxc-loader {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.mxc-loader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
}

.mxc-loader-box {
  position: relative;
  background: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  font-size: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.mxc-callback-container {
  max-width: 600px;
  margin: 60px auto;
  padding: 20px;
}

.mxc-callback-box {
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  font-size: 18px;
}

.mxc-callback-box.success {
  background: #e8fff1;
  border: 2px solid #2ecc71;
}

.mxc-callback-box.failed {
  background: #ffecec;
  border: 2px solid #e74c3c;
}


.mxc-summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.mxc-summary-item:last-child {
    border-bottom: none;
}

.mxc-product-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.mxc-summary-details {
    flex: 1;
}

.mxc-summary-details span {
    font-size: 0.9rem;
    color: #666;
}

.mxc-item-total {
    font-weight: bold;
    color: #e67e22;
}