/* Cart modal — aligned with cart.php, ~80% viewport, site bg visible */

#cartModal.mw-cart-modal {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(1180px, 80vw) !important;
  max-width: 1180px !important;
  height: min(82vh, 860px) !important;
  max-height: min(82vh, 860px) !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  transition: none !important;
  opacity: 0;
  visibility: hidden;
}

#cartModal.mw-cart-modal.active {
  transform: translate(-50%, -50%) !important;
  opacity: 1;
  visibility: visible;
}

#cartModal.mw-cart-modal > .mw-modal-bg--site::after {
  background: rgba(0, 0, 0, 0.78);
}

#cartOverlay,
#cartOverlay.active {
  transition: none !important;
}

#cartModal .search-modal-header,
#cartModal .search-modal-content {
  position: relative;
  z-index: 2;
}

#cartModal .search-modal-header {
  padding: 1.35rem 1.5rem 0.85rem;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#cartModal .search-modal-header h3 {
  margin: 0;
}

#cartModal .search-modal-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1.25rem 1.5rem 1.25rem;
}

#cartModal .cart-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 0.25rem;
}

/* Order summary stays visible while scrolling long cart lists */
#cartModal #mwCartStepItems .cart-summary-section {
  position: sticky;
  top: 0;
  z-index: 2;
  align-self: start;
}

@media (max-width: 900px) {
  #cartModal.mw-cart-modal {
    width: 92vw !important;
    max-height: min(90vh, 100dvh) !important;
  }
  #cartModal .cart-content {
    grid-template-columns: 1fr;
  }
}

#cartModal .cart-items-section,
#cartModal .cart-summary-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 !important;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

#cartModal .cart-items-section h2,
#cartModal .cart-summary-section h2 {
  text-align: center;
}

#cartModal .cart-summary-section h2,
#cartModal .cart-items-section h2 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

#cartModal .cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 15px;
  align-items: start;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 !important;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#cartModal .cart-item-image {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 0 !important;
  overflow: hidden;
}

#cartModal .cart-item-image .main-items-badge-platform {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 26px;
  height: 26px;
  pointer-events: none;
}

#cartModal .cart-item-image .main-items-badge-platform img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#cartModal .cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#cartModal .cart-item-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

#cartModal .cart-item-prices {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#cartModal .cart-item-current-price {
  color: #28a745;
  font-size: 1.1rem;
  font-weight: 600;
}

#cartModal .cart-item-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

#cartModal .remove-item-btn {
  background: rgba(255, 107, 107, 0.2);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
  width: 60px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cartModal .cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
}

#cartModal .quantity-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

#cartModal .quantity-display {
  color: #fff;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

#cartModal .cart-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#cartModal .cart-summary-label {
  color: #ccc;
}

#cartModal .cart-summary-value {
  color: #fff;
  font-weight: 600;
}

#cartModal .cart-summary-total-row {
  border-bottom: none;
  font-size: 1.2rem;
}

#cartModal .cart-summary-total-row .cart-summary-value {
  color: #0070f3;
}

#cartModal .checkout-btn {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 112, 243, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 26px rgba(0, 112, 243, 0.22);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 8px !important;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

#cartModal .checkout-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 112, 243, 0.2), rgba(0, 112, 243, 0.05) 40%, rgba(255, 255, 255, 0.06));
  pointer-events: none;
}

#cartModal .checkout-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 153, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 112, 243, 0.3);
  transform: translateY(-1px);
}

#cartModal .checkout-btn:active {
  transform: translateY(0);
}

#cartModal .continue-shopping-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 8px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mw-cart-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: rgba(255, 255, 255, 0.75);
}

.mw-cart-empty i {
  font-size: 2.5rem;
  opacity: 0.35;
  margin-bottom: 1rem;
}

.mw-cart-checkout-placeholder {
  padding: 1.5rem 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.mw-cart-checkout-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 0;
}

.mw-cart-checkout-head h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: #fff;
}

