/*
 * Poostina staged cart + checkout
 * The font files are not bundled; the site must already expose peyda-reg and peyda-bold.
 */

:root {
  --ps-flow-pink: #f43d78;
  --ps-flow-pink-2: #ff6b93;
  --ps-flow-purple: #8453ff;
  --ps-flow-mint: #17b77d;
  --ps-flow-text: #2d3440;
  --ps-flow-muted: #8d8798;
  --ps-flow-border: #ece9f2;
  --ps-flow-panel: #ffffff;
  --ps-flow-page: #fbfbfd;
  --ps-flow-soft-pink: #fff1f6;
  --ps-flow-soft-purple: #f5f1ff;
  --ps-flow-soft-mint: #ecfbf5;
  --ps-flow-radius: 24px;
  --ps-flow-shadow: 0 18px 55px rgba(50, 44, 72, 0.07);
}

body.poostina-flow-cart-page,
body.poostina-flow-checkout-page,
body.poostina-flow-complete-page,
.poostina-commerce-widget {
  background: var(--ps-flow-page) !important;
  color: var(--ps-flow-text);
  font-family: "peyda-reg", Tahoma, Arial, sans-serif !important;
}

body.poostina-flow-cart-page *,
body.poostina-flow-checkout-page *,
body.poostina-flow-complete-page *,
.poostina-commerce-widget * {
  box-sizing: border-box;
}

body.poostina-flow-cart-page h1,
body.poostina-flow-cart-page h2,
body.poostina-flow-cart-page h3,
body.poostina-flow-cart-page h4,
body.poostina-flow-cart-page strong,
body.poostina-flow-cart-page b,
body.poostina-flow-checkout-page h1,
body.poostina-flow-checkout-page h2,
body.poostina-flow-checkout-page h3,
body.poostina-flow-checkout-page h4,
body.poostina-flow-checkout-page strong,
body.poostina-flow-checkout-page b,
body.poostina-flow-complete-page h1,
body.poostina-flow-complete-page h2,
body.poostina-flow-complete-page h3,
body.poostina-flow-complete-page h4,
body.poostina-flow-complete-page strong,
body.poostina-flow-complete-page b,
.poostina-commerce-widget h1,
.poostina-commerce-widget h2,
.poostina-commerce-widget h3,
.poostina-commerce-widget h4,
.poostina-commerce-widget strong,
.poostina-commerce-widget b {
  font-family: "peyda-bold", "peyda-reg", Tahoma, Arial, sans-serif !important;
}

/* Shared width and notices */
body.poostina-flow-cart-page .site-main,
body.poostina-flow-checkout-page .site-main,
body.poostina-flow-complete-page .site-main,
.poostina-commerce-widget {
  width: min(100% - 32px, 1240px);
  margin-inline: auto;
}

body.poostina-flow-cart-page .woocommerce,
body.poostina-flow-checkout-page .woocommerce,
body.poostina-flow-complete-page .woocommerce,
.poostina-commerce-widget .woocommerce {
  direction: rtl;
  text-align: right;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  border: 1px solid var(--ps-flow-border) !important;
  border-top: 0 !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: var(--ps-flow-text) !important;
  box-shadow: 0 10px 30px rgba(50, 44, 72, 0.05) !important;
  padding: 14px 48px 14px 16px !important;
  font-family: "peyda-reg", Tahoma, Arial, sans-serif !important;
}

.woocommerce-message::before { color: var(--ps-flow-mint) !important; }
.woocommerce-info::before { color: var(--ps-flow-purple) !important; }
.woocommerce-error::before { color: var(--ps-flow-pink) !important; }

/* Top stepper */
.poostina-commerce-flow {
  width: 100%;
  margin: 18px 0 28px;
}

.poostina-commerce-stepper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--ps-flow-border);
  border-radius: var(--ps-flow-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--ps-flow-shadow);
}

.poostina-commerce-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-width: 0;
  color: var(--ps-flow-muted);
}

.poostina-commerce-step__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid var(--ps-flow-border);
  border-radius: 16px;
  background: #f8f7fa;
  color: #a6a0b2;
  transition: .25s ease;
}

.poostina-commerce-step__icon svg,
.poostina-cart-trust-item__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.poostina-commerce-step__check {
  display: none;
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1;
}

.poostina-commerce-step__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.poostina-commerce-step__content small {
  color: inherit;
  font-size: 11px;
}

.poostina-commerce-step__content strong {
  color: inherit;
  font-size: 14px;
  white-space: nowrap;
}

.poostina-commerce-step.is-active { color: var(--ps-flow-pink); }
.poostina-commerce-step.is-active .poostina-commerce-step__icon {
  border-color: transparent;
  background: linear-gradient(135deg, var(--ps-flow-pink), var(--ps-flow-pink-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(244, 61, 120, .22);
}

.poostina-commerce-step.is-complete { color: var(--ps-flow-mint); }
.poostina-commerce-step.is-complete .poostina-commerce-step__icon {
  border-color: rgba(23, 183, 125, .22);
  background: var(--ps-flow-soft-mint);
  color: var(--ps-flow-mint);
}
.poostina-commerce-step.is-complete .poostina-commerce-step__icon svg { display: none; }
.poostina-commerce-step.is-complete .poostina-commerce-step__check { display: block; }

.poostina-commerce-stepper__line {
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--ps-flow-border), #f1edf7);
}

/* Cart layout */
body.poostina-flow-cart-page .woocommerce:not(.widget_shopping_cart),
.poostina-commerce-widget--cart .woocommerce {
  position: relative;
}

body.poostina-flow-cart-page .woocommerce-cart-form,
.poostina-commerce-widget--cart .woocommerce-cart-form {
  float: right;
  width: calc(68% - 12px);
  margin: 0;
  padding: 20px;
  border: 1px solid var(--ps-flow-border);
  border-radius: var(--ps-flow-radius);
  background: var(--ps-flow-panel);
  box-shadow: var(--ps-flow-shadow);
}

body.poostina-flow-cart-page .cart-collaterals,
.poostina-commerce-widget--cart .cart-collaterals {
  float: left;
  width: calc(32% - 12px);
  margin: 0;
}

body.poostina-flow-cart-page .cart-collaterals .cart_totals,
.poostina-commerce-widget--cart .cart-collaterals .cart_totals {
  float: none;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--ps-flow-border);
  border-radius: var(--ps-flow-radius);
  background: var(--ps-flow-panel);
  box-shadow: var(--ps-flow-shadow);
  position: sticky;
  top: 24px;
}

body.poostina-flow-cart-page .cart-collaterals::after,
.poostina-commerce-widget--cart .cart-collaterals::after,
body.poostina-flow-cart-page .woocommerce::after,
.poostina-commerce-widget--cart .woocommerce::after {
  display: table;
  clear: both;
  content: "";
}

.woocommerce-cart-form table.shop_table,
.cart_totals table.shop_table {
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 0 !important;
}

.woocommerce-cart-form table.shop_table thead {
  background: #faf9fc;
}

.woocommerce-cart-form table.shop_table thead th {
  border: 0 !important;
  color: var(--ps-flow-muted);
  font-family: "peyda-bold", "peyda-reg", sans-serif !important;
  font-size: 12px;
  padding: 12px 10px !important;
}

