.woocommerce {
  --wc-gap:1.25rem;
}
.woocommerce *,.woocommerce *::before,.woocommerce *::after {
  box-sizing:border-box;
}
.woocommerce a {
  color:var(--ink);
}
/* اعلان‌ها */
.woocommerce-notices-wrapper:empty {
  display:none;
}
.woocommerce-message,.woocommerce-info,.woocommerce-error {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:0.75rem;
  margin:0 0 1rem;
  padding:0.85rem 1.1rem;
  border-radius:var(--r-sm);
  background:var(--bg-soft);
  font-size:0.9rem;
  list-style:none;
}
.woocommerce-message {
  background:#e8f5e9;
  color:#1b5e20;
}
.woocommerce-error {
  background:#fdecea;
  color:#8a1c14;
}
.woocommerce-error li {
  margin:0;
}
.woocommerce-message .button,.woocommerce-info .button {
  margin-inline-start:auto;
}
/* دکمه‌ها */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.4rem;
  padding:0.7rem 1.4rem;
  border:1px solid var(--ink);
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-size:0.88rem;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
  transition:background 0.25s var(--ease),color 0.25s var(--ease);
}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover {
  background:var(--ink);
  color:#fff;
}
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,.woocommerce a.checkout-button,.woocommerce #place_order {
  background:var(--ink);
  color:#fff;
}
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce a.checkout-button:hover,.woocommerce #place_order:hover {
  background:var(--accent,#a7815a);
  border-color:var(--accent,#a7815a);
}
.woocommerce button.button:disabled,.woocommerce button.button.disabled {
  opacity:0.5;
  cursor:not-allowed;
}
/* فرم‌ها */
.woocommerce form .form-row {
  margin:0 0 1rem;
  padding:0;
}
.woocommerce form .form-row label {
  display:block;
  margin-bottom:0.35rem;
  font-size:0.85rem;
  font-weight:600;
}
.woocommerce form .form-row .required {
  color:#c0392b;
  text-decoration:none;
}
.woocommerce form .form-row .optional {
  color:var(--muted);
  font-weight:400;
}
.woocommerce .input-text,.woocommerce select,.woocommerce textarea,.woocommerce .select2-container .select2-selection--single {
  width:100%;
  min-height:46px;
  padding:0.65rem 0.9rem;
  border:1px solid var(--line);
  border-radius:var(--r-sm);
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-size:0.9rem;
}
.woocommerce textarea {
  min-height:110px;
}
.woocommerce .input-text:focus,.woocommerce select:focus,.woocommerce textarea:focus {
  outline:2px solid var(--ink);
  outline-offset:1px;
}
.woocommerce .select2-container .select2-selection--single {
  display:flex;
  align-items:center;
}
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding:0;
  line-height:1.5;
  color:var(--ink);
}
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
  top:0;
  height:100%;
}
.select2-dropdown {
  border-color:var(--line);
  border-radius:var(--r-sm);
}
.woocommerce form .form-row-first,.woocommerce form .form-row-last {
  width:100%;
  float:none;
}
@media(min-width:576px) {
  .woocommerce form .form-row-first,.woocommerce form .form-row-last {
    width:calc(50% - 0.5rem);
    float:right;
  }
  .woocommerce form .form-row-last {
    float:left;
  }
  .woocommerce form .form-row-wide,.woocommerce form .clear {
    clear:both;
  }
}
.woocommerce fieldset {
  margin:0 0 1rem;
  padding:1rem;
  border:1px solid var(--line);
  border-radius:var(--r-sm);
}
.woocommerce legend {
  width:auto;
  padding:0 0.5rem;
  font-size:0.9rem;
  font-weight:700;
}
.woocommerce .password-input {
  position:relative;
  display:block;
}
.woocommerce .show-password-input {
  position:absolute;
  top:50%;
  inset-inline-end:0.8rem;
  transform:translateY(-50%);
  width:22px;
  height:22px;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  opacity:0.55;
}
.woocommerce .show-password-input::after {
  content: "👁";
  font-size:1rem;
}
.woocommerce .woocommerce-form__label-for-checkbox {
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  font-weight:400;
}
/* جدول‌ها */
.woocommerce table.shop_table {
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  overflow:hidden;
  background:#fff;
  font-size:0.9rem;
}
.woocommerce table.shop_table th,.woocommerce table.shop_table td {
  padding:0.9rem 1rem;
  border-bottom:1px solid var(--line);
  text-align:right;
  vertical-align:middle;
}
.woocommerce table.shop_table thead th {
  background:var(--bg-soft);
  font-size:0.8rem;
  font-weight:700;
  color:var(--muted);
}
.woocommerce table.shop_table tbody tr:last-child td,.woocommerce table.shop_table tfoot tr:last-child th,.woocommerce table.shop_table tfoot tr:last-child td {
  border-bottom:0;
}
.woocommerce table.shop_table .product-thumbnail img {
  width:72px;
  height:72px;
  object-fit:contain;
  border-radius:var(--r-sm);
  background:var(--bg-soft);
}
.woocommerce table.shop_table .product-name a {
  font-weight:700;
  text-decoration:none;
}
.woocommerce table.shop_table .product-remove a.remove {
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:50%;
  background:var(--bg-soft);
  color:var(--ink);
  font-size:1.2rem;
  line-height:1;
  text-decoration:none;
}
.woocommerce table.shop_table .product-remove a.remove:hover {
  background:#c0392b;
  color:#fff;
}
.woocommerce .quantity .qty {
  min-height:40px;
  text-align:center;
}
.woocommerce td.actions {
  background:var(--bg-soft);
}
.woocommerce td.actions .coupon {
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
  float:right;
}
.woocommerce td.actions .coupon .input-text {
  width:180px;
}
.woocommerce td.actions >.button {
  float:left;
}
.woocommerce .woocommerce-Price-amount {
  font-weight:700;
}
.woocommerce del .woocommerce-Price-amount {
  color:var(--muted);
  font-weight:400;
}
.woocommerce ins {
  text-decoration:none;
}
@media(max-width:767.98px) {
  .woocommerce table.shop_table_responsive thead {
    display:none;
  }
  .woocommerce table.shop_table_responsive tr {
    display:block;
    border-bottom:1px solid var(--line);
  }
  .woocommerce table.shop_table_responsive tr:last-child {
    border-bottom:0;
  }
  .woocommerce table.shop_table_responsive td,.woocommerce table.shop_table_responsive th {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    border-bottom:0;
    text-align:left;
  }
  .woocommerce table.shop_table_responsive td::before {
    content:attr(data-title);
    font-weight:700;
    color:var(--muted);
    text-align:right;
  }
  .woocommerce table.shop_table_responsive td.product-remove::before,.woocommerce table.shop_table_responsive td.product-thumbnail::before,.woocommerce table.shop_table_responsive td.actions::before {
    display:none;
  }
  .woocommerce td.actions .coupon,.woocommerce td.actions >.button {
    float:none;
    width:100%;
  }
  .woocommerce td.actions .coupon .input-text {
    flex:1;
    width:auto;
  }
}
/* سبد خرید */
.woocommerce-cart .cart-collaterals {
  display:grid;
  justify-content:end;
  margin-top:1.5rem;
}
.woocommerce .cart_totals {
  width:min(100%,420px);
}
.woocommerce .cart_totals h2 {
  margin:0 0 0.75rem;
  font-size:1.1rem;
  font-weight:800;
}
.woocommerce .wc-proceed-to-checkout {
  padding-top:1rem;
}
.woocommerce .wc-proceed-to-checkout a.checkout-button {
  width:100%;
}
.woocommerce .cart-empty.woocommerce-info {
  justify-content:center;
  padding:2rem;
  text-align:center;
}
.woocommerce .return-to-shop {
  text-align:center;
}
/* تسویه حساب */
.woocommerce-checkout form.checkout {
  display:grid;
  gap:1.5rem;
}
@media(min-width:992px) {
  .woocommerce-checkout form.checkout {
    grid-template-columns:minmax(0,1.25fr) minmax(0,0.75fr);
    align-items:start;
  }
  .woocommerce-checkout #customer_details {
    grid-column:1;
    grid-row:1 / span 1;
  }
  .woocommerce-checkout #order_review {
    grid-column:2;
    grid-row:1;
  }
  .woocommerce-checkout form.checkout .woocommerce-NoticeGroup {
    grid-column:1 / -1;
  }
}
.woocommerce-checkout h3,.woocommerce-checkout #order_review_heading {
  margin:0 0 1rem;
  font-size:1.1rem;
  font-weight:800;
  display: none
}
.woocommerce-checkout #customer_details .col-1,.woocommerce-checkout #customer_details .col-2 {
  float:none;
  width:100%;
  max-width:100%;
}
.woocommerce-checkout #customer_details .col-2 {
  margin-top:1rem;
}
.woocommerce-checkout #order_review {
  padding:1.25rem;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  background:#fff;
}
.woocommerce-checkout #order_review table.shop_table {
  border:0;
  border-radius:0;
}
.woocommerce-checkout #payment {
  background:transparent;
}
.woocommerce-checkout #payment ul.payment_methods {
  margin:0 0 1rem;
  padding:0;
  list-style:none;
  display:grid;
  gap:0.5rem;
}
.woocommerce-checkout #payment ul.payment_methods li {
  padding:0.75rem 0.9rem;
  border:1px solid var(--line);
  border-radius:var(--r-sm);
}
.woocommerce-checkout #payment ul.payment_methods li label {
  display:inline;
  margin:0 0.4rem;
  font-weight:700;
}
.woocommerce-checkout #payment div.payment_box {
  margin-top:0.6rem;
  padding:0.7rem;
  border-radius:var(--r-sm);
  background:var(--bg-soft);
  font-size:0.85rem;
}
.woocommerce-checkout #payment div.payment_box p {
  margin:0;
}
.woocommerce-checkout #place_order {
  width:100%;
  padding:0.9rem 1.4rem;
  font-size:0.95rem;
}
.woocommerce-checkout .woocommerce-privacy-policy-text {
  font-size:0.8rem;
  color:var(--muted);
}
.woocommerce .woocommerce-form-coupon-toggle .woocommerce-info,.woocommerce .woocommerce-form-login-toggle .woocommerce-info {
  background:var(--bg-soft);
  color:var(--ink);
}
.woocommerce form.checkout_coupon,.woocommerce form.woocommerce-form-login {
  margin-bottom:1.25rem;
  padding:1.25rem;
  border:1px solid var(--line);
  border-radius:var(--r-md);
}
/* حساب کاربری */
.woocommerce-account .woocommerce {
  display:grid;
  gap:1.5rem;
}
@media(min-width:992px) {
  .woocommerce-account.logged-in .woocommerce {
    grid-template-columns:250px minmax(0,1fr);
    align-items:start;
  }
}
.woocommerce-MyAccount-navigation ul {
  margin:0;
  padding:0.5rem;
  list-style:none;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  background:#fff;
}
.woocommerce-MyAccount-navigation li a {
  display:block;
  padding:0.65rem 0.9rem;
  border-radius:var(--r-sm);
  font-size:0.9rem;
  text-decoration:none;
  color:var(--ink-2);
}
.woocommerce-MyAccount-navigation li a:hover {
  background:var(--bg-soft);
  color:var(--ink);
}
.woocommerce-MyAccount-navigation li.is-active a {
  background:var(--ink);
  color:#fff;
}
.woocommerce-MyAccount-content {
  min-width:0;
}
.woocommerce-MyAccount-content >p:first-child {
  margin-top:0;
}
.woocommerce-Addresses {
  display:grid;
  gap:1rem;
}
@media(min-width:768px) {
  .woocommerce-Addresses {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
.woocommerce-Address {
  padding:1.25rem;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  background:#fff;
  width: 100%;
}
.woocommerce-Address header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0.5rem;
  margin-bottom:0.75rem;
}
.woocommerce-Address h3,.woocommerce-Address h2 {
  margin:0;
  font-size:1rem;
  font-weight:800;
}
.woocommerce-Address address {
  margin:0;
  font-style:normal;
  line-height:2;
  font-size:0.9rem;
}
.woocommerce-orders-table__cell-order-actions .button {
  padding:0.35rem 0.9rem;
  font-size:0.78rem;
}
.woocommerce-pagination {
  margin-top:1rem;
  display:flex;
  gap:0.5rem;
}
/* ورود / ثبت‌نام */
.woocommerce-account:not(.logged-in) .woocommerce,#customer_login {
  display:grid;
  gap:1.5rem;
}
@media(min-width:768px) {
  #customer_login {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
#customer_login .u-column1,#customer_login .u-column2 {
  float:none;
  width:100%;
  padding:1.5rem;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  background:#fff;
}
#customer_login h2,.woocommerce-ResetPassword h2 {
  margin:0 0 1rem;
  font-size:1.15rem;
  font-weight:800;
}
.woocommerce-form-login__rememberme {
  margin-bottom:0.75rem;
}
.woocommerce-LostPassword {
  margin:0.75rem 0 0;
  font-size:0.85rem;
}
/* تکمیل سفارش */
.woocommerce-order {
  display:grid;
  gap:1.25rem;
}
.woocommerce-order .woocommerce-thankyou-order-received {
  padding:1rem 1.25rem;
  border-radius:var(--r-md);
  background:#e8f5e9;
  color:#1b5e20;
  font-weight:700;
}
ul.woocommerce-order-overview {
  display:grid;
  gap:0.75rem;
  margin:0;
  padding:1.25rem;
  list-style:none;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  background:#fff;
}
@media(min-width:768px) {
  ul.woocommerce-order-overview {
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  }
}
ul.woocommerce-order-overview li {
  font-size:0.8rem;
  color:var(--muted);
}
ul.woocommerce-order-overview li strong {
  display:block;
  margin-top:0.15rem;
  font-size:0.95rem;
  color:var(--ink);
}
.woocommerce-order-details__title,.woocommerce-column__title,.woocommerce-order-downloads__title {
  margin:0 0 0.75rem;
  font-size:1.1rem;
  font-weight:800;
}
.woocommerce-customer-details address {
  padding:1rem 1.25rem;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  background:#fff;
  font-style:normal;
  line-height:2;
  font-size:0.9rem;
}
.woocommerce-columns--addresses {
  display:grid;
  gap:1rem;
}
@media(min-width:768px) {
  .woocommerce-columns--addresses {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .woocommerce-columns--addresses .col-1,.woocommerce-columns--addresses .col-2 {
    float:none;
    width:100%;
  }
}
/* روش‌های ارسال */
ul#shipping_method {
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:0.4rem;
  text-align:start;
}
ul#shipping_method li {
  display:flex;
  align-items:center;
  gap:0.5rem;
  font-size:0.85rem;
}
ul#shipping_method input {
  accent-color:var(--ink);
  margin:0;
}
.woocommerce-shipping-destination {
  margin:0.4rem 0 0;
  font-size:0.78rem;
  color:var(--muted);
}
.woocommerce-privacy-policy-text {
  font-size:0.8rem;
  color:var(--muted);
}

