/*
 * Poostina My Account 0.14.3
 * The font files are intentionally not bundled. The site must load peyda-reg and peyda-bold.
 */

:root {
  --ps-account-pink: #f43d78;
  --ps-account-pink-2: #ff6b93;
  --ps-account-purple: #8453ff;
  --ps-account-mint: #17b77d;
  --ps-account-orange: #ff9f43;
  --ps-account-danger: #ef476f;
  --ps-account-text: #2d3440;
  --ps-account-muted: #8d8798;
  --ps-account-border: #ece9f2;
  --ps-account-panel: #ffffff;
  --ps-account-page: #fbfbfd;
  --ps-account-soft-pink: #fff1f6;
  --ps-account-soft-purple: #f5f1ff;
  --ps-account-soft-mint: #ecfbf5;
  --ps-account-radius: 24px;
  --ps-account-nav-width: 270px;
  --ps-account-layout-gap: 22px;
  --ps-account-content-padding: 24px;
  --ps-account-shadow: 0 18px 55px rgba(50, 44, 72, .07);
  --ps-account-sticky-top: 108px;
}

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

body.poostina-account-page *,
.poostina-account-widget *,
body.poostina-account-page *::before,
body.poostina-account-page *::after,
.poostina-account-widget *::before,
.poostina-account-widget *::after {
  box-sizing: border-box;
}

body.poostina-account-page h1,
body.poostina-account-page h2,
body.poostina-account-page h3,
body.poostina-account-page h4,
body.poostina-account-page h5,
body.poostina-account-page strong,
body.poostina-account-page b,
body.poostina-account-page button,
.poostina-account-widget h1,
.poostina-account-widget h2,
.poostina-account-widget h3,
.poostina-account-widget h4,
.poostina-account-widget h5,
.poostina-account-widget strong,
.poostina-account-widget b,
.poostina-account-widget button {
  font-family: "peyda-bold", "peyda-reg", Tahoma, Arial, sans-serif !important;
}

body.poostina-account-page .site-main,
.poostina-account-widget {
  width: min(100% - 32px, 1240px);
  max-width: 1240px;
  margin-inline: auto;
}

body.poostina-account-page .woocommerce,
.poostina-account-widget .woocommerce {
  direction: rtl;
  text-align: right;
}

/* Main logged-in layout */
body.poostina-account-page.logged-in .woocommerce,
.poostina-account-widget .woocommerce {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--ps-account-layout-gap);
  width: 100%;
}

body.poostina-account-page.logged-in .woocommerce > .woocommerce-notices-wrapper,
.poostina-account-widget .woocommerce > .woocommerce-notices-wrapper {
  flex: 0 0 100%;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  position: sticky;
  top: calc(var(--ps-account-sticky-top, 108px) + var(--wp-admin--admin-bar--height, 0px));
  z-index: 3;
  float: none !important;
  flex: 0 0 var(--ps-account-nav-width);
  width: var(--ps-account-nav-width) !important;
  min-width: 0;
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid var(--ps-account-border);
  border-radius: var(--ps-account-radius);
  background: var(--ps-account-panel);
  box-shadow: var(--ps-account-shadow);
  overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  flex: 1 1 0;
  width: auto !important;
  min-width: 0;
  min-height: 580px;
  margin: 0 !important;
  padding: var(--ps-account-content-padding) !important;
  border: 1px solid var(--ps-account-border);
  border-radius: var(--ps-account-radius);
  background: var(--ps-account-panel);
  box-shadow: var(--ps-account-shadow);
  overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content,
.poostina-account-profile,
.poostina-account-dashboard-card,
.poostina-account-section {
  scroll-margin-top: calc(var(--ps-account-sticky-top, 108px) + var(--wp-admin--admin-bar--height, 0px) + 18px);
}

.poostina-account-dashboard-page .woocommerce-MyAccount-content > p:first-child,
.poostina-account-dashboard-page .woocommerce-MyAccount-content > p:nth-child(2) {
  display: none;
}


body.poostina-account-page.logged-in .woocommerce > .poostina-account-profile,
.poostina-account-widget .woocommerce > .poostina-account-profile {
  display: none;
}

/* Profile card */
.poostina-account-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
  padding: 13px;
  border: 1px solid rgba(244, 61, 120, .10);
  border-radius: 19px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 107, 147, .14), transparent 36%),
    linear-gradient(145deg, #fff7fa, #fff);
}

.poostina-account-profile__avatar {
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  padding: 3px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(244, 61, 120, .12);
  overflow: hidden;
}

.poostina-account-profile__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  object-fit: cover;
}

.poostina-account-profile__copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.poostina-account-profile__copy small {
  color: var(--ps-account-pink);
  font-size: 11px;
}

.poostina-account-profile__copy strong {
  margin: 2px 0;
  color: var(--ps-account-text);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poostina-account-profile__copy span {
  color: var(--ps-account-muted);
  font-size: 10px;
  direction: ltr;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poostina-account-profile__edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(244, 61, 120, .14);
  border-radius: 11px;
  background: #fff;
  color: var(--ps-account-pink) !important;
  text-decoration: none !important;
}

.poostina-account-profile__edit svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Navigation */
.woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce-MyAccount-navigation li {
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-MyAccount-navigation li a {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px !important;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #676170 !important;
  font-family: "peyda-bold", "peyda-reg", sans-serif !important;
  font-size: 12px;
  text-decoration: none !important;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.woocommerce-MyAccount-navigation li a:hover {
  border-color: rgba(132, 83, 255, .12);
  background: var(--ps-account-soft-purple);
  color: var(--ps-account-purple) !important;
  transform: translateX(-2px);
}

.woocommerce-MyAccount-navigation li.is-active a {
  border-color: rgba(244, 61, 120, .14);
  background: linear-gradient(135deg, var(--ps-account-soft-pink), #fff);
  color: var(--ps-account-pink) !important;
  box-shadow: 0 8px 22px rgba(244, 61, 120, .07);
}

.woocommerce-MyAccount-navigation li a::after {
  content: "←";
  margin-right: auto;
  color: #c8c2ce;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.woocommerce-MyAccount-navigation li.is-active a::after {
  color: var(--ps-account-pink);
}

.poostina-account-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
  background: #f7f5fa;
  color: #938ca0;
}

.woocommerce-MyAccount-navigation li.is-active .poostina-account-nav-icon {
  background: #fff;
  color: var(--ps-account-pink);
}

.poostina-account-nav-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.poostina-account-mobile-nav {
  display: none !important;
}

/* Dashboard */
.poostina-account-dashboard {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.poostina-account-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 176px;
  padding: 26px;
  border-radius: 23px;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, .26), transparent 28%),
    radial-gradient(circle at 15% 90%, rgba(255, 255, 255, .16), transparent 32%),
    linear-gradient(135deg, var(--ps-account-pink), var(--ps-account-pink-2) 55%, var(--ps-account-purple));
  color: #fff;
  overflow: hidden;
}

.poostina-account-hero::before,
.poostina-account-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}