.woocommerce-cart-form table.shop_table tbody tr.woocommerce-cart-form__cart-item {
  position: relative;
}

.woocommerce-cart-form table.shop_table td {
  border-top: 1px solid #f2eff6 !important;
  padding: 16px 10px !important;
  vertical-align: middle !important;
}

.woocommerce-cart-form .product-thumbnail { width: 92px; }
.woocommerce-cart-form .product-thumbnail img {
  width: 76px !important;
  height: 76px !important;
  object-fit: contain;
  padding: 7px;
  border: 1px solid #f0edf5;
  border-radius: 18px;
  background: #fff;
}

.woocommerce-cart-form .product-name a {
  display: inline-block;
  color: var(--ps-flow-text) !important;
  font-family: "peyda-bold", "peyda-reg", sans-serif !important;
  font-size: 14px;
  line-height: 1.8;
  text-decoration: none !important;
}

.woocommerce-cart-form .product-name .variation {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin: 7px 0 0;
  color: var(--ps-flow-muted);
  font-size: 11px;
}
.woocommerce-cart-form .product-name .variation dt,
.woocommerce-cart-form .product-name .variation dd { float: none; margin: 0; }
.woocommerce-cart-form .product-name .variation p { margin: 0; }

.woocommerce-cart-form .product-price,
.woocommerce-cart-form .product-subtotal {
  color: var(--ps-flow-text);
  font-family: "peyda-bold", "peyda-reg", sans-serif !important;
  font-size: 13px;
}

.poostina-cart-line-subtotal,
.poostina-cart-line-saving { display: block; }
.poostina-cart-line-saving {
  margin-top: 5px;
  color: var(--ps-flow-mint);
  font-family: "peyda-reg", sans-serif !important;
  font-size: 11px;
  white-space: nowrap;
}

.woocommerce-cart-form .product-remove a.remove {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #ffd4e1;
  border-radius: 50%;
  background: #fff7fa;
  color: var(--ps-flow-pink) !important;
  font-size: 18px;
  line-height: 1;
  transition: .2s ease;
}
.woocommerce-cart-form .product-remove a.remove:hover {
  background: var(--ps-flow-pink) !important;
  color: #fff !important;
}

/* Quantity */
.poostina-flow-quantity {
  display: inline-grid;
  grid-template-columns: 34px 42px 34px;
  align-items: center;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid #e9e4f1;
  border-radius: 14px;
  background: #fff;
}
.poostina-flow-quantity button {
  width: 34px;
  height: 40px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ps-flow-pink) !important;
  font-family: Arial, sans-serif !important;
  font-size: 18px !important;
  box-shadow: none !important;
  cursor: pointer;
}
.poostina-flow-quantity button:hover { background: var(--ps-flow-soft-pink) !important; }
.poostina-flow-quantity .quantity { margin: 0 !important; }
.poostina-flow-quantity input.qty {
  width: 42px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-inline: 1px solid #f1edf5 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--ps-flow-text) !important;
  font-family: "peyda-bold", "peyda-reg", sans-serif !important;
  text-align: center !important;
  box-shadow: none !important;
  appearance: textfield;
}
.poostina-flow-quantity input.qty::-webkit-inner-spin-button,
.poostina-flow-quantity input.qty::-webkit-outer-spin-button { appearance: none; margin: 0; }

.woocommerce-cart-form td.actions {
  padding: 18px 0 0 !important;
  border-top: 1px solid #f2eff6 !important;
}
.woocommerce-cart-form td.actions .coupon {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.woocommerce-cart-form td.actions .coupon label { display: none; }
.woocommerce-cart-form td.actions .coupon input.input-text {
  width: 220px !important;
  min-height: 46px;
  padding: 0 14px !important;
  border: 1px solid var(--ps-flow-border) !important;
  border-radius: 14px !important;
  background: #faf9fc !important;
  font-family: "peyda-reg", sans-serif !important;
  box-shadow: none !important;
}

.woocommerce-cart-form td.actions button,
.woocommerce-cart-form td.actions .button,
.cart_totals .wc-proceed-to-checkout .checkout-button,
.checkout_coupon .button,
.woocommerce-checkout button.button,
.woocommerce-checkout input.button,
.woocommerce #payment #place_order {
  min-height: 46px;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--ps-flow-pink), var(--ps-flow-pink-2)) !important;
  color: #fff !important;
  font-family: "peyda-bold", "peyda-reg", sans-serif !important;
  font-size: 13px !important;
  line-height: 46px !important;
  box-shadow: 0 10px 25px rgba(244, 61, 120, .18) !important;
  text-decoration: none !important;
  transition: .2s ease !important;
}
.woocommerce-cart-form td.actions button:hover,
.woocommerce-cart-form td.actions .button:hover,
.cart_totals .wc-proceed-to-checkout .checkout-button:hover,
.checkout_coupon .button:hover,
.woocommerce-checkout button.button:hover,
.woocommerce #payment #place_order:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(244, 61, 120, .25) !important;
}
.woocommerce-cart-form td.actions button[name="update_cart"] {
  float: left;
  background: var(--ps-flow-soft-purple) !important;
  color: var(--ps-flow-purple) !important;
  box-shadow: none !important;
}

/* Cart totals */
.cart_totals h2,
.woocommerce-checkout #order_review_heading {
  margin: 0 0 15px !important;
  color: var(--ps-flow-text) !important;
  font-family: "peyda-bold", "peyda-reg", sans-serif !important;
  font-size: 18px !important;
}
.cart_totals table.shop_table th,
.cart_totals table.shop_table td,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 13px 4px !important;
  border-top: 1px solid #f1edf5 !important;
  color: var(--ps-flow-text);
  font-size: 12px;
}
.cart_totals table.shop_table th,
.woocommerce-checkout-review-order-table th { color: var(--ps-flow-muted); }
.cart_totals .order-total th,
.cart_totals .order-total td,
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
  color: var(--ps-flow-text) !important;
  font-size: 15px !important;
}
.cart_totals .order-total strong,
.woocommerce-checkout-review-order-table .order-total strong { color: var(--ps-flow-pink); }
.poostina-cart-savings-row th,
.poostina-cart-savings-row td,
.poostina-cart-savings-row strong { color: var(--ps-flow-mint) !important; }
.cart_totals .wc-proceed-to-checkout { padding: 16px 0 0 !important; }
.cart_totals .wc-proceed-to-checkout .checkout-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 !important;
  min-height: 52px;
  line-height: 52px !important;
}

.poostina-cart-trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 14px;
}
.poostina-cart-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #f0edf5;
  border-radius: 14px;
  background: #faf9fc;
}
.poostina-cart-trust-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 13px;
  background: var(--ps-flow-soft-pink);
  color: var(--ps-flow-pink);
}
.poostina-cart-trust-item span:last-child { display: flex; flex-direction: column; gap: 2px; }
.poostina-cart-trust-item strong { color: var(--ps-flow-text); font-size: 12px; }
.poostina-cart-trust-item small { color: var(--ps-flow-muted); font-size: 10px; }

.poostina-cart-is-updating .woocommerce-cart-form,
.poostina-cart-is-updating .cart_totals { pointer-events: none; }