.mw-cart-checkout-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.mw-cart-checkout-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
  border-radius: 0;
}

.mw-cart-checkout-card h5 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mw-cart-checkout-card p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
}

.mw-cart-checkout-phone-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.mw-cart-checkout-phone-row .search-modal-input {
  width: 100%;
}

/* Checkout: payments (left) + summary (right); stacked on mobile */
.mw-cart-checkout-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-areas: "pay summary";
  gap: 10px;
  align-items: start;
}

.mw-cart-checkout-col {
  min-width: 0;
}

.mw-cart-checkout-col--payments {
  grid-area: pay;
}

.mw-cart-checkout-col--summary {
  grid-area: summary;
}

html[dir="rtl"] .mw-cart-checkout-split {
  grid-template-areas: "summary pay";
}

.mw-cart-checkout-pay-card,
.mw-cart-checkout-order-total {
  display: flex;
  flex-direction: column;
}

.mw-cart-checkout-pay-card {
  min-height: 100%;
}

.mw-cart-checkout-order-total {
  height: auto;
  align-self: start;
}

.mw-cart-checkout-pay-card h5,
.mw-cart-checkout-order-total h5 {
  flex-shrink: 0;
}

.mw-cart-checkout-summary-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mw-cart-payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(100px, 112px);
  gap: clamp(8px, 1.2vw, 12px);
  width: 100%;
  max-width: none;
  margin: 0;
  flex: 0 0 auto;
  align-content: start;
}

.mw-cart-payment-methods-lg {
  gap: clamp(8px, 1.2vw, 12px);
}

.mw-cart-method-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 112px;
  aspect-ratio: unset;
  padding: clamp(8px, 1.2vw, 12px);
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.8vw, 8px);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mw-cart-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.mw-cart-method-icon i {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
}

.mw-cart-method-btn .mw-cart-method-title {
  line-height: 1.15;
  font-size: clamp(0.74rem, 1.7vw, 0.94rem);
  font-weight: 700;
  max-width: 100%;
  padding: 0 4px;
  word-break: break-word;
}

.mw-cart-method-btn .mw-cart-method-sub {
  font-size: clamp(0.64rem, 1.35vw, 0.74rem);
  line-height: 1.1;
  opacity: 0.88;
  font-weight: 500;
  max-width: 100%;
  padding: 0 4px;
}

.mw-cart-method-btn:hover {
  transform: translateY(-1px);
}

.mw-cart-method-btn-instapay {
  background: rgba(146, 0, 243, 0.16);
  border-color: rgba(146, 0, 243, 0.35);
}

.mw-cart-method-btn-vodafone {
  background: rgba(255, 110, 110, 0.15);
  border-color: rgba(255, 110, 110, 0.35);
}

.mw-cart-method-btn-kashier {
  background: rgba(0, 112, 243, 0.15);
  border-color: rgba(0, 112, 243, 0.35);
}

.mw-cart-method-btn-binance {
  background: rgba(243, 227, 0, 0.15);
  border-color: rgba(243, 227, 0, 0.35);
}

.mw-cart-payment-methods.is-locked .mw-cart-pay-btn {
  opacity: 0.45;
  pointer-events: none;
}

.mw-cart-pay-btn {
  border-radius: 0 !important;
}

.mw-cart-pay-btn.active {
  outline: 2px solid rgba(0, 153, 255, 0.65);
  outline-offset: -2px;
}

.mw-cart-checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mw-cart-checkout-summary-row:last-child {
  border-bottom: none;
}