/* ==========================================================================
   پنل مشتری: منو، داشبورد، لیست سفارش‌ها
   ========================================================================== */
.woocommerce-account .account-side { position: sticky; top: 1rem; }
.woocommerce-account .account-user { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); min-width: 0; }
.woocommerce-account .account-user > div { min-width: 0; }
.woocommerce-account .account-user strong { display: block; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.woocommerce-account .account-user span:not(.avatar) { display: block; font-size: 0.75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
.woocommerce-account .account-menu a.active { background: var(--ink); color: #fff; }
.woocommerce-account .account-menu a { text-decoration: none; }

@media (max-width: 991.98px) {
  .woocommerce-account .account-side { position: static; padding: 0.6rem; }
  .woocommerce-account .account-user { margin-bottom: 0.6rem; padding-bottom: 0.6rem; }
  .woocommerce-account .account-menu { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.15rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .woocommerce-account .account-menu::-webkit-scrollbar { display: none; }
  .woocommerce-account .account-menu a { flex: none; padding: 0.55rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.82rem; white-space: nowrap; background: #fff; }
  .woocommerce-account .account-menu a i { font-size: 1.05rem; }
  .woocommerce-account .account-menu a.active { border-color: var(--ink); }
  .woocommerce-account .account-menu a.logout { margin-inline-start: auto; }
}

/* داشبورد */
.account-dash { display: grid; gap: 1.25rem; }
.dash-hello { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.5rem; border-radius: var(--r-md); background: var(--dark); color: #fff; }
.dash-hello h2 { margin: 0 0 0.25rem; font-size: 1.25rem; font-weight: 800; color: #fff; }
.dash-hello p { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.72); line-height: 1.9; }
.woocommerce .dash-hello a.button { background: #fff; color: var(--ink); border-color: #fff; }
.woocommerce .dash-hello a.button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.dash-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; padding: 1rem 1.25rem; border: 1px solid #f0d9a8; border-radius: var(--r-md); background: #fff7e6; }
.dash-alert > i { font-size: 1.5rem; color: #b26a00; }
.dash-alert div { flex: 1; min-width: 180px; }
.dash-alert strong { display: block; font-size: 0.92rem; }
.dash-alert span { font-size: 0.8rem; color: var(--ink-2); }

.dash-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 768px) { .dash-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dash-stat { display: grid; gap: 0.2rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.dash-stat-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 0.35rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 1.2rem; }
.dash-stat strong { font-size: 1.35rem; font-weight: 800; line-height: 1.4; }
.dash-stat strong small { font-size: 0.72rem; font-weight: 500; color: var(--muted); }
.dash-stat > span:last-child { font-size: 0.78rem; color: var(--muted); }

.dash-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.dash-section-head h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.dash-section-head a { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.8rem; color: var(--accent); text-decoration: none; }

.dash-links { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 0.6rem; }
@media (min-width: 576px) { .dash-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dash-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--ink); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.dash-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.dash-link > i:first-child { font-size: 1.3rem; color: var(--accent); }
.dash-link span { flex: 1; }
.dash-link em { padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--bg-soft); font-size: 0.74rem; font-style: normal; font-weight: 700; color: var(--ink-2); }
.dash-link-go { font-size: 1rem; color: var(--muted); }

.dash-empty { display: grid; justify-items: center; gap: 0.4rem; padding: 2.5rem 1rem; border: 1px dashed var(--line); border-radius: var(--r-md); background: #fff; text-align: center; }
.dash-empty > i { font-size: 2.6rem; color: var(--muted); }
.dash-empty h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.dash-empty p { margin: 0 0 0.6rem; font-size: 0.85rem; color: var(--muted); }

/* لیست سفارش‌ها */
.orders-filter { display: flex; gap: 0.4rem; margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.orders-filter::-webkit-scrollbar { display: none; }
.orders-filter a { flex: none; padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.82rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.orders-filter a:hover { background: var(--bg-soft); }
.orders-filter a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.orders-list { display: grid; gap: 0.85rem; }
.order-card { display: grid; gap: 0.9rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.order-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.order-id { display: inline-flex; align-items: baseline; gap: 0.35rem; font-size: 1rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.order-id span { font-size: 0.78rem; font-weight: 500; color: var(--muted); }

.order-status { display: inline-flex; align-items: center; padding: 0.25rem 0.8rem; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.order-status.status-pending, .order-status.status-on-hold { background: #fff4d6; color: #8a5a00; }
.order-status.status-processing { background: #e3f0ff; color: #0b4d9c; }
.order-status.status-completed { background: #e4f5e8; color: #1b6b32; }
.order-status.status-cancelled, .order-status.status-failed { background: #fdecea; color: #a1241b; }
.order-status.status-refunded { background: #eceae6; color: #555; }

.order-thumbs { display: flex; gap: 0.4rem; }
.order-thumb { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); overflow: hidden; color: var(--muted); }
.order-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.order-thumb--more { font-size: 0.8rem; font-weight: 700; color: var(--ink-2); }

.order-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0; padding: 0.8rem 0; border-block: 1px solid var(--line); }
.order-meta dt { margin: 0 0 0.15rem; font-size: 0.72rem; font-weight: 500; color: var(--muted); }
.order-meta dd { margin: 0; font-size: 0.86rem; font-weight: 700; color: var(--ink); }

.order-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.woocommerce .order-actions .button { flex: 1 1 130px; padding: 0.6rem 1rem; font-size: 0.82rem; }

.orders-pager { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; }

@media (min-width: 768px) {
  .order-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head head" "thumbs meta" "actions actions"; align-items: center; }
  .order-card-head { grid-area: head; }
  .order-thumbs { grid-area: thumbs; }
  .order-meta { grid-area: meta; grid-template-columns: repeat(3, auto); gap: 2rem; padding: 0; border: 0; }
  .order-actions { grid-area: actions; justify-content: flex-end; padding-top: 0.85rem; border-top: 1px solid var(--line); }
  .woocommerce .order-actions .button { flex: 0 0 auto; }
}
@media (max-width: 575.98px) {
  .order-card { padding: 1rem; }
  .order-meta { gap: 0.35rem; }
  .order-meta dd { font-size: 0.8rem; }
  .woocommerce .order-actions .button { flex: 1 1 100%; }
}

/* ==========================================================================
   صفحه‌ی پرداخت: کد تخفیف داخل بازبینی سفارش
   ========================================================================== */
.checkout-coupon { margin: 1rem 0; padding: 0.9rem 1rem; border: 1px dashed var(--line); border-radius: var(--r-sm); background: var(--bg-soft); }
.checkout-coupon-label { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.6rem; font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.checkout-coupon-label i { font-size: 1.1rem; color: var(--accent); }
.checkout-coupon-row { display: flex; gap: 0.5rem; }
.checkout-coupon-row .input-text { flex: 1; min-width: 0; min-height: 44px; text-align: left; }
.woocommerce .checkout-coupon-row .button { flex: none; padding-inline: 1.3rem; }
.checkout-coupon.is-loading { opacity: 0.65; pointer-events: none; }
.checkout-coupon-msg { margin-top: 0.5rem; font-size: 0.8rem; line-height: 1.8; }
.checkout-coupon-msg:empty { display: none; }
.checkout-coupon-msg.is-ok { color: #1b6b32; }
.checkout-coupon-msg.is-error { color: #a1241b; }