/* Empty cart */
.woocommerce-cart .cart-empty,
.woocommerce-cart .return-to-shop {
  text-align: center;
}
.woocommerce-cart .cart-empty {
  margin-top: 30px !important;
  padding: 50px 20px !important;
  border: 1px solid var(--ps-flow-border) !important;
  border-radius: var(--ps-flow-radius) !important;
  background: #fff !important;
  font-size: 16px;
}

/* Checkout: فرم استاندارد ووکامرس با چیدمان تک‌مرحله‌ای */
body.poostina-flow-checkout-page form.checkout.woocommerce-checkout,
.poostina-commerce-widget--checkout form.checkout.woocommerce-checkout {
  display: block !important;
  width: 100%;
  margin: 0;
}

/* فرم تسویه‌حساب در نسخه 0.14.7 تک‌مرحله‌ای است. */

.woocommerce-checkout .col2-set,
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  float: none !important;
  width: 100% !important;
}
.woocommerce-checkout .col2-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  padding: 18px;
  border: 1px solid #f0edf5;
  border-radius: 18px;
  background: #fdfcff;
}

.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .woocommerce-shipping-fields > h3,
.woocommerce-checkout .woocommerce-additional-fields > h3 {
  margin: 0 0 15px;
  color: var(--ps-flow-text);
  font-family: "peyda-bold", "peyda-reg", sans-serif !important;
  font-size: 15px;
}

.woocommerce form .form-row {
  margin: 0 0 13px !important;
  padding: 0 !important;
}
.woocommerce form .form-row label {
  display: block;
  margin-bottom: 6px;
  color: #5e586a;
  font-family: "peyda-bold", "peyda-reg", sans-serif !important;
  font-size: 11px;
}
.woocommerce form .form-row .required { color: var(--ps-flow-pink); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
  width: 100% !important;
  min-height: 46px !important;
  padding: 0 13px !important;
  border: 1px solid var(--ps-flow-border) !important;
  border-radius: 13px !important;
  background: #fff !important;
  color: var(--ps-flow-text) !important;
  font-family: "peyda-reg", Tahoma, Arial, sans-serif !important;
  font-size: 12px !important;
  outline: none !important;
  box-shadow: none !important;
  transition: .2s ease !important;
}
.woocommerce form .form-row textarea { min-height: 100px !important; padding-top: 12px !important; resize: vertical; }
.select2-container--default .select2-selection--single { display: flex !important; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0 !important; color: var(--ps-flow-text) !important; }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 10px !important; left: 9px !important; right: auto !important; }
.woocommerce form .form-row input:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.select2-container--open .select2-selection--single {
  border-color: rgba(132, 83, 255, .55) !important;
  box-shadow: 0 0 0 3px rgba(132, 83, 255, .08) !important;
}
.woocommerce form .form-row.woocommerce-invalid input,
.woocommerce form .form-row.woocommerce-invalid select,
.woocommerce form .form-row.woocommerce-invalid textarea {
  border-color: var(--ps-flow-pink) !important;
  box-shadow: 0 0 0 3px rgba(244, 61, 120, .08) !important;
}

.poostina-checkout-review-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}
.poostina-checkout-review-wrap .woocommerce-checkout-review-order-table {
  margin: 0 !important;
  padding: 6px 14px;
  border: 1px solid #f0edf5 !important;
  border-radius: 18px !important;
  background: #fdfcff;
}
.poostina-checkout-review-aside {
  padding: 18px;
  border: 1px solid #f0edf5;
  border-radius: 18px;
  background: var(--ps-flow-soft-purple);
}
.poostina-checkout-review-aside strong { display: block; margin-bottom: 6px; color: var(--ps-flow-purple); font-size: 13px; }
.poostina-checkout-review-aside p { margin: 0; color: var(--ps-flow-muted); font-size: 11px; line-height: 1.9; }

.woocommerce-checkout-review-order-table {
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
.woocommerce-checkout-review-order-table .product-name { color: var(--ps-flow-text); font-size: 12px; }
.woocommerce-checkout-review-order-table .product-quantity { color: var(--ps-flow-pink); }
.woocommerce-checkout-review-order-table ul#shipping_method { margin: 0; }
.woocommerce-checkout-review-order-table ul#shipping_method li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 7px 0;
}
.woocommerce-checkout-review-order-table ul#shipping_method input { accent-color: var(--ps-flow-pink); }

/* Payment */
.woocommerce-checkout #payment {
  margin: 0 !important;
  border: 1px solid #f0edf5 !important;
  border-radius: 18px !important;
  background: #fdfcff !important;
  overflow: hidden;
}
.woocommerce-checkout #payment ul.payment_methods {
  padding: 12px !important;
  border-bottom: 1px solid #f0edf5 !important;
}
.woocommerce-checkout #payment ul.payment_methods li {
  margin: 8px 0 !important;
  padding: 12px !important;
  border: 1px solid #ece8f2;
  border-radius: 14px;
  background: #fff;
}
.woocommerce-checkout #payment ul.payment_methods li > input { accent-color: var(--ps-flow-pink); }
.woocommerce-checkout #payment ul.payment_methods li > label {
  color: var(--ps-flow-text);
  font-family: "peyda-bold", "peyda-reg", sans-serif !important;
  font-size: 12px;
}
.woocommerce-checkout #payment div.payment_box {
  margin: 10px 0 0 !important;
  padding: 12px !important;
  border-radius: 12px !important;
  background: var(--ps-flow-soft-purple) !important;
  color: #655e72 !important;
  font-size: 11px !important;
}
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--ps-flow-soft-purple) !important; }
.woocommerce-checkout #payment .place-order { padding: 18px !important; }
.woocommerce #payment #place_order {
  float: none !important;
  width: 100% !important;
  min-height: 54px !important;
  line-height: 54px !important;
  margin-top: 10px !important;
}
.woocommerce-privacy-policy-text,
.woocommerce-terms-and-conditions-wrapper { color: var(--ps-flow-muted); font-size: 10px; line-height: 1.9; }

/* Coupon/login toggles */
.woocommerce-form-coupon-toggle,
.woocommerce-form-login-toggle { margin-bottom: 12px; }
.checkout_coupon,
.woocommerce-form-login.login {
  margin: 0 0 16px !important;
  padding: 16px !important;
  border: 1px solid var(--ps-flow-border) !important;
  border-radius: 18px !important;
  background: #fff !important;
}
.checkout_coupon { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.checkout_coupon p { margin: 0 !important; width: auto !important; float: none !important; }

/* Thank you */
.woocommerce-order-received .woocommerce-order {
  padding: 24px;
  border: 1px solid var(--ps-flow-border);
  border-radius: var(--ps-flow-radius);
  background: #fff;
  box-shadow: var(--ps-flow-shadow);
}
.woocommerce-order-received .woocommerce-thankyou-order-received {
  padding: 18px;
  border-radius: 17px;
  background: var(--ps-flow-soft-mint);
  color: var(--ps-flow-mint);
  font-family: "peyda-bold", "peyda-reg", sans-serif !important;
  text-align: center;
}
.woocommerce-order-received ul.order_details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0 !important;
  padding: 0 !important;
}
.woocommerce-order-received ul.order_details li {
  float: none !important;
  margin: 0 !important;
  padding: 13px !important;
  border: 1px solid #f0edf5 !important;
  border-radius: 14px;
  background: #fdfcff;
  color: var(--ps-flow-muted);
  font-size: 10px;
}
.woocommerce-order-received ul.order_details li strong { display: block; margin-top: 4px; color: var(--ps-flow-text); font-size: 12px; }

