/* Host page only: storefront chrome around the real plugin widgets. */

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Calculator stylesheet asks for IRANYekan; map it to the landing font. */
@font-face {
  font-family: IRANYekan;
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: IRANYekan;
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: IRANYekan;
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: IRANYekan;
  src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

html,
body {
  margin: 0;
  padding: 0;
  height: auto;
  min-height: 0;
  background: #e7eeeb;
  color: #16302c;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  direction: rtl;
}

body.is-admin {
  background: #f0f0f1;
}

* {
  box-sizing: border-box;
}

button,
input,
select {
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.preview-pad {
  padding: 24px;
}

.preview-pad--admin {
	padding: 0;
}

.preview-editor-wrap {
	background: #f0f0f1;
}

.preview-editor__crumb {
	margin: 0 0 12px;
	color: #646970;
	font-size: 12px;
}

.preview-editor {
	background: #fff;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.preview-editor__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	background: #f6f7f7;
	border-bottom: 1px solid #c3c4c7;
}

.preview-editor #ghestihub_calculator_product_data {
	float: none;
	width: auto;
}

.preview-editor__tabs span {
	padding: 10px 16px;
	color: #50575e;
}

.preview-editor__tabs .is-on {
	background: #fff;
	color: #1d2327;
	font-weight: 700;
	box-shadow: inset 0 -2px 0 #0f766e;
}

.ghestihub-calc__table tr.is-best td {
	background: #e7f4f1;
}

.ghestihub-calc-fee {
	width: 72px;
	padding: 4px 6px;
}

/* WooCommerce single product (Storefront-like) */
.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(180px, 38%) minmax(0, 1fr);
  gap: 2em;
  align-items: start;
}

.woocommerce div.product .woocommerce-product-gallery {
  position: relative;
}

.woocommerce div.product .woocommerce-product-gallery img {
  display: block;
  width: 100%;
  border: 1px solid #e6e6e6;
  background: #f8f8f8;
}

.woocommerce div.product .product_title {
  margin: 0 0 0.4em;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #333;
}

.woocommerce div.product p.price {
  margin: 0 0 1em;
  font-size: 1.25em;
  font-weight: 700;
  color: #77a464;
}

.woocommerce div.product p.price del {
  opacity: 0.6;
  margin-inline-end: 0.4em;
  font-weight: 400;
  font-size: 0.8em;
  color: #767676;
}

.woocommerce-Price-amount {
  font-weight: 700;
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 1.5em 0 0;
}

.woocommerce .quantity .qty {
  width: 3.631em;
  height: 36px;
  padding: 0 4px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  text-align: center;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-block;
  padding: 0.618em 1.2em;
  border: 0;
  border-radius: 0;
  background: #eeeeee;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.woocommerce button.button.alt,
.woocommerce a.button.alt {
  background-color: #a46497;
  color: #fff;
}

.woocommerce button.button.alt:hover {
  background-color: #935386;
}

/* WooCommerce classic checkout payment */
#payment {
  background: #ebe9eb;
  border-radius: 5px;
}

#payment ul.payment_methods {
  margin: 0;
  padding: 1em;
  list-style: none;
  border-bottom: 1px solid #d3ced2;
}

#payment ul.payment_methods li {
  margin: 0;
  padding: 0.4em 0;
  line-height: 1.6;
  list-style: none;
}

#payment ul.payment_methods li input {
  margin-inline-end: 0.5em;
  vertical-align: middle;
}

#payment ul.payment_methods li label {
  display: inline;
  cursor: pointer;
  font-weight: 700;
  color: #333;
}

#payment div.payment_box {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: 1em;
  margin: 1em 0 0;
  font-size: 0.92em;
  border-radius: 2px;
  line-height: 1.5;
  background-color: #dfdcde;
  color: #515151;
}

#payment div.payment_box::before {
  content: "";
  position: absolute;
  top: -0.7em;
  right: 1.2em;
  border: 1em solid #dfdcde;
  border-top-width: 0;
  border-inline-end-color: transparent;
  border-inline-start-color: transparent;
}

#payment .place-order {
  padding: 1em;
}

#payment #place_order,
#payment .button.alt {
  width: 100%;
  background: #a46497;
  color: #fff;
  padding: 0.8em 1em;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

.woocommerce-checkout-review-order {
  margin-top: 1.5em;
  border: 1px solid #e6e6e6;
}

.woocommerce-checkout-review-order table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-checkout-review-order th,
.woocommerce-checkout-review-order td {
  padding: 10px 12px;
  border-bottom: 1px solid #e6e6e6;
  text-align: right;
}

.woocommerce-checkout-review-order tfoot .order-total th,
.woocommerce-checkout-review-order tfoot .order-total td {
  font-size: 1.1em;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: 24px;
}

.checkout-layout h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

/* WordPress admin bits used by plugin wrap */
.wp-heading-inline {
  display: block;
  margin: 0 0 4px;
  padding: 0;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.3;
  color: #1d2327;
}