.mw-cart-checkout-order-total {
  background: rgba(0, 112, 243, 0.08);
  border-color: rgba(0, 112, 243, 0.28);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mw-cart-summary-total {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

html[dir="rtl"] .mw-cart-summary-total {
  flex-direction: row;
}

.mw-cart-summary-total-label {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
}

.mw-cart-summary-total-value {
  color: #0070f3;
  font-size: clamp(1.25rem, 2.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
}

.mw-cart-checkout-usd-row {
  border-bottom: none;
  padding-top: 0;
}

.mw-cart-checkout-usd-value {
  color: #00d9f5;
  font-weight: 600;
}

.mw-cart-checkout-security-notice {
  background: rgba(0, 112, 243, 0.1);
  border: 1px solid rgba(0, 112, 243, 0.3);
  border-radius: 0;
  padding: 8px 10px;
}

.mw-cart-checkout-security-notice h6 {
  margin: 0 0 6px;
  color: #0070f3;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mw-cart-checkout-security-notice p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  line-height: 1.45;
}

.mw-cart-checkout-refund-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
}

.mw-cart-checkout-refund-notice i {
  color: #ffcc00;
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

#cartModal.mw-cart-step-review .search-modal-content {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mw-review-stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.mw-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  width: 100%;
}

.mw-review-delivery-card-wrap,
.mw-review-actions-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.mw-review-actions-card {
  position: sticky;
  top: 0;
  z-index: 3;
  align-self: start;
}

.mw-review-actions-card .mw-cart-checkout-summary-row {
  margin-bottom: 6px;
}

.mw-review-actions-card .checkout-btn.mw-place-order-btn {
  margin-top: 10px;
}

#cartModal .checkout-btn.mw-place-order-btn {
  background: linear-gradient(135deg, #1f9d3f, #157a2f);
  border: 1px solid rgba(46, 204, 113, 0.55);
  box-shadow: 0 8px 22px rgba(31, 157, 63, 0.35);
}

#cartModal .checkout-btn.mw-place-order-btn::before {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 45%, transparent);
}

#cartModal .checkout-btn.mw-place-order-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #24b349, #1a8c37);
  border-color: rgba(88, 214, 141, 0.7);
  box-shadow: 0 10px 28px rgba(36, 179, 73, 0.42);
}

#cartModal .checkout-btn.mw-place-order-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.25);
}

#mwReviewDeliveryItems {
  display: grid;
  gap: 6px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.mw-review-delivery-empty {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.45;
}

.mw-review-delivery-card-wrap h5,
.mw-review-actions-card h5 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.mw-review-delivery-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 8px;
  border-radius: 0;
}

.mw-review-delivery-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.mw-review-delivery-body {
  flex: 1;
  min-width: 0;
}

.mw-review-delivery-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 1px;
}

.mw-review-product-name {
  margin: 0;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mw-review-copy-label {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  font-weight: 600;
}

.mw-review-region-help {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 204, 102, 0.95);
  border-radius: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  line-height: 1;
}

.mw-review-region-help:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mw-review-delivery-image {
  width: 58px;
  height: 58px;
  position: relative;
  flex-shrink: 0;
  border-radius: 0;
  overflow: hidden;
}

.mw-review-delivery-image > img:not([class*="badge"]) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.mw-review-delivery-image .main-items-badge-platform {
  position: absolute;
  top: 2px;
  right: 2px;
  left: auto;
  z-index: 2;
  width: 18px;
  height: 18px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  pointer-events: none;
}

.mw-review-delivery-image .main-items-badge-platform img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
}

.mw-review-inputs {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.mw-review-copy-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 1px;
}

.mw-review-inputs-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 4px;
  width: auto;
  min-width: 0;
  flex: 1;
}

.mw-review-inputs-row--single {
  max-width: 50%;
}

.mw-review-credentials-host:not([hidden]) {
  display: block;
  width: 100%;
}

.mw-review-credentials-host:not([hidden]) .mw-review-inputs-row {
  width: 100%;
}