/* Responsive */
@media (max-width: 1024px) {
  body.poostina-flow-cart-page .woocommerce-cart-form,
  .poostina-commerce-widget--cart .woocommerce-cart-form,
  body.poostina-flow-cart-page .cart-collaterals,
  .poostina-commerce-widget--cart .cart-collaterals {
    float: none;
    width: 100%;
  }
  body.poostina-flow-cart-page .cart-collaterals,
  .poostina-commerce-widget--cart .cart-collaterals { margin-top: 18px; }
  body.poostina-flow-cart-page .cart-collaterals .cart_totals,
  .poostina-commerce-widget--cart .cart-collaterals .cart_totals { position: static; }
  .poostina-checkout-review-wrap { grid-template-columns: 1fr; }
  .woocommerce-order-received ul.order_details { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  body.poostina-flow-cart-page .site-main,
  body.poostina-flow-checkout-page .site-main,
  body.poostina-flow-complete-page .site-main,
  .poostina-commerce-widget { width: min(100% - 20px, 1240px); }

  .poostina-commerce-flow { margin: 12px 0 18px; }
  .poostina-commerce-stepper {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding: 10px 7px;
    border-radius: 18px;
  }
  .poostina-commerce-stepper__line { display: none; }
  .poostina-commerce-step { flex-direction: column; gap: 5px; text-align: center; }
  .poostina-commerce-step__icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 13px; }
  .poostina-commerce-step__icon svg { width: 19px; height: 19px; }
  .poostina-commerce-step__content small { display: none; }
  .poostina-commerce-step__content strong { font-size: 10px; white-space: normal; }

  body.poostina-flow-cart-page .woocommerce-cart-form,
  .poostina-commerce-widget--cart .woocommerce-cart-form,
  body.poostina-flow-cart-page .cart-collaterals .cart_totals,
  .poostina-commerce-widget--cart .cart-collaterals .cart_totals {
    padding: 14px;
    border-radius: 19px;
  }

  .woocommerce-cart-form table.shop_table thead { display: none; }
  .woocommerce-cart-form table.shop_table,
  .woocommerce-cart-form table.shop_table tbody,
  .woocommerce-cart-form table.shop_table tr,
  .woocommerce-cart-form table.shop_table td { display: block; width: 100% !important; }
  .woocommerce-cart-form table.shop_table tr.woocommerce-cart-form__cart-item {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 30px;
    grid-template-areas:
      "thumb name remove"
      "thumb price price"
      "thumb qty subtotal";
    gap: 6px 10px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #f0edf5;
    border-radius: 17px;
    background: #fff;
  }
  .woocommerce-cart-form table.shop_table td { padding: 0 !important; border: 0 !important; text-align: right !important; }
  .woocommerce-cart-form .product-thumbnail { grid-area: thumb; }
  .woocommerce-cart-form .product-thumbnail::before { display: none; }
  .woocommerce-cart-form .product-thumbnail img { width: 68px !important; height: 68px !important; }
  .woocommerce-cart-form .product-name { grid-area: name; }
  .woocommerce-cart-form .product-remove { grid-area: remove; }
  .woocommerce-cart-form .product-price { grid-area: price; color: var(--ps-flow-muted); font-size: 11px; }
  .woocommerce-cart-form .product-quantity { grid-area: qty; }
  .woocommerce-cart-form .product-subtotal { grid-area: subtotal; align-self: center; text-align: left !important; }
  .woocommerce-cart-form td[data-title]::before { display: none !important; }
  .poostina-flow-quantity { grid-template-columns: 30px 36px 30px; min-height: 36px; }
  .poostina-flow-quantity button { width: 30px; height: 36px; }
  .poostina-flow-quantity input.qty { width: 36px !important; height: 36px !important; }

  .woocommerce-cart-form td.actions { display: flex !important; flex-direction: column; gap: 9px; }
  .woocommerce-cart-form td.actions .coupon { width: 100%; }
  .woocommerce-cart-form td.actions .coupon input.input-text { width: 100% !important; }
  .woocommerce-cart-form td.actions button[name="update_cart"] { width: 100%; float: none; }

  .woocommerce-checkout .col2-set { grid-template-columns: 1fr; }
  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2 { padding: 13px; border-radius: 15px; }
  .checkout_coupon { grid-template-columns: 1fr; }
  .woocommerce-order-received ul.order_details { grid-template-columns: 1fr; }
}

/* Compatibility resets and auxiliary states */
.poostina-flow-message {
  padding: 24px;
  border: 1px solid var(--ps-flow-border);
  border-radius: var(--ps-flow-radius);
  background: #fff;
  color: var(--ps-flow-muted);
  text-align: center;
}

body.poostina-flow-cart-page .cart-collaterals .cross-sells,
.poostina-commerce-widget--cart .cart-collaterals .cross-sells {
  display: none !important;
}

body.poostina-flow-checkout-page form.checkout #customer_details,
body.poostina-flow-checkout-page form.checkout #order_review,
.poostina-commerce-widget--checkout form.checkout #customer_details,
.poostina-commerce-widget--checkout form.checkout #order_review {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.woocommerce-shipping-calculator .shipping-calculator-button {
  color: var(--ps-flow-purple) !important;
  font-family: "peyda-bold", "peyda-reg", sans-serif !important;
  font-size: 11px;
  text-decoration: none !important;
}
.woocommerce-shipping-calculator .shipping-calculator-form {
  margin-top: 10px !important;
  padding: 12px;
  border-radius: 14px;
  background: #faf9fc;
}
.woocommerce-shipping-calculator .button {
  width: 100%;
  min-height: 42px;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--ps-flow-soft-purple) !important;
  color: var(--ps-flow-purple) !important;
  font-family: "peyda-bold", "peyda-reg", sans-serif !important;
}

.woocommerce-checkout #payment img {
  max-width: 90px !important;
  max-height: 28px !important;
  object-fit: contain;
}

.woocommerce-checkout .woocommerce-invalid-required-field .select2-selection,
.woocommerce-checkout .woocommerce-invalid-required-field input,
.woocommerce-checkout .woocommerce-invalid-required-field textarea {
  border-color: var(--ps-flow-pink) !important;
}

/* =========================================================
   0.14.7 — تسویه‌حساب یک‌مرحله‌ای و خلاصه سفارش ثابت
========================================================= */

.poostina-commerce-widget--checkout {
  --ps-checkout-sidebar: 350px;
}

.poostina-checkout-simple-shell {
  width: 100%;
}

.poostina-checkout-simple-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--ps-checkout-sidebar);
  gap: 20px;
  align-items: start;
  direction: rtl;
}

.poostina-checkout-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

.poostina-checkout-simple-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--ps-flow-border);
  border-radius: var(--ps-flow-radius);
  background: #fff;
  box-shadow: var(--ps-flow-shadow);
}

.poostina-checkout-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1edf5;
}