.wp-header-end {
  display: none;
}

.ghestihub-wrap {
  margin: 10px 20px 0 20px;
  max-width: 1080px;
}

.ghestihub-tabs__item,
.ghestihub-range__item,
.ghestihub-dashboard__toolbar .button {
  appearance: none;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
}

.ghestihub-dashboard__toolbar .button {
  padding: 4px 12px;
  border: 1px solid #dbe7e4;
  border-radius: 4px;
  background: #f6f7f7;
  color: #1d2327;
}

.ghestihub-gateway__links a {
  color: #2271b1;
  text-decoration: none;
  pointer-events: none;
}

.ghestihub-el-product__cart .single_add_to_cart_button {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

/* WordPress form/table chrome used on the fees screen */
.regular-text {
  width: 25em;
  max-width: 100%;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  background: #fff;
  color: #2c3338;
}

.description {
  color: #646970;
  font-size: 13px;
  margin: 8px 0 0;
}

code {
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  background: #f0f0f1;
  padding: 2px 6px;
  border-radius: 3px;
}

table.widefat {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  color: #2c3338;
  font-size: 13px;
}

table.widefat thead th {
  text-align: right;
  border-bottom: 1px solid #c3c4c7;
}

table.striped tbody tr:nth-child(odd) {
  background: #f6f7f7;
}

.ghestihub-fee-table input,
.ghestihub-fee-table select {
  width: 100%;
  max-width: 100%;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  background: #fff;
  color: #2c3338;
  font: inherit;
}

.ghestihub-fee-table .description {
  color: #646970;
}

.button {
  display: inline-block;
  padding: 4px 12px;
  min-height: 30px;
  border: 1px solid #dbe7e4;
  border-radius: 3px;
  background: #f6f7f7;
  color: #1d2327;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.button-primary,
.ghestihub-actions .button-primary {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
}

.ghestihub-guide-box__content ul {
  list-style: disc;
  padding: 0 16px 0 0;
}

body.is-admin {
  background: #f0f0f1;
}

.store,
.paydesk {
  padding: 18px;
  color: #16302c;
  font-family: Vazirmatn, Tahoma, sans-serif;
}

.store-bar,
.paydesk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.store-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.store-brand strong,
.store-brand small {
  display: block;
}

.store-brand strong {
  font-size: 15px;
  line-height: 1.3;
}

.store-brand small {
  color: #5d736e;
  font-size: 12px;
}

.store-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(160deg, #14b8a6, #0f766e);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.28);
}

.store-crumb {
  margin: 0;
  color: #5d736e;
  font-size: 12px;
}

.store-crumb span {
  margin: 0 6px;
  opacity: 0.55;
}

.store-sheet {
  display: grid;
  grid-template-columns: minmax(220px, 0.86fr) minmax(0, 1.14fr);
  gap: 22px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(45, 212, 191, 0.16), transparent 55%),
    #fff;
  box-shadow: 0 18px 40px rgba(16, 48, 44, 0.08);
}

.store-gallery {
  position: relative;
}

.store-gallery img {
  display: block;
  width: 100%;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7fbfa, #e7f3f0);
  border: 1px solid #d7ebe6;
}

.store-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.store-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3fbf9;
  border: 1px solid #d7ebe6;
  color: #115e59;
  font-size: 12px;
  font-weight: 600;
}

.store-kicker {
  margin: 0 0 6px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}

.store-buy h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 800;
  color: #10211e;
}

.store-rate {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  color: #5d736e;
  font-size: 13px;
}

.store-rate b {
  color: #b45309;
  letter-spacing: 1px;
}

.store-price {
  margin: 12px 0 0;
  font-size: 28px;
  font-weight: 800;
  color: #0f766e;
  line-height: 1.2;
}

.store-price .woocommerce-Price-currencySymbol {
  font-size: 14px;
  font-weight: 700;
  color: #115e59;
}

.store-lead {
  margin: 8px 0 0;
  color: #3d524e;
  font-size: 14px;
}

.store-cart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.store-cart .quantity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-cart .quantity label {
  font-size: 12px;
  color: #5d736e;
  font-weight: 700;
}

.store-cart .qty {
  width: 72px;
  height: 48px;
  border: 1px solid #cde5df;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  font: inherit;
  font-weight: 700;
  color: #10211e;
}

.store-cart button {
  flex: 1;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #14b8a6, #0f766e);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.22);
}

.paydesk-steps {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.paydesk-steps li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #5d736e;
  font-size: 12px;
  font-weight: 700;
}

.paydesk-steps li.is-on {
  background: #0f766e;
  color: #fff;
}

.paydesk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.paydesk-card,
.paydesk-summary {
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow: 0 14px 32px rgba(16, 48, 44, 0.06);
}

.paydesk-card + .paydesk-card {
  margin-top: 14px;
}

.paydesk-card h2,
.paydesk-summary h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
}