.mw-review-input-wrap {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.mw-review-input-wrap--user,
.mw-review-input-wrap--pass,
.mw-review-input-wrap--email {
  flex: 1 1 0;
  max-width: none;
}

.mw-review-input-affix {
  position: absolute;
  top: 50%;
  inset-inline-start: 6px;
  transform: translateY(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.12s ease;
}

.mw-review-input-affix .cart-region-flag {
  width: 13px;
  height: 13px;
}

.mw-review-input-wrap.is-filled .mw-review-input-affix,
.mw-review-input-wrap.is-focused .mw-review-input-affix {
  opacity: 0;
  visibility: hidden;
}

.mw-review-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 0;
  line-height: 1.2;
}

.mw-review-input.has-affix {
  padding-inline-start: 22px;
}

.mw-review-input--xs {
  height: 28px;
  padding: 4px 7px;
  font-size: 0.7rem;
}

.mw-review-input--sm {
  height: 30px;
  padding: 4px 7px;
  font-size: 0.72rem;
}

.mw-review-input--md {
  height: 30px;
  padding: 4px 8px;
  font-size: 0.73rem;
}

.mw-review-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.mw-review-copy-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.mw-review-copy-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.72rem;
}

.mw-review-platform-flow {
  flex: 1;
  min-width: 0;
}

.mw-review-platform-btns {
  display: flex;
  align-items: stretch;
  gap: 5px;
  width: 100%;
}

.mw-review-platform-picker.is-hidden {
  display: none !important;
}

.mw-review-platform-credentials.is-hidden {
  display: none !important;
}

.mw-review-platform-btn {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  border-radius: 0;
  min-height: 38px;
}

.mw-review-platform-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.mw-review-platform-btn--steam {
  background: rgba(0, 112, 243, 0.14);
  border-color: rgba(0, 112, 243, 0.38);
}

.mw-review-platform-btn--epic {
  background: rgba(0, 112, 243, 0.1);
  border-color: rgba(80, 140, 255, 0.35);
}

.mw-review-platform-btn--rockstar {
  background: rgba(255, 140, 0, 0.14);
  border-color: rgba(255, 140, 0, 0.4);
  color: #ffd9a6;
}

.mw-review-platform-btn:hover {
  filter: brightness(1.08);
}

.mw-review-platform-credentials:not(.is-hidden) {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.mw-review-platform-back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.66rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  white-space: nowrap;
}

html[dir="rtl"] .mw-review-platform-back i {
  transform: scaleX(-1);
}

.mw-review-platform-credentials .mw-review-credentials-host {
  flex: 1;
  min-width: 0;
}

.mw-review-platform-credentials .mw-review-inputs-row {
  width: 100%;
}

.mw-review-email-notice {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0, 112, 243, 0.14);
  border: 1px solid rgba(0, 112, 243, 0.42);
  color: rgba(200, 225, 255, 0.98);
  font-size: 0.68rem;
  line-height: 1.45;
  font-weight: 500;
  border-radius: 0;
  text-align: start;
  unicode-bidi: plaintext;
}

.mw-review-email-notice i {
  flex-shrink: 0;
  margin-top: 1px;
  color: #66b3ff;
}

/* Payment method details — aligned with checkout.php */
.mw-cart-payment-detail-host {
  margin-top: 4px;
}

.mw-pay-change-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.86rem;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s ease;
}

.mw-pay-change-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

html[dir="rtl"] .mw-pay-change-btn i {
  transform: scaleX(-1);
}

.mw-pay-section-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mw-pay-icon-instapay { color: #9200f3; }
.mw-pay-icon-vodafone { color: #ff6e6e; }
.mw-pay-icon-kashier { color: #0070f3; }
.mw-pay-icon-binance { color: #f3e300; }

.mw-pay-panel-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px;
  border-radius: 0;
}

/* Payment detail panels — tint matches selected method (lighter than method buttons) */
#mwPayInstapay.mw-cart-payment-detail {
  background: rgba(146, 0, 243, 0.09);
  border: 1px solid rgba(146, 0, 243, 0.28);
  padding: 12px;
  box-sizing: border-box;
}

#mwPayInstapay .mw-pay-panel-box {
  background: rgba(146, 0, 243, 0.14);
  border-color: rgba(146, 0, 243, 0.32);
}

#mwPayInstapay .mw-pay-section-title {
  color: #e8c8ff;
}