.poostina-checkout-section-head__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(244, 61, 120, .14);
  border-radius: 14px;
  background: var(--ps-flow-soft-pink);
  color: var(--ps-flow-pink);
  font-family: "peyda-bold", "peyda-reg", sans-serif !important;
  font-size: 14px;
}

.poostina-checkout-section-head h2 {
  margin: 0 0 3px !important;
  color: var(--ps-flow-text);
  font-size: 16px !important;
}

.poostina-checkout-section-head p {
  margin: 0 !important;
  color: var(--ps-flow-muted);
  font-size: 12px !important;
  line-height: 1.8;
}

.poostina-checkout-customer-panel .col2-set {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

.poostina-checkout-customer-panel .col2-set .col-1,
.poostina-checkout-customer-panel .col2-set .col-2 {
  float: none !important;
  width: 100% !important;
  padding: 18px 18px 7px;
  border: 1px solid #f1edf5;
  border-radius: 19px;
  background: #fff;
}

.poostina-checkout-customer-panel .col2-set .col-2:empty {
  display: none !important;
}

.poostina-checkout-customer-panel .form-row-first,
.poostina-checkout-customer-panel .form-row-last {
  width: calc(50% - 6px) !important;
}

.poostina-checkout-customer-panel .form-row-first {
  float: right !important;
}

.poostina-checkout-customer-panel .form-row-last {
  float: left !important;
}

/*
 * جدول بازبینی ووکامرس به عنوان منبع زنده نگه داشته می‌شود.
 * ردیف محصولات و جمع‌ها در خلاصه سفارش نمایش داده می‌شوند و فقط روش ارسال
 * داخل بدنه اصلی باقی می‌ماند تا انتخاب روش ارسال همیشه در دسترس باشد.
 */
.poostina-checkout-native-review {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.poostina-checkout-native-review > .woocommerce-checkout-review-order-table {
  margin: 0 !important;
  border: 0 !important;
}

.poostina-checkout-native-review > .woocommerce-checkout-review-order-table thead,
.poostina-checkout-native-review > .woocommerce-checkout-review-order-table tbody,
.poostina-checkout-native-review > .woocommerce-checkout-review-order-table tfoot tr:not(.shipping) {
  display: none !important;
}

.poostina-checkout-native-review > .woocommerce-checkout-review-order-table tfoot,
.poostina-checkout-native-review > .woocommerce-checkout-review-order-table tfoot tr.shipping {
  display: table-row-group !important;
  width: 100%;
}

.poostina-checkout-native-review > .woocommerce-checkout-review-order-table tfoot tr.shipping {
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid #f0edf5;
  border-radius: 17px;
  background: #faf9fc;
}

.poostina-checkout-native-review > .woocommerce-checkout-review-order-table tfoot tr.shipping th,
.poostina-checkout-native-review > .woocommerce-checkout-review-order-table tfoot tr.shipping td {
  display: block !important;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: right !important;
}

.poostina-checkout-native-review ul#shipping_method {
  margin: 0 !important;
  padding: 0 !important;
}

.poostina-checkout-native-review ul#shipping_method li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px !important;
  padding: 10px 12px;
  border: 1px solid #ebe7f0;
  border-radius: 13px;
  background: #fff;
}

.poostina-checkout-native-review ul#shipping_method li:last-child {
  margin-bottom: 0 !important;
}

.poostina-checkout-native-review ul#shipping_method input {
  margin-top: 4px !important;
  accent-color: var(--ps-flow-pink);
}

.poostina-checkout-shipping-panel.is-empty {
  display: none !important;
}

.poostina-checkout-payment-panel #payment {
  margin: 0 !important;
}

.poostina-checkout-payment-panel #payment .place-order {
  padding: 18px !important;
}

/* خلاصه سفارش ثابت */
.poostina-checkout-sidebar {
  position: sticky;
  top: var(--poostina-safe-sticky-top, 168px);
  min-width: 0;
  max-height: calc(100vh - var(--poostina-safe-sticky-top, 168px) - 16px);
  padding: 17px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--ps-flow-border);
  border-radius: var(--ps-flow-radius);
  background: #fff;
  box-shadow: var(--ps-flow-shadow);
  direction: rtl;
}

.poostina-checkout-sidebar__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1edf5;
}

.poostina-checkout-sidebar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  background: var(--ps-flow-soft-pink);
  color: var(--ps-flow-pink);
}

.poostina-checkout-sidebar__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.poostina-checkout-sidebar__head h3 {
  margin: 0 0 3px;
  color: var(--ps-flow-text);
  font-size: 14px;
}

.poostina-checkout-sidebar__head p {
  margin: 0;
  color: var(--ps-flow-muted);
  font-size: 11px;
  line-height: 1.8;
}

.poostina-checkout-sidebar__items {
  display: flex;
  max-height: 330px;
  flex-direction: column;
  gap: 9px;
  margin: 13px 0;
  padding-left: 3px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(132, 83, 255, .45) #f2eff7;
}

.poostina-checkout-sidebar__items::-webkit-scrollbar { width: 5px; }
.poostina-checkout-sidebar__items::-webkit-scrollbar-track { border-radius: 999px; background: #f2eff7; }
.poostina-checkout-sidebar__items::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(132, 83, 255, .48); }

.poostina-checkout-sidebar-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 1px solid #f0edf5;
  border-radius: 15px;
  background: #fdfcff;
}

.poostina-checkout-sidebar-item__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.poostina-checkout-sidebar-item__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.poostina-checkout-sidebar-item__placeholder {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: #f1edf5;
}

.poostina-checkout-sidebar-item__copy { min-width: 0; }
.poostina-checkout-sidebar-item__name {
  color: var(--ps-flow-text);
  font-family: "peyda-bold", "peyda-reg", sans-serif !important;
  font-size: 12px;
  line-height: 1.8;
}
.poostina-checkout-sidebar-item__name dl.variation {
  margin: 2px 0 0 !important;
  color: var(--ps-flow-muted);
  font-family: "peyda-reg", sans-serif !important;
  font-size: 10px;
}
.poostina-checkout-sidebar-item__meta { margin-top: 2px; color: var(--ps-flow-pink); font-size: 10px; }
.poostina-checkout-sidebar-item__price { color: var(--ps-flow-text); font-family: "peyda-bold", sans-serif !important; font-size: 11px; white-space: nowrap; }
.poostina-checkout-sidebar__empty { margin: 0; padding: 16px 8px; color: var(--ps-flow-muted); font-size: 12px; text-align: center; }

.poostina-checkout-sidebar__totals {
  padding: 11px 0;
  border-top: 1px solid #f1edf5;
  border-bottom: 1px solid #f1edf5;
}

.poostina-checkout-sidebar-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  color: var(--ps-flow-muted);
  font-size: 12px;
}