.poostina-account-hero::before {
  top: -70px;
  left: -40px;
  width: 185px;
  height: 185px;
}

.poostina-account-hero::after {
  right: 43%;
  bottom: -95px;
  width: 220px;
  height: 220px;
}

.poostina-account-hero__copy,
.poostina-account-hero__actions {
  position: relative;
  z-index: 1;
}

.poostina-account-hero__copy small {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,.82);
  font-size: 12px;
}

.poostina-account-hero__copy h2 {
  margin: 0 0 7px;
  color: #fff;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.55;
}

.poostina-account-hero__copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: 12px;
  line-height: 2;
}

.poostina-account-hero__actions {
  display: flex;
  min-width: 190px;
  flex-direction: column;
  gap: 9px;
}

.poostina-account-hero__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 13px;
  font-family: "peyda-bold", sans-serif;
  font-size: 11px;
  text-decoration: none !important;
}

.poostina-account-hero__primary {
  background: #fff;
  color: var(--ps-account-pink) !important;
  box-shadow: 0 10px 28px rgba(63, 26, 63, .16);
}

.poostina-account-hero__secondary {
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.10);
  color: #fff !important;
}

.poostina-account-dashboard__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.poostina-account-stat {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 98px;
  padding: 13px;
  border: 1px solid #f0edf5;
  border-radius: 18px;
  background: #fdfcff;
  color: inherit !important;
  text-decoration: none !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.poostina-account-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(132, 83, 255, .18);
  box-shadow: 0 13px 30px rgba(50, 44, 72, .06);
}

.poostina-account-stat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: var(--ps-account-soft-purple);
  color: var(--ps-account-purple);
}

.poostina-account-stat__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.poostina-account-stat--active .poostina-account-stat__icon {
  background: var(--ps-account-soft-pink);
  color: var(--ps-account-pink);
}

.poostina-account-stat--complete .poostina-account-stat__icon {
  background: var(--ps-account-soft-mint);
  color: var(--ps-account-mint);
}

.poostina-account-stat--address .poostina-account-stat__icon {
  background: #fff7ed;
  color: var(--ps-account-orange);
}

.poostina-account-stat__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.poostina-account-stat__copy strong {
  color: var(--ps-account-text);
  font-size: 18px;
  line-height: 1.3;
}

.poostina-account-stat__copy b {
  margin: 2px 0;
  color: #5d5768;
  font-size: 11px;
}

.poostina-account-stat__copy small {
  color: var(--ps-account-muted);
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.poostina-account-section-head small {
  display: block;
  margin-bottom: 2px;
  color: var(--ps-account-pink);
  font-size: 10px;
}

.poostina-account-section-head h3 {
  margin: 0;
  color: var(--ps-account-text);
  font-size: 16px;
}

.poostina-account-section-head a {
  color: var(--ps-account-purple) !important;
  font-family: "peyda-bold", sans-serif;
  font-size: 10px;
  text-decoration: none !important;
}

.poostina-account-latest-order,
.poostina-account-recent-list,
.poostina-view-order-status,
.poostina-order-tracking__card,
.poostina-order-tracking__history {
  padding: 19px;
  border: 1px solid #f0edf5;
  border-radius: 20px;
  background: #fff;
}

.poostina-account-latest-order__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
  padding: 13px;
  border-radius: 17px;
  background: #faf9fc;
}

.poostina-account-order-products {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.poostina-account-order-products__item {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  padding: 3px;
  border: 1px solid #eeeaf3;
  border-radius: 14px;
  background: #fff;
}

.poostina-account-order-products__item img {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  object-fit: contain;
}

.poostina-account-order-products__item small {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--ps-account-pink);
  color: #fff;
  font-family: "peyda-bold", sans-serif;
  font-size: 8px;
}

.poostina-account-latest-order__meta {
  display: grid;
  min-width: 390px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.poostina-account-latest-order__meta span {
  display: flex;
  min-height: 54px;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid #f0edf5;
  border-radius: 13px;
  background: #fff;
}

.poostina-account-latest-order__meta small {
  color: var(--ps-account-muted);
  font-size: 8.5px;
}

.poostina-account-latest-order__meta strong {
  margin-top: 3px;
  color: var(--ps-account-text);
  font-size: 10px;
}

.poostina-account-recent-list__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.poostina-account-order-card {
  padding: 13px;
  border: 1px solid #f0edf5;
  border-radius: 17px;
  background: #fdfcff;
}

.poostina-account-order-card__top,
.poostina-account-order-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.poostina-account-order-card__top {
  margin-bottom: 12px;
}

.poostina-account-order-card__top > strong {
  color: var(--ps-account-text);
  font-size: 12px;
}

.poostina-account-order-card .poostina-account-order-products {
  margin-bottom: 12px;
}

.poostina-account-order-card__bottom {
  padding-top: 10px;
  border-top: 1px dashed #ebe7f0;
  color: var(--ps-account-muted);
  font-size: 9px;
}

.poostina-account-order-card__bottom strong {
  color: var(--ps-account-text);
  font-size: 10px;
}

.poostina-account-order-card__bottom a {
  color: var(--ps-account-purple) !important;
  font-family: "peyda-bold", sans-serif;
  text-decoration: none !important;
}

/* Status badges */
.poostina-order-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ps-account-soft-purple);
  color: var(--ps-account-purple) !important;
  font-family: "peyda-bold", sans-serif;
  font-size: 9px !important;
  white-space: nowrap;
}

.poostina-order-status--processing,
.poostina-order-status--pending,
.poostina-order-status--on-hold {
  background: #fff6e9;
  color: #d48412 !important;
}

.poostina-order-status--completed {
  background: var(--ps-account-soft-mint);
  color: var(--ps-account-mint) !important;
}

.poostina-order-status--cancelled,
.poostina-order-status--failed,
.poostina-order-status--refunded {
  background: #fff0f3;
  color: var(--ps-account-danger) !important;
}

/* Timeline */
.poostina-order-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 14px 6px 4px;
}

.poostina-order-timeline__step {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.poostina-order-timeline__step::before {
  content: "";
  position: absolute;
  top: 14px;
  right: -50%;
  z-index: 0;
  width: 100%;
  height: 3px;
  background: #eeeaf3;
}

.poostina-order-timeline__step:first-child::before {
  display: none;
}

.poostina-order-timeline__step.is-done::before,
.poostina-order-timeline__step.is-active::before {
  background: linear-gradient(90deg, var(--ps-account-pink), var(--ps-account-purple));
}

.poostina-order-timeline__marker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border: 3px solid #f4f1f7;
  border-radius: 50%;
  background: #fff;
}