#mwPayVodafone.mw-cart-payment-detail {
  background: rgba(255, 110, 110, 0.09);
  border: 1px solid rgba(255, 110, 110, 0.3);
  padding: 12px;
  box-sizing: border-box;
}

#mwPayVodafone .mw-pay-panel-box {
  background: rgba(255, 110, 110, 0.14);
  border-color: rgba(255, 110, 110, 0.34);
}

#mwPayVodafone .mw-pay-section-title {
  color: #ffd4d4;
}

#mwPayVodafone .mw-pay-footnote {
  color: rgba(255, 220, 220, 0.78);
}

#mwPayBinance.mw-cart-payment-detail {
  background: rgba(243, 227, 0, 0.1);
  border: 1px solid rgba(243, 227, 0, 0.38);
  padding: 12px;
  box-sizing: border-box;
}

#mwPayBinance .mw-pay-panel-box {
  background: rgba(243, 227, 0, 0.16);
  border-color: rgba(243, 227, 0, 0.42);
}

#mwPayBinance .mw-pay-section-title {
  color: #fff6b3;
}

#mwPayBinance .mw-pay-label,
#mwPayBinance .mw-pay-account-row,
#mwPayBinance .mw-pay-binance-uid {
  color: rgba(255, 255, 255, 0.92);
}

/* Kashier / Visa — neutral (iframe only, no brand tint on wrapper) */
#mwPayKashier.mw-cart-payment-detail {
  padding: 0;
  background: transparent;
  border: none;
}

#mwPayKashier .mw-pay-section-title {
  margin-bottom: 8px;
}

#mwPayKashier .mw-kashier-embed-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mw-pay-method-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.mw-pay-qr-side {
  min-width: 170px;
}

.mw-pay-info-side {
  min-width: 0;
}

.mw-pay-label {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.9);
}

.mw-pay-muted {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #9aa4b2;
}

.mw-pay-footnote {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: #9aa4b2;
  line-height: 1.45;
}

.mw-pay-link-wrap {
  margin: 12px 0 0;
}

.mw-pay-link-block {
  display: block;
  width: 100%;
  text-align: center;
}

.mw-pay-link-instapay {
  background-color: #690570 !important;
  border-color: #690570 !important;
}

.mw-pay-link-vodafone {
  background-color: #e60000 !important;
  border-color: #e60000 !important;
}

.mw-pay-link-kashier {
  background-color: #0070f3 !important;
  border-color: #0070f3 !important;
}

.mw-kashier-embed-box {
  padding: 0;
  overflow: hidden;
}

.mw-kashier-iframe {
  width: 100%;
  height: 440px;
  border: 0;
  display: block;
  background: rgba(8, 10, 14, 0.45);
}

.mw-pay-binance-uid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.mw-pay-account-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.mw-pay-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 4px;
}

.mw-binance-instruction {
  margin-top: 12px;
}

.mw-binance-send {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1c40f;
  margin-bottom: 6px;
}

.mw-binance-hint {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
}

.mw-binance-calc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}

.mw-binance-live-rate {
  font-size: 0.82rem;
  color: #00d9f5;
  font-weight: 600;
  padding: 8px;
  background: rgba(0, 217, 245, 0.1);
  border: 1px solid rgba(0, 217, 245, 0.3);
  border-radius: 0;
}

.mw-binance-default-rate {
  font-size: 0.82rem;
  color: #9aa4b2;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0;
}

.mw-binance-loading {
  font-size: 0.78rem;
  color: #00d9f5;
  margin-top: 6px;
}

.mw-cart-payment-detail {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
  line-height: 1.6;
}

.mw-pay-qr {
  display: block;
  width: 150px;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin: 8px 0;
  border-radius: 0;
}

.mw-pay-qr-clickable {
  cursor: zoom-in;
}