.poostina-checkout-sidebar-total strong { color: var(--ps-flow-text); font-size: 12px; text-align: left; }
.poostina-checkout-sidebar-total.poostina-cart-savings-row,
.poostina-checkout-sidebar-total.poostina-cart-savings-row strong { color: var(--ps-flow-mint); }
.poostina-checkout-sidebar-total.order-total { margin-top: 5px; padding-top: 11px; border-top: 1px dashed #e8e3ee; color: var(--ps-flow-text); }
.poostina-checkout-sidebar-total.order-total span,
.poostina-checkout-sidebar-total.order-total strong { font-family: "peyda-bold", sans-serif !important; font-size: 14px; }
.poostina-checkout-sidebar-total.order-total strong { color: var(--ps-flow-pink); }

.poostina-checkout-sidebar__trust {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.poostina-checkout-sidebar__trust > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px;
  border-radius: 13px;
  background: var(--ps-flow-soft-purple);
}
.poostina-checkout-sidebar__trust > div:nth-child(2) { background: var(--ps-flow-soft-mint); }
.poostina-checkout-sidebar__trust > div > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  border-radius: 8px;
  background: #fff;
  color: var(--ps-flow-purple);
  font-family: Arial, sans-serif;
  font-size: 12px;
}
.poostina-checkout-sidebar__trust > div:nth-child(2) > span { color: var(--ps-flow-mint); }
.poostina-checkout-sidebar__trust p { margin: 0; }
.poostina-checkout-sidebar__trust strong { display: block; margin-bottom: 2px; color: var(--ps-flow-text); font-size: 11px; }
.poostina-checkout-sidebar__trust small { display: block; color: var(--ps-flow-muted); font-size: 10px; line-height: 1.7; }

/* کارت‌های محصولات داخل جدول مخفی بازبینی؛ برای خلاصه سفارش استفاده می‌شوند. */
.poostina-checkout-product-cell { display: flex; align-items: center; gap: 11px; }
.poostina-checkout-product-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 1px solid #f0edf5;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.poostina-checkout-product-image { width: 100% !important; height: 100% !important; margin: 0 !important; object-fit: contain !important; }
.poostina-checkout-product-copy { display: inline-block; min-width: 0; color: var(--ps-flow-text); font-family: "peyda-bold", "peyda-reg", sans-serif !important; line-height: 1.8; }
.poostina-checkout-product-copy dl.variation { margin: 3px 0 0 !important; color: var(--ps-flow-muted); font-family: "peyda-reg", sans-serif !important; font-size: 10px; }

.woocommerce-checkout #payment ul.payment_methods li { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) { border-color: rgba(244, 61, 120, .32); box-shadow: 0 8px 24px rgba(244, 61, 120, .07); transform: translateY(-1px); }

@media (max-width: 1100px) {
  .poostina-commerce-widget--checkout { --ps-checkout-sidebar: 310px; }
  .poostina-checkout-simple-layout { gap: 15px; }
}

@media (max-width: 900px) {
  .poostina-checkout-simple-layout { grid-template-columns: 1fr; }
  .poostina-checkout-sidebar { position: static; grid-row: 1; max-height: none; overflow: visible; }
  .poostina-checkout-sidebar__items { display: grid; max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .poostina-checkout-simple-panel,
  .poostina-checkout-sidebar { padding: 14px; border-radius: 18px; }
  .poostina-checkout-section-head { align-items: flex-start; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; }
  .poostina-checkout-section-head__icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 12px; }
  .poostina-checkout-section-head h2 { font-size: 14px !important; }
  .poostina-checkout-section-head p { font-size: 12px !important; }
  .poostina-checkout-customer-panel .col2-set .col-1,
  .poostina-checkout-customer-panel .col2-set .col-2 { padding: 12px 11px 4px; border-radius: 15px; }
  .poostina-checkout-customer-panel .form-row-first,
  .poostina-checkout-customer-panel .form-row-last { float: none !important; width: 100% !important; }
  .poostina-checkout-native-review > .woocommerce-checkout-review-order-table tfoot tr.shipping { grid-template-columns: 1fr; gap: 9px; padding: 12px; }
  .poostina-checkout-sidebar__items { display: flex; max-height: 275px; }
  .poostina-checkout-sidebar-item { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .poostina-checkout-sidebar-item__thumb { width: 48px; height: 48px; }
}

/* =========================================================
   0.14.3 — unified readable typography + premium thank-you
========================================================= */
body.poostina-flow-cart-page,
body.poostina-flow-checkout-page,
body.poostina-flow-complete-page,
.poostina-commerce-widget {
  --ps-flow-heading-size: 16px;
  --ps-flow-text-size: 14px;
}

body.poostina-flow-cart-page .woocommerce :is(h1,h2,h3,h4,h5,h6),
body.poostina-flow-checkout-page .woocommerce :is(h1,h2,h3,h4,h5,h6),
body.poostina-flow-complete-page .woocommerce :is(h1,h2,h3,h4,h5,h6),
.poostina-commerce-widget :is(h1,h2,h3,h4,h5,h6),
body.poostina-flow-cart-page .poostina-commerce-step__content strong,
body.poostina-flow-checkout-page .poostina-commerce-step__content strong,
body.poostina-flow-complete-page .poostina-commerce-step__content strong,
body.poostina-flow-cart-page .cart_totals > h2,
body.poostina-flow-checkout-page #order_review_heading,
body.poostina-flow-complete-page .poostina-thankyou-section-head h3 {
  font-size: var(--ps-flow-heading-size) !important;
  line-height: 1.75 !important;
}

body.poostina-flow-cart-page .woocommerce :is(p,li,td,th,label,input,select,textarea,button,a,small,span),
body.poostina-flow-checkout-page .woocommerce :is(p,li,td,th,label,input,select,textarea,button,a,small,span),
body.poostina-flow-complete-page .woocommerce :is(p,li,td,th,label,input,select,textarea,button,a,small,span),
.poostina-commerce-widget :is(p,li,td,th,label,input,select,textarea,button,a,small,span) {
  font-size: var(--ps-flow-text-size) !important;
}

body.poostina-flow-cart-page .woocommerce :is(input,select,textarea,button),
body.poostina-flow-checkout-page .woocommerce :is(input,select,textarea,button),
body.poostina-flow-complete-page .woocommerce :is(input,select,textarea,button) {
  line-height: 1.65 !important;
}

/* Hide duplicated native sections only on the final order-received screen. */
body.poostina-flow-complete-page .woocommerce-order > .woocommerce-order-details,
body.poostina-flow-complete-page .woocommerce-order > .woocommerce-customer-details,
body.poostina-flow-complete-page .woocommerce-order > .woocommerce-thankyou-order-received:empty {
  display: none !important;
}

body.poostina-flow-complete-page .woocommerce-order {
  display: block !important;
  width: 100%;
}

.poostina-thankyou-hero {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin: 22px 0 14px;
  padding: 24px;
  border: 1px solid rgba(23, 183, 125, .16);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 20%, rgba(132, 83, 255, .10), transparent 30%),
    radial-gradient(circle at 8% 100%, rgba(244, 61, 120, .09), transparent 32%),
    linear-gradient(145deg, #f5fff9, #fff 58%);
  box-shadow: 0 18px 55px rgba(50, 44, 72, .08);
  overflow: hidden;
}

.poostina-thankyou-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(145deg, #17b77d, #47d8a3);
  color: #fff;
  box-shadow: 0 14px 32px rgba(23, 183, 125, .22);
}

.poostina-thankyou-hero__icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.poostina-thankyou-hero__copy {
  min-width: 0;
}

.poostina-thankyou-hero__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #17b77d !important;
  font-family: "peyda-bold", sans-serif !important;
}

.poostina-thankyou-hero__copy h2 {
  margin: 0 0 5px !important;
  color: #2d3440 !important;
  font-family: "peyda-bold", sans-serif !important;
}