.poostina-order-timeline__marker i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d4cfda;
}

.poostina-order-timeline__step.is-done .poostina-order-timeline__marker,
.poostina-order-timeline__step.is-active .poostina-order-timeline__marker {
  border-color: rgba(244,61,120,.14);
  box-shadow: 0 0 0 4px rgba(244,61,120,.05);
}

.poostina-order-timeline__step.is-done .poostina-order-timeline__marker i,
.poostina-order-timeline__step.is-active .poostina-order-timeline__marker i {
  background: var(--ps-account-pink);
}

.poostina-order-timeline__step.is-active .poostina-order-timeline__marker {
  animation: poostinaAccountPulse 1.8s infinite;
}

@keyframes poostinaAccountPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(244,61,120,.05); }
  50% { box-shadow: 0 0 0 8px rgba(244,61,120,.08); }
}

.poostina-order-timeline__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 8px 5px 0;
}

.poostina-order-timeline__copy strong {
  color: #6d6677;
  font-size: 10px;
  white-space: nowrap;
}

.poostina-order-timeline__copy small {
  margin-top: 3px;
  color: #a49dab;
  font-size: 8px;
  line-height: 1.7;
}

.poostina-order-timeline__step.is-active .poostina-order-timeline__copy strong,
.poostina-order-timeline__step.is-done .poostina-order-timeline__copy strong {
  color: var(--ps-account-text);
}

.poostina-order-timeline__special {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #ffd6de;
  border-radius: 15px;
  background: #fff4f6;
  color: var(--ps-account-danger);
}

.poostina-order-timeline__special strong {
  font-size: 12px;
}

.poostina-order-timeline__special span {
  font-size: 10px;
  line-height: 1.9;
}

.poostina-order-timeline--compact .poostina-order-timeline__copy small {
  display: none;
}

/* Quick links */
.poostina-account-quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.poostina-account-quick-links a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 86px;
  padding: 12px;
  border: 1px solid #f0edf5;
  border-radius: 17px;
  background: #fff;
  color: inherit !important;
  text-decoration: none !important;
  transition: transform .2s ease, border-color .2s ease;
}

.poostina-account-quick-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(132,83,255,.18);
}

.poostina-account-quick-links__icon {
  grid-row: 1 / span 2;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--ps-account-soft-pink);
  color: var(--ps-account-pink);
}

.poostina-account-quick-links__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.poostina-account-quick-links strong {
  align-self: end;
  font-size: 11px;
}

.poostina-account-quick-links small {
  align-self: start;
  color: var(--ps-account-muted);
  font-size: 8.5px;
}

.poostina-account-empty-dashboard {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--ps-account-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(50, 44, 72, .06);
}

.poostina-account-empty-dashboard::before {
  content: "";
  position: absolute;
  inset: auto -45px -70px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--ps-account-soft-pink);
  pointer-events: none;
}

.poostina-account-empty-dashboard__visual {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(244, 61, 120, .14);
  border-radius: 25px;
  background: var(--ps-account-soft-pink);
  color: var(--ps-account-pink);
}

.poostina-account-empty-dashboard__visual svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.poostina-account-empty-dashboard__content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.poostina-account-empty-dashboard__content > small {
  display: block;
  margin-bottom: 4px;
  color: var(--ps-account-pink);
  font-family: "peyda-bold", "peyda-reg", sans-serif;
  font-size: 11px;
}

.poostina-account-empty-dashboard strong {
  display: block;
  color: var(--ps-account-text);
  font-size: 16px;
}

.poostina-account-empty-dashboard p {
  max-width: 620px;
  margin: 6px 0 11px;
  color: var(--ps-account-muted);
  font-size: 12px;
  line-height: 1.9;
}

.poostina-account-empty-dashboard__features {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.poostina-account-empty-dashboard__features span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #faf9fc;
  color: #6f6879;
  font-size: 10px;
}

.poostina-account-empty-dashboard__action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid var(--ps-account-pink);
  border-radius: 13px;
  background: var(--ps-account-pink);
  color: #fff !important;
  font-family: "peyda-bold", sans-serif;
  font-size: 12px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.poostina-account-empty-dashboard__action:hover {
  border-color: #dd2f68;
  background: #dd2f68;
  color: #fff !important;
  transform: translateY(-1px);
}

.poostina-account-empty-dashboard__action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 767px) {
  .poostina-account-empty-dashboard {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border-radius: 19px;
  }

  .poostina-account-empty-dashboard__visual {
    width: 64px;
    height: 64px;
    border-radius: 19px;
  }

  .poostina-account-empty-dashboard__visual svg {
    width: 31px;
    height: 31px;
  }

  .poostina-account-empty-dashboard strong {
    font-size: 14px;
  }

  .poostina-account-empty-dashboard p {
    font-size: 12px;
  }

  .poostina-account-empty-dashboard__features {
    grid-column: 1 / -1;
  }

  .poostina-account-empty-dashboard__action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Dedicated tracking endpoint */
.poostina-order-tracking {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.poostina-order-tracking__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--ps-account-soft-pink), #fff 58%, var(--ps-account-soft-purple));
}

.poostina-order-tracking__header small {
  color: var(--ps-account-pink);
  font-size: 10px;
}

.poostina-order-tracking__header h2 {
  margin: 3px 0 5px;
  font-size: 20px;
}

.poostina-order-tracking__header p {
  margin: 0;
  color: var(--ps-account-muted);
  font-size: 10px;
  line-height: 1.9;
}

.poostina-order-tracking__selector {
  width: min(100%, 350px);
  flex: 0 0 350px;
}

.poostina-order-tracking__selector label {
  display: block;
  margin-bottom: 6px;
  color: #696271;
  font-family: "peyda-bold", sans-serif;
  font-size: 9px;
}

.poostina-order-tracking__selector > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.poostina-order-tracking__selector select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid var(--ps-account-border);
  border-radius: 12px;
  background: #fff;
  color: var(--ps-account-text);
  font-family: "peyda-reg", sans-serif;
  font-size: 9px;
}

.poostina-order-tracking__selector button,
.poostina-order-tracking__view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ps-account-pink), var(--ps-account-pink-2));
  color: #fff !important;
  font-family: "peyda-bold", sans-serif;
  font-size: 10px;
  text-decoration: none !important;
  cursor: pointer;
}

.poostina-order-tracking__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 15px;
}

.poostina-order-tracking__summary > div {
  display: flex;
  min-height: 62px;
  flex-direction: column;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid #f0edf5;
  border-radius: 14px;
  background: #faf9fc;
}

.poostina-order-tracking__summary small {
  color: var(--ps-account-muted);
  font-size: 8.5px;
}