.mw-pay-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  margin-top: 6px;
  color: #fff !important;
  background: rgba(0, 112, 243, 0.72);
  border: 1px solid rgba(0, 112, 243, 0.45);
  text-decoration: none !important;
  border-radius: 0 !important;
  font-weight: 600;
}

.mw-cart-clear-btn {
  border-color: rgba(255, 107, 107, 0.35) !important;
  background: rgba(255, 107, 107, 0.12) !important;
}

.mw-cart-clear-btn:hover {
  background: rgba(255, 107, 107, 0.2) !important;
}

.mw-cart-checkout-order-total #mwCartBackToItems {
  margin-top: 6px;
}

.mw-pay-qr-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 15000;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.mw-pay-qr-preview-overlay img {
  max-width: min(90vw, 520px);
  max-height: 86vh;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.mw-pay-qr-preview-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 10, 14, 0.8);
  color: #fff;
  cursor: pointer;
}

.mw-cart-inline-paid-action {
  margin-top: 12px;
}

.mw-cart-payment-detail a {
  color: #66c6ff;
  text-decoration: none;
  word-break: break-all;
}

.mw-cart-payment-detail a:hover {
  color: #8ad8ff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .mw-cart-checkout-split {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "pay";
    gap: 12px;
  }

  html[dir="rtl"] .mw-cart-checkout-split {
    grid-template-areas:
      "summary"
      "pay";
  }

  .mw-cart-checkout-pay-card,
  .mw-cart-checkout-order-total {
    height: auto;
  }

  .mw-pay-method-layout {
    grid-template-columns: 1fr;
  }

  .mw-pay-qr-side {
    min-width: 0;
  }

  .mw-review-grid {
    grid-template-columns: 1fr;
  }

  .mw-review-actions-card {
    position: sticky;
    top: 0;
  }

  .mw-review-copy-row {
    flex-wrap: wrap;
  }

  .mw-review-copy-sep {
    display: none;
  }

  .mw-review-inputs {
    width: 100%;
    flex-basis: 100%;
  }

  .mw-review-input-wrap--user,
  .mw-review-input-wrap--pass,
  .mw-review-input-wrap--email {
    flex: 1 1 0;
    max-width: none;
  }

  .mw-review-inputs-row--single {
    max-width: 100%;
  }

  .mw-kashier-iframe {
    height: 380px;
  }
}

/* Phone required modal — cart.php reference */
.mw-phone-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.mw-phone-modal.show {
  opacity: 1;
  visibility: visible;
}

.mw-phone-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.mw-phone-modal-content {
  position: relative;
  width: min(500px, 92vw);
  max-height: 88vh;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  transform: scale(0.96);
  transition: transform 0.28s ease;
}

@media (max-width: 768px) {
  .mw-phone-modal-content {
    width: 95vw;
    max-height: 95dvh;
  }
}

.mw-phone-modal-content > .mw-modal-bg--site {
  border-radius: 0;
}

.mw-phone-modal-header,
.mw-phone-modal-body,
.mw-phone-modal-footer {
  position: relative;
  z-index: 2;
}

.mw-phone-modal-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.mw-phone-modal.show .mw-phone-modal-content {
  transform: scale(1);
}

.mw-phone-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mw-phone-modal-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mw-phone-modal-header h3 .fab.fa-whatsapp {
  color: #25d366;
}

.mw-phone-modal-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border-radius: 0;
}

.mw-phone-modal-body {
  padding: 16px 18px;
}

.mw-phone-whatsapp-notice {
  text-align: center;
  padding: 14px;
  margin-bottom: 14px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.22);
  border-radius: 0;
}

.mw-phone-whatsapp-notice .fab.fa-whatsapp {
  color: #25d366;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.mw-phone-whatsapp-notice p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  font-size: 0.9rem;
}

.mw-phone-other-country {
  background: rgba(255, 193, 7, 0.1);
  border-left: 3px solid #ffc107;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 0;
}