.poostina-thankyou-hero__copy p {
  max-width: 680px;
  margin: 0 !important;
  color: #7f7889 !important;
  line-height: 2 !important;
}

.poostina-thankyou-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid rgba(23, 183, 125, .16);
  border-radius: 999px;
  background: #ecfbf5;
  color: #159665 !important;
  font-family: "peyda-bold", sans-serif !important;
  white-space: nowrap;
}

.poostina-thankyou-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.poostina-thankyou-meta__item {
  display: flex;
  min-width: 0;
  min-height: 78px;
  flex-direction: column;
  justify-content: center;
  padding: 13px 15px;
  border: 1px solid #ece9f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(50, 44, 72, .045);
}

.poostina-thankyou-meta__item small {
  margin-bottom: 5px;
  color: #8d8798 !important;
}

.poostina-thankyou-meta__item strong {
  color: #2d3440 !important;
  font-family: "peyda-bold", sans-serif !important;
  overflow-wrap: anywhere;
}

.poostina-thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.poostina-thankyou-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 20px;
  border-radius: 14px;
  font-family: "peyda-bold", sans-serif !important;
  text-decoration: none !important;
}

.poostina-thankyou-actions .is-primary {
  background: linear-gradient(135deg, #8453ff, #f43d78);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(132, 83, 255, .18);
}

.poostina-thankyou-actions .is-secondary {
  border: 1px solid #e9e5ef;
  background: #fff;
  color: #5f5869 !important;
}

.poostina-thankyou-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 18px;
}

.poostina-thankyou-products,
.poostina-thankyou-totals,
.poostina-thankyou-delivery {
  padding: 20px;
  border: 1px solid #ece9f2;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(50, 44, 72, .055);
}

.poostina-thankyou-aside {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 14px;
}

.poostina-thankyou-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.poostina-thankyou-section-head small {
  display: block;
  margin-bottom: 2px;
  color: #f43d78 !important;
}

.poostina-thankyou-section-head h3 {
  margin: 0 !important;
  color: #2d3440 !important;
}

.poostina-thankyou-section-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f5f1ff;
  color: #8453ff !important;
  font-family: "peyda-bold", sans-serif !important;
}

.poostina-thankyou-products__list {
  display: grid;
  gap: 10px;
}

.poostina-thankyou-product {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #f0edf5;
  border-radius: 18px;
  background: #fdfcff;
}

.poostina-thankyou-product__image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  padding: 5px;
  border: 1px solid #efebf3;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.poostina-thankyou-product__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.poostina-thankyou-product__copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.poostina-thankyou-product__title {
  color: #2d3440 !important;
  font-family: "peyda-bold", sans-serif !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}

.poostina-thankyou-product__meta,
.poostina-thankyou-product__meta p {
  margin: 0 !important;
  color: #8d8798 !important;
}

.poostina-thankyou-product__qty {
  color: #8453ff !important;
}

.poostina-thankyou-product__total {
  color: #f43d78 !important;
  font-family: "peyda-bold", sans-serif !important;
  white-space: nowrap;
}

.poostina-thankyou-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed #eae6ef;
}

.poostina-thankyou-total-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.poostina-thankyou-total-row span {
  color: #817a89 !important;
}

.poostina-thankyou-total-row strong {
  color: #2d3440 !important;
  font-family: "peyda-bold", sans-serif !important;
  text-align: left;
}

.poostina-thankyou-totals .poostina-thankyou-total-row:last-child strong {
  color: #f43d78 !important;
}

.poostina-thankyou-delivery address {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 14px;
  background: #faf9fc;
  color: #625b6d;
  font-style: normal;
  line-height: 2;
}

.poostina-thankyou-delivery p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 !important;
  padding: 9px 0;
  border-top: 1px dashed #ebe7f0;
}