.poostina-order-tracking__summary strong {
  margin-top: 4px;
  font-size: 11px;
}

.poostina-order-tracking__details {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, .55fr);
  gap: 14px;
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid #f0edf5;
}

.poostina-order-tracking__details h3 {
  margin: 0 0 12px;
  font-size: 14px;
}

.poostina-order-tracking__products article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #f2eef5;
}

.poostina-order-tracking__products article:last-child {
  border-bottom: 0;
}

.poostina-order-tracking__product-image {
  display: inline-flex;
  width: 54px;
  height: 54px;
  padding: 3px;
  border: 1px solid #eeeaf3;
  border-radius: 13px;
}

.poostina-order-tracking__product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.poostina-order-tracking__product-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.poostina-order-tracking__product-copy strong {
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poostina-order-tracking__product-copy small {
  margin-top: 4px;
  color: var(--ps-account-muted);
  font-size: 8.5px;
}

.poostina-order-tracking__product-total {
  font-family: "peyda-bold", sans-serif;
  font-size: 10px;
  white-space: nowrap;
}

.poostina-order-tracking__address {
  padding: 14px;
  border: 1px solid #f0edf5;
  border-radius: 17px;
  background: #faf9fc;
}

.poostina-order-tracking__address-box {
  padding: 11px;
  border-radius: 13px;
  background: #fff;
  color: #686170;
  font-size: 9.5px;
  font-style: normal;
  line-height: 2;
}

.poostina-order-tracking__address p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 9px 0 0;
  padding: 9px 0 0;
  border-top: 1px dashed #e6e1eb;
}

.poostina-order-tracking__address p small {
  color: var(--ps-account-muted);
  font-size: 8.5px;
}

.poostina-order-tracking__address p strong {
  font-size: 9.5px;
}

.poostina-order-tracking__view {
  width: 100%;
  margin-top: 11px;
}

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

.poostina-order-tracking__history-grid > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid #f0edf5;
  border-radius: 14px;
  background: #fdfcff;
  color: inherit !important;
  text-decoration: none !important;
}

.poostina-order-tracking__history-grid > a > span:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.poostina-order-tracking__history-grid strong {
  font-size: 10px;
}

.poostina-order-tracking__history-grid small {
  color: var(--ps-account-muted);
  font-size: 8px;
}

.poostina-order-tracking__history-grid b {
  font-size: 9px;
  white-space: nowrap;
}

/* Native WooCommerce tables */
.woocommerce-account table.shop_table {
  width: 100%;
  margin: 0 !important;
  border: 1px solid #f0edf5 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 17px !important;
  background: #fff;
  overflow: hidden;
}

.woocommerce-account table.shop_table th,
.woocommerce-account table.shop_table td {
  padding: 13px 12px !important;
  border-top: 1px solid #f2eef5 !important;
  font-size: 10px;
  text-align: right !important;
}

.woocommerce-account table.shop_table thead th {
  border-top: 0 !important;
  background: #faf9fc;
  color: #686170;
  font-family: "peyda-bold", sans-serif;
}

.woocommerce-account table.shop_table a {
  color: var(--ps-account-purple);
  text-decoration: none;
}

.woocommerce-account .woocommerce-button,
.woocommerce-account button.button,
.woocommerce-account input.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--ps-account-pink), var(--ps-account-pink-2)) !important;
  color: #fff !important;
  font-family: "peyda-bold", sans-serif !important;
  font-size: 10px !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

/* Addresses */
.woocommerce-account .u-columns.woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.woocommerce-account .woocommerce-Address {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 16px !important;
  border: 1px solid #f0edf5;
  border-radius: 18px;
  background: #fdfcff;
}

.woocommerce-account .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.woocommerce-account .woocommerce-Address-title h2 {
  margin: 0;
  font-size: 15px;
}

.woocommerce-account .woocommerce-Address address {
  margin-top: 12px;
  color: #6d6677;
  font-size: 10px;
  font-style: normal;
  line-height: 2;
}

/* Forms */
.woocommerce-account fieldset {
  margin: 18px 0 0;
  padding: 15px;
  border: 1px solid #f0edf5;
  border-radius: 17px;
}

.woocommerce-account legend {
  padding: 0 8px;
  color: var(--ps-account-pink);
  font-family: "peyda-bold", sans-serif;
  font-size: 11px;
}

.woocommerce-account form .form-row {
  margin: 0 0 13px !important;
  padding: 0 !important;
}

.woocommerce-account form .form-row label {
  display: block;
  margin-bottom: 6px;
  color: #5e586a;
  font-family: "peyda-bold", sans-serif !important;
  font-size: 10px;
}

.woocommerce-account form input.input-text,
.woocommerce-account form textarea,
.woocommerce-account form select,
.woocommerce-account .select2-container--default .select2-selection--single {
  width: 100% !important;
  min-height: 47px !important;
  padding: 0 13px !important;
  border: 1px solid var(--ps-account-border) !important;
  border-radius: 13px !important;
  background: #fff !important;
  color: var(--ps-account-text) !important;
  font-family: "peyda-reg", sans-serif !important;
  font-size: 11px !important;
  outline: none !important;
  box-shadow: none !important;
}

.woocommerce-account form textarea {
  min-height: 105px !important;
  padding-top: 12px !important;
}

.woocommerce-account form input:focus,
.woocommerce-account form textarea:focus,
.woocommerce-account form select:focus {
  border-color: rgba(132, 83, 255, .5) !important;
  box-shadow: 0 0 0 3px rgba(132, 83, 255, .07) !important;
}

/* Login and register */
.woocommerce-account:not(.logged-in) .woocommerce {
  display: block;
  max-width: 980px;
  margin-inline: auto;
}

.woocommerce-account #customer_login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2 {
  float: none !important;
  width: 100% !important;
  padding: 24px !important;
  border: 1px solid var(--ps-account-border);
  border-radius: var(--ps-account-radius);
  background: #fff;
  box-shadow: var(--ps-account-shadow);
}

.woocommerce-account #customer_login h2 {
  margin: 0 0 17px;
  color: var(--ps-account-text);
  font-size: 20px;
}

