/* WooCommerce Quantity Tier Shipping — Premium RTL UI */
.woocommerce ul#shipping_method,
.woocommerce-page ul#shipping_method {
  direction: rtl;
  text-align: right;
  margin: 14px 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce ul#shipping_method li,
.woocommerce-page ul#shipping_method li {
  position: relative;
  display: flex !important;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 12px !important;
  padding: 0 !important;
  min-height: 112px;
  border: 1px solid #e7e7e7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(18, 38, 28, .055);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
  cursor: pointer;
}

.woocommerce ul#shipping_method li:hover,
.woocommerce-page ul#shipping_method li:hover {
  border-color: #9fd4b7;
  box-shadow: 0 9px 28px rgba(22, 123, 74, .10);
  transform: translateY(-1px);
}

.woocommerce ul#shipping_method li.wcqts-selected,
.woocommerce-page ul#shipping_method li.wcqts-selected {
  border: 2px solid #199557;
  background: linear-gradient(90deg, #fbfffc 0%, #f0fbf4 100%);
  box-shadow: 0 10px 30px rgba(25, 149, 87, .13);
}

.woocommerce ul#shipping_method li > input[type="radio"],
.woocommerce-page ul#shipping_method li > input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 22px;
  width: 22px !important;
  height: 22px !important;
  margin: 44px 16px 0 0 !important;
  border: 2px solid #98a09c !important;
  border-radius: 50%;
  background: #fff;
  box-shadow: none !important;
  outline: 0;
  cursor: pointer;
}

.woocommerce ul#shipping_method li > input[type="radio"]:checked,
.woocommerce-page ul#shipping_method li > input[type="radio"]:checked {
  border: 6px solid #168b51 !important;
  background: #fff;
}

.woocommerce ul#shipping_method li > label,
.woocommerce-page ul#shipping_method li > label {
  display: block !important;
  flex: 1 1 auto;
  margin: 0 !important;
  padding: 18px 10px 18px 18px !important;
  cursor: pointer;
  font-weight: 400 !important;
}

.wcqts-card-content {
  direction: rtl;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: right;
}

.wcqts-card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: #eef9f2;
  font-size: 29px;
  line-height: 1;
}

.wcqts-card-copy { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.wcqts-card-title { color: #171717; font-size: 16px; font-weight: 800; line-height: 1.7; }
.wcqts-card-desc { color: #6c7370; font-size: 13px; line-height: 1.8; }
.wcqts-card-meta { color: #8a918e; font-size: 12px; line-height: 1.7; }
.wcqts-card-price { direction: rtl; white-space: nowrap; align-self: center; padding-inline-start: 12px; }
.wcqts-price { color: #12854b; font-size: 16px; font-weight: 900; }
.wcqts-price .woocommerce-Price-currencySymbol { font-size: .78em; font-weight: 700; }
.wcqts-free { display: inline-flex; align-items: center; padding: 8px 13px; border-radius: 999px; color: #fff; background: #299b5e; font-size: 14px; }

/* Checkout summary polish */
.woocommerce-checkout-review-order,
.woocommerce-checkout #order_review {
  direction: rtl;
  text-align: right;
}

.woocommerce-checkout #payment #place_order,
.woocommerce-checkout button#place_order {
  width: 100% !important;
  min-height: 54px;
  border: 0 !important;
  border-radius: 15px !important;
  background: #258f59 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  box-shadow: 0 9px 24px rgba(37, 143, 89, .20) !important;
  transition: transform .2s ease, filter .2s ease !important;
}
.woocommerce-checkout #payment #place_order:hover,
.woocommerce-checkout button#place_order:hover { filter: brightness(.95); transform: translateY(-1px); }

@media (max-width: 640px) {
  .woocommerce ul#shipping_method li,
  .woocommerce-page ul#shipping_method li { min-height: 0; border-radius: 15px; }
  .woocommerce ul#shipping_method li > input[type="radio"],
  .woocommerce-page ul#shipping_method li > input[type="radio"] { margin: 34px 12px 0 0 !important; width: 20px !important; height: 20px !important; flex-basis: 20px; }
  .woocommerce ul#shipping_method li > label,
  .woocommerce-page ul#shipping_method li > label { padding: 14px 6px 14px 12px !important; }
  .wcqts-card-content { grid-template-columns: 46px minmax(0, 1fr); gap: 10px; }
  .wcqts-card-icon { width: 46px; height: 46px; border-radius: 12px; font-size: 24px; }
  .wcqts-card-title { font-size: 14px; }
  .wcqts-card-desc, .wcqts-card-meta { font-size: 11.5px; }
  .wcqts-card-price { grid-column: 2; justify-self: start; padding: 3px 0 0; }
  .wcqts-price { font-size: 14px; }
}