html[dir="rtl"] .mw-phone-other-country {
  border-left: none;
  border-right: 3px solid #ffc107;
}

.mw-phone-other-country p {
  margin: 0;
  color: #ffc107;
  font-size: 0.86rem;
}

.mw-phone-form-group {
  margin-bottom: 14px;
}

.mw-phone-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
}

.mw-phone-select,
.mw-phone-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  background: rgba(8, 10, 14, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 0;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mw-phone-select:focus,
.mw-phone-input:focus {
  outline: none;
  border-color: rgba(72, 220, 120, 0.45);
}

.mw-phone-select option {
  background: rgba(8, 10, 14, 0.72);
  color: #fff;
}

.mw-phone-select option:hover {
  background: rgba(72, 220, 120, 0.16);
  color: #fff;
}

.mw-phone-modal-footer {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mw-phone-save-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(72, 220, 120, 0.42);
  background: rgba(40, 167, 69, 0.14);
  color: rgba(200, 255, 215, 0.98);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mw-phone-save-btn:hover:not(:disabled) {
  background: rgba(40, 167, 69, 0.22);
  border-color: rgba(72, 220, 120, 0.55);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.mw-phone-save-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Cart modal body spinner (blocks repeat clicks during place order) */
.mw-cart-modal-body-wrap {
  position: relative;
}

.mw-cart-modal-spinner {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mw-cart-modal-spinner-inner {
  text-align: center;
  color: #fff;
  padding: 24px;
}

.mw-cart-modal-spinner-ring {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border: 3px solid rgba(96, 165, 250, 0.25);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: mw-cart-spin 0.9s linear infinite;
}

.mw-cart-modal-spinner-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  animation: mw-cart-pulse 1.4s ease-in-out infinite;
}

@keyframes mw-cart-spin {
  to { transform: rotate(360deg); }
}

@keyframes mw-cart-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* In-cart place-order confirm (above cart content, below header) */
.mw-cart-inner-confirm {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mw-cart-inner-confirm-dialog {
  position: relative;
  width: min(560px, 96%);
  max-width: 560px;
  padding: 24px 22px 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mw-cart-inner-confirm-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mw-cart-inner-confirm-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.mw-cart-inner-confirm-title {
  margin: 0 36px 10px 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #f8fafc;
  text-align: center;
}

.mw-cart-inner-confirm-intro {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.45;
}

.mw-cart-inner-confirm-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.mw-cart-inner-confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.mw-cart-inner-confirm-check span {
  flex: 1;
  min-width: 0;
}

.mw-cart-inner-confirm-check input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #00cc6a;
}

.mw-cart-inner-confirm-submit {
  width: 100%;
  margin-top: 4px;
}

.mw-cart-inner-confirm-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Full-page spinner (checkout / place order) */
.mw-page-spinner {
  position: fixed;
  inset: 0;
  z-index: 25000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mw-page-spinner-panel {
  text-align: center;
  color: #fff;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  max-width: min(92vw, 360px);
}

.mw-page-spinner-ring {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border: 3px solid rgba(96, 165, 250, 0.25);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: mw-cart-spin 0.9s linear infinite;
}

.mw-page-spinner-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

body.mw-page-spinner-active {
  overflow: hidden;
  cursor: wait;
  touch-action: none;
}

body.mw-page-spinner-active .header,
body.mw-page-spinner-active .categories-section,
body.mw-page-spinner-active .products-section,
body.mw-page-spinner-active .floating-buttons,
body.mw-page-spinner-active .category-card,
body.mw-page-spinner-active .main-items-card {
  pointer-events: none;
}

.mw-page-spinner {
  cursor: wait;
}

.mw-cart-step-invoice #mwCartStepCheckout {
  display: block !important;
}

.mw-invoice-stage .invoice-container {
  max-height: min(52vh, 480px);
  overflow-y: auto;
}

.mw-invoice-actions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mw-invoice-payment-notice {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(203, 213, 225, 0.92);
  line-height: 1.5;
}