.poostina-thankyou-delivery p span { color: #8d8798 !important; }
.poostina-thankyou-delivery p strong { color: #2d3440 !important; }

@media (max-width: 980px) {
  .poostina-thankyou-layout {
    grid-template-columns: 1fr;
  }

  .poostina-thankyou-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.poostina-flow-cart-page,
  body.poostina-flow-checkout-page,
  body.poostina-flow-complete-page,
  .poostina-commerce-widget {
    --ps-flow-heading-size: 14px;
    --ps-flow-text-size: 12px;
  }

  .poostina-thankyou-hero {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
  }

  .poostina-thankyou-hero__icon {
    width: 56px;
    height: 56px;
    border-radius: 17px;
  }

  .poostina-thankyou-status {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 36px;
  }

  .poostina-thankyou-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .poostina-thankyou-meta__item {
    min-height: 68px;
    padding: 10px;
    border-radius: 15px;
  }

  .poostina-thankyou-actions a {
    flex: 1 1 0;
    min-width: 135px;
    min-height: 42px;
    padding-inline: 10px;
  }

  .poostina-thankyou-products,
  .poostina-thankyou-totals,
  .poostina-thankyou-delivery {
    padding: 14px;
    border-radius: 18px;
  }

  .poostina-thankyou-aside {
    grid-template-columns: 1fr;
  }

  .poostina-thankyou-product {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 15px;
  }

  .poostina-thankyou-product__image {
    width: 62px;
    height: 62px;
    border-radius: 14px;
  }

  .poostina-thankyou-product__total {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .poostina-thankyou-meta {
    grid-template-columns: 1fr;
  }

  .poostina-thankyou-actions {
    flex-direction: column;
  }

  .poostina-thankyou-actions a {
    width: 100%;
  }
}

/* Final typography specificity: bold text follows body size; actual headings remain heading size. */
body.poostina-flow-cart-page .woocommerce :is(strong,b),
body.poostina-flow-checkout-page .woocommerce :is(strong,b),
body.poostina-flow-complete-page .woocommerce :is(strong,b),
.poostina-commerce-widget :is(strong,b) {
  font-size: var(--ps-flow-text-size) !important;
}

body.poostina-flow-cart-page .woocommerce :is(h1,h2,h3,h4,h5,h6) :is(strong,b),
body.poostina-flow-checkout-page .woocommerce :is(h1,h2,h3,h4,h5,h6) :is(strong,b),
body.poostina-flow-complete-page .woocommerce :is(h1,h2,h3,h4,h5,h6) :is(strong,b),
.poostina-commerce-widget :is(h1,h2,h3,h4,h5,h6) :is(strong,b),
body.poostina-flow-cart-page .poostina-commerce-step__content strong,
body.poostina-flow-checkout-page .poostina-commerce-step__content strong,
body.poostina-flow-complete-page .poostina-commerce-step__content strong {
  font-size: var(--ps-flow-heading-size) !important;
}

body.poostina-flow-complete-page .woocommerce-order > ul.woocommerce-order-overview,
body.poostina-flow-complete-page .woocommerce-order > ul.order_details {
  display: none !important;
}


/* =========================================================
   0.14.4 — dynamic sticky clearance + solid primary palette
========================================================= */
:root {
  --poostina-safe-sticky-top: 168px;
}

body.poostina-flow-cart-page .cart-collaterals .cart_totals,
.poostina-commerce-widget--cart .cart-collaterals .cart_totals,
.poostina-checkout-sidebar,
.poostina-thankyou-aside {
  top: var(--poostina-safe-sticky-top, 168px) !important;
  max-height: calc(100vh - var(--poostina-safe-sticky-top, 168px) - 16px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Solid main colors: intentionally no primary gradients. */
.poostina-commerce-step.is-active .poostina-commerce-step__icon,
.woocommerce-cart-form td.actions button,
.woocommerce-cart-form td.actions .button,
.cart_totals .wc-proceed-to-checkout .checkout-button,
.checkout_coupon .button,
.woocommerce-checkout button.button,
.woocommerce-checkout input.button,
#place_order {
  background: var(--ps-flow-pink) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.poostina-commerce-stepper__line {
  background: var(--ps-flow-pink) !important;
}

.poostina-thankyou-hero {
  background: #f5fff9 !important;
}

.poostina-thankyou-hero__icon {
  background: var(--ps-flow-mint) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.poostina-thankyou-actions .is-primary {
  border: 1px solid var(--ps-flow-pink) !important;
  background: var(--ps-flow-pink) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.poostina-thankyou-actions .is-primary:hover {
  background: #dd2f68 !important;
}

@media (max-width: 980px) {
  body.poostina-flow-cart-page .cart-collaterals .cart_totals,
  .poostina-commerce-widget--cart .cart-collaterals .cart_totals,
  .poostina-checkout-sidebar,
  .poostina-thankyou-aside {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* =========================================================
   0.14.5 — compact, touch-friendly cart on mobile
========================================================= */
@media (max-width: 767px) {
  body.poostina-flow-cart-page .site-main,
  .poostina-commerce-widget--cart {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: 8px !important;
    padding-bottom: calc(var(--poostina-mobile-navbar-clearance, 0px) + 22px) !important;
    overflow-x: clip;
  }

  body.poostina-flow-cart-page .woocommerce-cart-form,
  .poostina-commerce-widget--cart .woocommerce-cart-form {
    width: 100% !important;
    padding: 8px !important;
    border-radius: 18px !important;
    overflow: hidden;
  }

  .woocommerce-cart-form table.shop_table tr.woocommerce-cart-form__cart-item {
    grid-template-columns: 64px minmax(0, 1fr) 28px !important;
    grid-template-areas:
      "thumb name remove"
      "thumb price price"
      "qty qty subtotal" !important;
    gap: 7px 9px !important;
    margin-bottom: 9px !important;
    padding: 10px !important;
    border-radius: 15px !important;
  }

  .woocommerce-cart-form .product-thumbnail img {
    width: 62px !important;
    height: 62px !important;
    padding: 5px !important;
    border-radius: 14px !important;
  }

  .woocommerce-cart-form .product-name {
    min-width: 0 !important;
    align-self: center;
  }

  .woocommerce-cart-form .product-name a {
    display: -webkit-box !important;
    overflow: hidden;
    font-size: 13px !important;
    line-height: 1.7 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .woocommerce-cart-form .product-name .variation {
    gap: 3px 7px !important;
    margin-top: 3px !important;
    font-size: 11px !important;
    line-height: 1.6;
  }

  .woocommerce-cart-form .product-remove a.remove {
    width: 28px !important;
    height: 28px !important;
    font-size: 16px !important;
  }

  .woocommerce-cart-form .product-price {
    min-width: 0;
    padding-top: 2px !important;
    color: var(--ps-flow-muted) !important;
    font-size: 11px !important;
  }

  .woocommerce-cart-form .product-quantity {
    display: flex !important;
    align-items: center;
    align-self: center;
    justify-content: flex-start;
    min-width: 0;
    padding-top: 8px !important;
    border-top: 1px dashed #eeeaf3 !important;
  }

  .woocommerce-cart-form .product-subtotal {
    display: flex !important;
    min-width: 0;
    flex-direction: column;
    align-items: flex-end;
    align-self: stretch !important;
    justify-content: center;
    padding-top: 8px !important;
    border-top: 1px dashed #eeeaf3 !important;
    font-size: 12px !important;
    text-align: left !important;
  }

  .poostina-cart-line-saving {
    margin-top: 2px !important;
    font-size: 10px !important;
    white-space: normal !important;
  }

  .poostina-flow-quantity {
    grid-template-columns: 30px 34px 30px !important;
    min-height: 34px !important;
    border-radius: 11px !important;
  }

  .poostina-flow-quantity button,
  .poostina-flow-quantity input.qty {
    height: 34px !important;
  }

  .poostina-flow-quantity button { width: 30px !important; }
  .poostina-flow-quantity input.qty { width: 34px !important; }

  .woocommerce-cart-form td.actions {
    gap: 8px !important;
    padding: 6px 2px 2px !important;
  }

  .woocommerce-cart-form td.actions .coupon {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 7px !important;
    width: 100% !important;
  }

  .woocommerce-cart-form td.actions .coupon input.input-text {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
  }

  .woocommerce-cart-form td.actions .coupon .button {
    min-width: 94px !important;
    min-height: 42px !important;
    padding-inline: 12px !important;
    line-height: 42px !important;
    white-space: nowrap;
  }

  .woocommerce-cart-form td.actions button[name="update_cart"] {
    display: none !important;
  }

  body.poostina-flow-cart-page .cart-collaterals,
  .poostina-commerce-widget--cart .cart-collaterals {
    width: 100% !important;
    margin-top: 10px !important;
  }

  body.poostina-flow-cart-page .cart-collaterals .cart_totals,
  .poostina-commerce-widget--cart .cart-collaterals .cart_totals {
    width: 100% !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .cart_totals h2 {
    margin-bottom: 9px !important;
  }

  .cart_totals table.shop_table th,
  .cart_totals table.shop_table td {
    padding-block: 10px !important;
  }

  .cart_totals .wc-proceed-to-checkout {
    padding-top: 10px !important;
  }

  .cart_totals .wc-proceed-to-checkout .checkout-button {
    min-height: 48px !important;
    line-height: 48px !important;
    border-radius: 13px !important;
  }

  .poostina-cart-trust-strip {
    gap: 7px !important;
    margin-top: 10px !important;
  }

  .poostina-cart-trust-item {
    gap: 8px !important;
    padding: 8px 9px !important;
    border-radius: 12px !important;
  }

  .poostina-cart-trust-item__icon {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
    border-radius: 11px !important;
  }
}

@media (max-width: 380px) {
  .woocommerce-cart-form td.actions .coupon {
    grid-template-columns: 1fr !important;
  }

  .woocommerce-cart-form td.actions .coupon .button {
    width: 100% !important;
  }
}

/* =========================================================
   0.14.7 — فرم کد تخفیف کاملاً ریسپانسیو
========================================================= */
@media (max-width: 767px) {
  .woocommerce-cart-form td.actions {
    display: block !important;
    width: 100% !important;
    padding: 10px 0 0 !important;
  }

  .woocommerce-cart-form td.actions .coupon {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    float: none !important;
  }

  .woocommerce-cart-form td.actions .coupon input.input-text,
  .woocommerce-cart-form td.actions .coupon .button {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    margin: 0 !important;
    float: none !important;
    line-height: 1.6 !important;
  }

  .woocommerce-cart-form td.actions .coupon .button {
    padding: 10px 14px !important;
  }
}