.paydesk-note {
  margin: -4px 0 12px;
  color: #5d736e;
  font-size: 13px;
}

.paydesk-person {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.paydesk-person div {
  padding: 12px;
  border-radius: 16px;
  background: #f4faf8;
  border: 1px solid #d7ebe6;
}

.paydesk-person span {
  display: block;
  color: #5d736e;
  font-size: 12px;
}

.paydesk-person strong {
  display: block;
  margin-top: 2px;
}

.paydesk #payment {
  background: transparent;
  border-radius: 0;
}

.paydesk #payment ul.payment_methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.paydesk #payment ul.payment_methods li {
  list-style: none;
}

.paydesk #payment ul.payment_methods li label {
  cursor: pointer;
}

.paydesk #payment div.payment_box::before {
  display: none;
}

.paydesk #payment .place-order {
  padding: 14px 0 0;
}

.paydesk #payment #place_order,
.paydesk #payment .button.alt {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #14b8a6, #0f766e);
  color: #fff;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.paydesk-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.paydesk-item img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  background: #f4faf8;
  border: 1px solid #d7ebe6;
}

.paydesk-item strong,
.paydesk-item span {
  display: block;
}

.paydesk-item span {
  color: #5d736e;
  font-size: 12px;
}

.paydesk-summary dl {
  margin: 14px 0 0;
}

.paydesk-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px dashed #d7ebe6;
}

.paydesk-summary dt {
  color: #5d736e;
}

.paydesk-summary dd {
  margin: 0;
  font-weight: 700;
}

.paydesk-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #10211e;
  color: #fff;
}

.paydesk-total .woocommerce-Price-amount {
  font-size: 20px;
  color: #5eead4;
}

.ghestihub-wrap--wide {
  max-width: 1240px;
}

.ghestihub-abandoned .ghestihub-field input[type="text"],
.ghestihub-abandoned .ghestihub-field input[type="password"],
.ghestihub-abandoned .ghestihub-field input[type="tel"],
.ghestihub-abandoned .ghestihub-field textarea,
.ghestihub-abandoned .ghestihub-field select {
  width: 100%;
  max-width: 520px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #c3c4c7;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.ghestihub-mode-grid,
.ghestihub-tests,
.ghestihub-abandoned-stats {
  display: grid;
  gap: 12px;
}

.ghestihub-mode-grid,
.ghestihub-tests {
  grid-template-columns: 1fr 1fr;
}

.ghestihub-abandoned-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.ghestihub-mode {
  display: block;
  padding: 14px;
  border: 1px solid #dbe7e4;
  border-radius: 14px;
  cursor: pointer;
  background: #fff;
}

.ghestihub-mode input {
  margin-left: 8px;
}

.ghestihub-mode strong,
.ghestihub-mode em {
  display: block;
}

.ghestihub-mode em {
  margin-top: 4px;
  color: #667874;
  font-style: normal;
  font-size: 12px;
}

.ghestihub-mode.is-selected {
  border-color: #0f766e;
  background: #f7fbfa;
}

.ghestihub-split {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 360px;
}

.ghestihub-split select,
.ghestihub-abandoned .ghestihub-split input {
  min-height: 36px;
  border: 1px solid #c3c4c7;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.ghestihub-abandoned-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.ghestihub-abandoned-filters button {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #dbe7e4;
  background: #fff;
  color: #134e4a;
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.ghestihub-abandoned-filters button.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.ghestihub-abandoned-table-wrap {
  overflow-x: auto;
}

.ghestihub-muted {
  display: block;
  margin-top: 4px;
  color: #667874;
  font-size: 12px;
}

.ghestihub-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.ghestihub-status--wait { background: #fff7ed; color: #9a3412; }
.ghestihub-status--ready { background: #ecfdf5; color: #047857; }
.ghestihub-status--nophone { background: #fef2f2; color: #b91c1c; }
.ghestihub-status--sent { background: #e7f4f1; color: #0f766e; }
.ghestihub-status--done { background: #eef2ff; color: #3730a3; }

.ghestihub-phone {
  direction: ltr;
  unicode-bidi: isolate;
}

.ghestihub-tests {
  margin-top: 16px;
}

.ghestihub-sms-result {
  margin: 10px 0 0;
  color: #0f766e;
  font-weight: 700;
}

@media (max-width: 782px) {
  .woocommerce div.product,
  .checkout-layout,
  .store-sheet,
  .paydesk-grid,
  .paydesk-person,
  .ghestihub-mode-grid,
  .ghestihub-tests,
  .ghestihub-abandoned-stats {
    grid-template-columns: 1fr;
  }

  .store,
  .paydesk {
    padding: 12px;
  }

  .store-bar,
  .paydesk-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-buy h1,
  .store-price {
    font-size: 22px;
  }

  .preview-pad {
    padding: 16px;
  }

  .ghestihub-wrap {
    margin: 8px 12px 0;
  }
}