.woocommerce-account form.login,
.woocommerce-account form.register {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.woocommerce-account .woocommerce-LostPassword {
  margin: 10px 0 0;
}

.woocommerce-account .woocommerce-LostPassword a {
  color: var(--ps-account-purple);
  font-size: 10px;
  text-decoration: none;
}

.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-error {
  width: 100%;
  margin-bottom: 14px !important;
  padding: 14px 44px 14px 15px !important;
  border: 1px solid var(--ps-account-border) !important;
  border-top: 0 !important;
  border-radius: 15px !important;
  background: #fff !important;
  box-shadow: 0 9px 25px rgba(50, 44, 72, .05);
  font-size: 10px;
}

/* Tablet */
@media (max-width: 1100px) {
  :root {
    --ps-account-nav-width: 235px;
    --ps-account-layout-gap: 16px;
    --ps-account-content-padding: 18px;
  }

  .poostina-account-dashboard__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poostina-account-quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poostina-account-latest-order__summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .poostina-account-latest-order__meta {
    width: 100%;
    min-width: 0;
  }

  .poostina-order-tracking__header {
    align-items: stretch;
    flex-direction: column;
  }

  .poostina-order-tracking__selector {
    width: 100%;
    flex-basis: auto;
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --ps-account-layout-gap: 12px;
    --ps-account-content-padding: 14px;
    --ps-account-radius: 20px;
  }

  body.poostina-account-page .site-main,
  .poostina-account-widget {
    width: min(100% - 16px, 1240px) !important;
    max-width: 100% !important;
  }

  body.poostina-account-page.logged-in .woocommerce,
  .poostina-account-widget .woocommerce {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    position: relative !important;
    top: auto !important;
    z-index: 2;
    padding: 10px !important;
    border-radius: 18px;
    overflow: hidden;
  }

  .poostina-account-profile {
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 15px;
  }

  .poostina-account-profile__avatar {
    width: 45px;
    height: 45px;
    flex-basis: 45px;
    border-radius: 14px;
  }

  .poostina-account-profile__copy strong {
    font-size: 12px;
  }

  .poostina-account-profile__copy span {
    font-size: 9px;
  }

  .poostina-account-profile__edit {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }

  .woocommerce-MyAccount-navigation ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 2px 0 5px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
    display: none;
  }

  .woocommerce-MyAccount-navigation li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .woocommerce-MyAccount-navigation li a {
    min-height: 42px;
    padding: 6px 10px !important;
    border: 1px solid #f0edf5;
    border-radius: 12px;
    background: #fff;
    font-size: 10px;
    white-space: nowrap;
  }

  .woocommerce-MyAccount-navigation li a::after {
    display: none;
  }

  .poostina-account-nav-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-radius: 9px;
  }

  .poostina-account-nav-icon svg {
    width: 15px;
    height: 15px;
  }

  .woocommerce-account .woocommerce-MyAccount-content {
    min-height: 0;
    padding: 12px !important;
    border-radius: 18px;
    overflow: visible;
  }

  .poostina-account-dashboard {
    gap: 12px;
  }

  .poostina-account-hero {
    min-height: 0;
    padding: 18px;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .poostina-account-hero__copy h2 {
    font-size: 19px;
  }

  .poostina-account-hero__copy p {
    font-size: 10px;
  }

  .poostina-account-hero__actions {
    min-width: 0;
    flex-direction: row;
  }

  .poostina-account-hero__actions a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    padding-inline: 9px;
    font-size: 9px;
  }

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

  .poostina-account-stat {
    grid-template-columns: 39px minmax(0, 1fr);
    min-height: 82px;
    padding: 10px;
    border-radius: 15px;
  }

  .poostina-account-stat__icon {
    width: 39px;
    height: 39px;
    border-radius: 12px;
  }

  .poostina-account-stat__copy strong {
    font-size: 15px;
  }

  .poostina-account-stat__copy b {
    font-size: 9.5px;
  }

  .poostina-account-stat__copy small {
    display: none;
  }

  .poostina-account-latest-order,
  .poostina-account-recent-list,
  .poostina-view-order-status,
  .poostina-order-tracking__card,
  .poostina-order-tracking__history {
    padding: 13px;
    border-radius: 17px;
  }

  .poostina-account-section-head {
    align-items: flex-start;
    margin-bottom: 11px;
  }

  .poostina-account-section-head h3 {
    font-size: 13px;
  }

  .poostina-account-latest-order__summary {
    gap: 13px;
    margin-bottom: 12px;
    padding: 10px;
  }

  .poostina-account-order-products {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .poostina-account-order-products__item {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .poostina-account-latest-order__meta {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .poostina-account-latest-order__meta span {
    min-height: 46px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .poostina-account-recent-list__grid,
  .poostina-account-quick-links,
  .poostina-order-tracking__history-grid {
    grid-template-columns: 1fr;
  }

  .poostina-account-order-card__bottom {
    flex-wrap: wrap;
  }

  .poostina-account-quick-links a {
    min-height: 74px;
  }

  /* Vertical timeline on mobile */
  .poostina-order-timeline,
  .poostina-order-timeline--compact {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 0;
  }

  .poostina-order-timeline__step {
    min-height: 66px;
    flex-direction: row;
    align-items: flex-start;
    text-align: right;
  }

  .poostina-order-timeline__step::before {
    top: -34px;
    right: 14px;
    width: 3px;
    height: 34px;
  }

  .poostina-order-timeline__step:first-child::before {
    display: none;
  }

  .poostina-order-timeline__marker {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
  }

  .poostina-order-timeline__copy {
    align-items: flex-start;
    padding: 4px 10px 0 0;
  }

  .poostina-order-timeline__copy strong {
    font-size: 10.5px;
  }

  .poostina-order-timeline__copy small,
  .poostina-order-timeline--compact .poostina-order-timeline__copy small {
    display: block;
    font-size: 8.5px;
  }

  .poostina-order-tracking__header {
    padding: 15px;
    border-radius: 17px;
  }

  .poostina-order-tracking__header h2 {
    font-size: 17px;
  }

  .poostina-order-tracking__selector > div {
    grid-template-columns: 1fr;
  }

  .poostina-order-tracking__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .poostina-order-tracking__summary > div {
    min-height: 56px;
  }

  .poostina-order-tracking__details {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .poostina-order-tracking__products article {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .poostina-order-tracking__product-image {
    width: 48px;
    height: 48px;
  }

  .poostina-order-tracking__product-total {
    grid-column: 2;
  }

  .woocommerce-account .u-columns.woocommerce-Addresses,
  .woocommerce-account #customer_login {
    grid-template-columns: 1fr;
  }

  .woocommerce-account #customer_login .u-column1,
  .woocommerce-account #customer_login .u-column2 {
    padding: 17px !important;
    border-radius: 18px;
  }

  /* Native order table becomes cards */
  .woocommerce-account table.shop_table thead {
    display: none;
  }

  .woocommerce-account table.shop_table,
  .woocommerce-account table.shop_table tbody,
  .woocommerce-account table.shop_table tr,
  .woocommerce-account table.shop_table td {
    display: block;
    width: 100% !important;
  }

  .woocommerce-account table.shop_table {
    border: 0 !important;
    background: transparent;
    overflow: visible;
  }

  .woocommerce-account table.shop_table tr {
    margin-bottom: 9px;
    padding: 11px;
    border: 1px solid #f0edf5;
    border-radius: 15px;
    background: #fff;
  }

  .woocommerce-account table.shop_table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0 !important;
    border-top: 1px solid #f3f0f6 !important;
    text-align: left !important;
  }

  .woocommerce-account table.shop_table td:first-child {
    border-top: 0 !important;
  }

  .woocommerce-account table.shop_table td::before {
    content: attr(data-title);
    color: var(--ps-account-muted);
    font-family: "peyda-bold", sans-serif;
    font-size: 9px;
  }
}

@media (max-width: 420px) {
  .poostina-account-dashboard__cards,
  .poostina-order-tracking__summary {
    grid-template-columns: 1fr;
  }

  .poostina-account-hero__actions {
    flex-direction: column;
  }

  .poostina-account-stat__copy small {
    display: block;
  }
}

/* =========================================================
   0.14.3 — readable typography, safer sticky offset, mobile rebuild
========================================================= */
body.poostina-account-page,
.poostina-account-widget {
  --ps-account-heading-size: 16px;
  --ps-account-text-size: 14px;
  --ps-account-sticky-offset: 112px;
}

body.admin-bar.poostina-account-page,
body.admin-bar .poostina-account-widget {
  --ps-account-sticky-offset: 144px;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  top: var(--ps-account-sticky-offset) !important;
}

body.poostina-account-page .woocommerce :is(h1,h2,h3,h4,h5,h6),
.poostina-account-widget .woocommerce :is(h1,h2,h3,h4,h5,h6),
body.poostina-account-page .poostina-account-section-head h3,
body.poostina-account-page .poostina-account-hero__copy h2,
body.poostina-account-page .poostina-order-tracking__header h2,
.poostina-account-widget .poostina-account-section-head h3,
.poostina-account-widget .poostina-account-hero__copy h2,
.poostina-account-widget .poostina-order-tracking__header h2 {
  font-size: var(--ps-account-heading-size) !important;
  line-height: 1.75 !important;
}

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

body.poostina-account-page .woocommerce :is(input,select,textarea,button),
.poostina-account-widget .woocommerce :is(input,select,textarea,button) {
  line-height: 1.65 !important;
}

.poostina-account-mobile-switcher {
  display: none;
}

@media (max-width: 767px) {
  body.poostina-account-page,
  .poostina-account-widget {
    --ps-account-heading-size: 14px;
    --ps-account-text-size: 12px;
    --ps-account-content-padding: 12px;
    --ps-account-layout-gap: 10px;
    --ps-account-radius: 18px;
    width: 100% !important;
    max-width: 100% !important;
  }

  html,
  body.poostina-account-page {
    max-width: 100%;
    overflow-x: hidden;
  }

  body.poostina-account-page .site-main,
  .poostina-account-widget {
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
  }

  body.poostina-account-page.logged-in .woocommerce,
  .poostina-account-widget .woocommerce {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    position: static !important;
    top: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: none !important;
    overflow: visible !important;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    padding: 10px !important;
    border-radius: 17px !important;
  }

  .woocommerce-account .woocommerce-MyAccount-content {
    padding: 12px !important;
    border-radius: 17px !important;
  }

  .poostina-account-mobile-switcher {
    display: grid !important;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
  }

  .poostina-account-mobile-switcher label {
    color: var(--ps-account-muted);
    font-family: "peyda-bold", sans-serif !important;
  }

  .poostina-account-mobile-switcher select {
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid #ebe7f0 !important;
    border-radius: 13px !important;
    background: #fff !important;
    color: var(--ps-account-text) !important;
    font-family: "peyda-bold", sans-serif !important;
    appearance: auto !important;
  }

  .woocommerce-MyAccount-navigation > ul {
    display: none !important;
  }

  .poostina-account-profile {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin: 0 !important;
    padding: 10px !important;
  }

  .poostina-account-profile__copy,
  .poostina-account-hero__copy,
  .poostina-account-latest-order__meta,
  .poostina-order-tracking__details,
  .poostina-order-tracking__products,
  .poostina-order-tracking__address,
  .poostina-account-order-card,
  .poostina-account-latest-order,
  .poostina-account-recent-list,
  .poostina-view-order-status,
  .poostina-order-tracking__card,
  .poostina-order-tracking__history {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .poostina-account-hero {
    display: grid !important;
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    gap: 14px !important;
    padding: 16px !important;
  }

  .poostina-account-hero__actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .poostina-account-hero__actions a {
    width: 100% !important;
    min-width: 0 !important;
  }

  .poostina-account-dashboard__cards,
  .poostina-account-recent-list__grid,
  .poostina-account-quick-links,
  .poostina-order-tracking__history-grid,
  .poostina-order-tracking__details,
  .woocommerce-account .u-columns.woocommerce-Addresses,
  .woocommerce-account #customer_login {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .poostina-account-stat {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    width: 100% !important;
    min-height: 78px !important;
  }

  .poostina-account-stat__copy small {
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  .poostina-account-latest-order__summary {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .poostina-account-order-products {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .poostina-account-latest-order__meta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .poostina-account-latest-order__meta span {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 44px !important;
  }

  .poostina-account-section-head,
  .poostina-account-order-card__top,
  .poostina-account-order-card__bottom,
  .poostina-order-tracking__header {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
  }

  .poostina-order-tracking__summary {
    grid-template-columns: 1fr !important;
  }

  .poostina-order-tracking__selector,
  .poostina-order-tracking__selector > div,
  .poostina-order-tracking__selector select,
  .poostina-order-tracking__selector button {
    width: 100% !important;
    max-width: 100% !important;
  }

  .poostina-order-tracking__products article {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    width: 100% !important;
  }

  .poostina-order-tracking__product-total {
    grid-column: 2 !important;
    justify-self: start !important;
  }

  .woocommerce-account table.shop_table,
  .woocommerce-account table.shop_table tbody,
  .woocommerce-account table.shop_table tr,
  .woocommerce-account table.shop_table td {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .woocommerce-account table.shop_table td {
    flex-wrap: wrap !important;
    text-align: right !important;
    overflow-wrap: anywhere;
  }

  .woocommerce-account form .form-row,
  .woocommerce-account form .form-row-first,
  .woocommerce-account form .form-row-last,
  .woocommerce-account form input,
  .woocommerce-account form select,
  .woocommerce-account form textarea,
  .woocommerce-account form button {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

body.poostina-account-page .woocommerce :is(strong,b),
.poostina-account-widget .woocommerce :is(strong,b) {
  font-size: var(--ps-account-text-size) !important;
}

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


/* =========================================================
   0.14.4 — real sticky clearance, solid colors, mobile account rebuild
========================================================= */
:root {
  --poostina-safe-sticky-top: 168px;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  top: var(--poostina-safe-sticky-top, 168px) !important;
  max-height: calc(100vh - var(--poostina-safe-sticky-top, 168px) - 16px);
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

/* Main colors are intentionally solid — no pink/purple gradients. */
.poostina-account-profile,
.woocommerce-MyAccount-navigation li.is-active a,
.poostina-order-tracking__header {
  background-image: none !important;
}

.poostina-account-profile,
.woocommerce-MyAccount-navigation li.is-active a,
.poostina-order-tracking__header {
  background-color: #fff6f9 !important;
}

.poostina-account-hero {
  border: 1px solid rgba(244, 61, 120, .16) !important;
  background: #fff5f8 !important;
  color: var(--ps-account-text) !important;
}

.poostina-account-hero::before,
.poostina-account-hero::after {
  display: none !important;
}

.poostina-account-hero :is(h1,h2,h3,strong,p,small) {
  color: var(--ps-account-text) !important;
}

.poostina-account-hero__actions a,
.poostina-order-tracking__selector button,
.poostina-order-tracking__view,
.woocommerce-account .woocommerce-button,
.woocommerce-account button.button,
.woocommerce-account input.button {
  background: var(--ps-account-pink) !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
}

.poostina-order-timeline__step.is-done::before,
.poostina-order-timeline__step.is-active::before {
  background: var(--ps-account-pink) !important;
}

.poostina-order-tracking__view:hover,
.poostina-order-tracking__selector button:hover,
.woocommerce-account .woocommerce-button:hover,
.woocommerce-account button.button:hover,
.woocommerce-account input.button:hover {
  background: #dd2f68 !important;
  color: #fff !important;
  transform: none !important;
}

/* Ensure every Woo endpoint has a visible icon box even before JS enhancement. */
.woocommerce-MyAccount-navigation li a .poostina-account-nav-icon {
  display: inline-flex !important;
}

@media (max-width: 767px) {
  body.poostina-account-page .site-main,
  body.poostina-account-page main#content,
  .elementor-widget-poostina-my-account,
  .elementor-widget-poostina-my-account > .elementor-widget-container,
  .poostina-account-widget,
  .poostina-account-widget .woocommerce,
  .woocommerce-account .woocommerce {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    transform: none !important;
    zoom: 1 !important;
  }

  body.poostina-account-page .site-main,
  .poostina-account-widget {
    padding-inline: 8px !important;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    padding: 9px !important;
  }

  .poostina-account-mobile-switcher {
    display: none !important;
  }

  .woocommerce-MyAccount-navigation > ul {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-flow: row nowrap !important;
    gap: 7px !important;
    margin: 8px 0 0 !important;
    padding: 1px 0 5px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .woocommerce-MyAccount-navigation > ul::-webkit-scrollbar {
    display: none;
  }

  .woocommerce-MyAccount-navigation > ul > li {
    display: block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    scroll-snap-align: start;
  }

  .woocommerce-MyAccount-navigation > ul > li > a {
    display: inline-flex !important;
    min-width: max-content !important;
    min-height: 42px !important;
    padding: 6px 10px !important;
    white-space: nowrap !important;
  }

  .woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 12px !important;
    overflow: hidden !important;
  }

  .poostina-account-profile {
    grid-template-columns: 44px minmax(0, 1fr) 32px !important;
    width: 100% !important;
  }

  .poostina-account-dashboard,
  .poostina-order-tracking,
  .poostina-order-tracking__card,
  .poostina-order-tracking__details,
  .poostina-order-tracking__products,
  .poostina-order-tracking__address,
  .poostina-account-latest-order,
  .poostina-account-recent-list,
  .poostina-view-order-status,
  .woocommerce-account form,
  .woocommerce-account fieldset,
  .woocommerce-account table,
  .woocommerce-account tbody,
  .woocommerce-account tr,
  .woocommerce-account td {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .poostina-order-tracking__header,
  .poostina-order-tracking__summary,
  .poostina-order-tracking__details,
  .poostina-account-dashboard__cards,
  .poostina-account-quick-links,
  .poostina-account-recent-list__grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .poostina-order-tracking__header {
    gap: 14px !important;
    padding: 14px !important;
  }

  .poostina-order-tracking__selector {
    width: 100% !important;
    flex: none !important;
  }

  .poostina-order-tracking__selector > div {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .poostina-order-tracking__products article {
    grid-template-columns: 52px minmax(0, 1fr) !important;
  }

  .poostina-order-tracking__product-total {
    grid-column: 2 !important;
    justify-self: start !important;
  }

  .poostina-account-widget :is(p,span,small,strong,b,a,button,label,td,th,address),
  body.poostina-account-page .woocommerce :is(p,span,small,strong,b,a,button,label,td,th,address) {
    overflow-wrap: anywhere;
    word-break: normal;
  }
}


/* =========================================================
   0.14.5 — scoped Elementor account layout + reliable mobile canvas
========================================================= */

/*
 * Never reset every Elementor container on My Account pages.
 * The previous broad selectors also reached the Elementor header and could
 * alter its transforms and widths.
 */
body.poostina-account-page .elementor-location-header,
body.poostina-account-page [data-elementor-type="header"],
body.poostina-account-page header.site-header {
  isolation: isolate;
}

@media (min-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-navigation {
    top: var(--poostina-safe-sticky-top, 168px) !important;
  }
}

@media (max-width: 767px) {
  html,
  body.poostina-account-page {
    width: 100%;
    max-width: 100%;
    overflow-x: clip !important;
  }

  body.poostina-account-page .site-main,
  body.poostina-account-page main#content,
  body.poostina-account-page .page-content,
  .elementor-widget-poostina-my-account,
  .elementor-widget-poostina-my-account > .elementor-widget-container,
  .poostina-account-widget {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }

  body.poostina-account-page .site-main,
  body.poostina-account-page main#content {
    padding-inline: 8px !important;
  }

  body.poostina-account-page .e-con:has(.elementor-widget-poostina-my-account),
  body.poostina-account-page .e-con-inner:has(.elementor-widget-poostina-my-account),
  body.poostina-account-page .elementor-section:has(.elementor-widget-poostina-my-account),
  body.poostina-account-page .elementor-container:has(.elementor-widget-poostina-my-account) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
  }

  .poostina-account-widget > .woocommerce,
  body.poostina-account-page.logged-in main .woocommerce {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    position: static !important;
    max-height: none !important;
    padding: 9px !important;
    overflow: visible !important;
  }

  .woocommerce-MyAccount-navigation > ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .woocommerce-MyAccount-navigation > ul > li {
    width: 100% !important;
    min-width: 0 !important;
  }

  .woocommerce-MyAccount-navigation > ul > li > a {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 6px 8px !important;
    white-space: normal !important;
    line-height: 1.55 !important;
  }

  .woocommerce-MyAccount-navigation li a::after {
    display: none !important;
  }

  .poostina-account-nav-icon {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
  }

  .woocommerce-account .woocommerce-MyAccount-content {
    padding: 10px !important;
    overflow: hidden !important;
  }

  .poostina-account-profile {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 32px !important;
    width: 100% !important;
  }

  .poostina-account-dashboard,
  .poostina-order-tracking,
  .poostina-account-dashboard > *,
  .poostina-order-tracking > *,
  .poostina-account-latest-order__summary,
  .poostina-account-latest-order__meta,
  .poostina-order-tracking__summary,
  .poostina-order-tracking__details,
  .poostina-order-tracking__products,
  .poostina-order-tracking__address {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .poostina-account-dashboard__cards,
  .poostina-account-quick-links,
  .poostina-account-recent-list__grid,
  .poostina-order-tracking__summary,
  .poostina-order-tracking__details,
  .poostina-order-tracking__history-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .poostina-account-hero,
  .poostina-order-tracking__header {
    padding: 14px !important;
  }

  .poostina-account-hero__actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .poostina-order-tracking__selector,
  .poostina-order-tracking__selector > div,
  .poostina-order-tracking__selector select,
  .poostina-order-tracking__selector button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .woocommerce-account :is(input, select, textarea, button, table, tbody, tr, td, th) {
    max-width: 100% !important;
  }
}

@media (max-width: 380px) {
  .woocommerce-MyAccount-navigation > ul {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* =========================================================
   0.14.7 — حالت خالی صفحه سفارش‌ها
========================================================= */
body.poostina-account-orders-page .woocommerce-MyAccount-content > .woocommerce-message--info,
body.poostina-account-orders-page .woocommerce-MyAccount-content > .woocommerce-info {
  display: flex !important;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid var(--ps-account-border) !important;
  border-radius: 20px !important;
  background: #fff !important;
  color: var(--ps-account-text) !important;
  font-family: "peyda-reg", Tahoma, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.9;
  box-shadow: 0 16px 42px rgba(50, 44, 72, .06) !important;
}

body.poostina-account-orders-page .woocommerce-MyAccount-content > .woocommerce-message--info::before,
body.poostina-account-orders-page .woocommerce-MyAccount-content > .woocommerce-info::before {
  position: static !important;
  display: inline-flex;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  margin: 0 !important;
  border-radius: 18px;
  background: var(--ps-account-soft-pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f43d78' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12H6L5 8Zm3 0V6a4 4 0 0 1 8 0v2M9 12h.01M15 12h.01'/%3E%3C/svg%3E") center / 30px 30px no-repeat !important;
  color: var(--ps-account-pink) !important;
  content: "" !important;
  box-shadow: inset 0 0 0 1px rgba(244, 61, 120, .13);
}

body.poostina-account-orders-page .woocommerce-MyAccount-content > .woocommerce-message--info .button,
body.poostina-account-orders-page .woocommerce-MyAccount-content > .woocommerce-info .button {
  order: 3;
  min-height: 44px;
  margin: 0 0 0 auto !important;
  padding: 10px 17px !important;
  border: 1px solid var(--ps-account-pink) !important;
  border-radius: 13px !important;
  background: var(--ps-account-pink) !important;
  color: #fff !important;
  font-family: "peyda-bold", "peyda-reg", sans-serif !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: none !important;
}

@media (max-width: 767px) {
  body.poostina-account-orders-page .woocommerce-MyAccount-content > .woocommerce-message--info,
  body.poostina-account-orders-page .woocommerce-MyAccount-content > .woocommerce-info {
    flex-wrap: wrap;
    align-items: center;
    min-height: 0;
    padding: 15px !important;
    border-radius: 18px !important;
    font-size: 12px !important;
  }

  body.poostina-account-orders-page .woocommerce-MyAccount-content > .woocommerce-message--info::before,
  body.poostina-account-orders-page .woocommerce-MyAccount-content > .woocommerce-info::before {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 16px;
    background-size: 26px 26px !important;
  }

  body.poostina-account-orders-page .woocommerce-MyAccount-content > .woocommerce-message--info .button,
  body.poostina-account-orders-page .woocommerce-MyAccount-content > .woocommerce-info .button {
    width: 100%;
    margin: 4px 0 0 !important;
    text-align: center;
  }
}

/* 0.15.29 — keep My Account sticky panels below the sticky site header */
body.poostina-account-page,
.poostina-account-widget {
  scroll-padding-top: calc(var(--poostina-safe-sticky-top, 168px) + 24px);
}
body.poostina-account-page .elementor-location-header,
body.poostina-account-page header.site-header,
body.poostina-account-page .site-header {
  z-index: 9999;
}
.woocommerce-account .woocommerce-MyAccount-navigation {
  z-index: 1 !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content,
.poostina-account-profile,
.poostina-account-dashboard-card,
.poostina-account-section {
  scroll-margin-top: calc(var(--poostina-safe-sticky-top, 168px) + var(--wp-admin--admin-bar--height, 0px) + 24px) !important;
}
@media (max-width: 767px) {
  .woocommerce-account .woocommerce-MyAccount-navigation {
    position: relative !important;
    top: auto !important;
    z-index: 1 !important;
    max-height: none !important;
  }
}

/* 0.15.30 — keep account cards/footer below sticky header */
body.poostina-account-page {
  scroll-padding-top: calc(var(--ps-account-sticky-top, 150px) + var(--wp-admin--admin-bar--height, 0px) + 24px);
}
body.poostina-account-page .elementor-location-header,
body.poostina-account-page [data-elementor-type="header"],
body.poostina-account-page header.site-header,
body.poostina-account-page #masthead,
body.poostina-account-page .elementor-location-header .elementor-sticky,
body.poostina-account-page [data-elementor-type="header"] .elementor-sticky,
body.poostina-account-page .elementor-location-header .elementor-sticky--active,
body.poostina-account-page [data-elementor-type="header"] .elementor-sticky--active {
  z-index: var(--pst-z-sticky, 1100) !important;
}
body.poostina-account-page .woocommerce-MyAccount-navigation {
  top: calc(var(--ps-account-sticky-top, 150px) + var(--wp-admin--admin-bar--height, 0px)) !important;
  z-index: 2 !important;
}
body.poostina-account-page .woocommerce-MyAccount-content,
body.poostina-account-page .poostina-account-dashboard,
body.poostina-account-page .poostina-account-dashboard-card,
body.poostina-account-page .poostina-account-section {
  position: relative;
  z-index: 1;
}
body.poostina-account-page .elementor-location-footer,
body.poostina-account-page footer,
body.poostina-account-page .poostina-footer {
  position: relative;
  z-index: 0 !important;
}
@media (max-width: 768px) {
  body.poostina-account-page { --ps-account-sticky-top: 96px; }
}
