/*
 * Satyargold gram and coin sales: front end, design 1 («ساده و روشن»).
 * Everything is scoped under .sg-gram (shortcodes) or the homepage section
 * classes (.sg-hero, .sg-section, .sg-steps, .sg-why, .sg-faq).
 * Gold #C9A227 is never a text colour on white; deep gold #7A5A12 is (6.4:1).
 */

/* ------------------------------------------------------------------ Tokens */
.sg-gram,
.sg-hero,
.sg-section,
.sg-steps,
.sg-why,
.sg-faq {
	--sgg-white: #fff;
	--sgg-band: #f6f5f2;
	--sgg-line: #e6e2d8;
	--sgg-chip-line: #cfc8b6;
	--sgg-field: #8f8878;
	--sgg-gold: #c9a227;
	--sgg-gold-hover: #b8921f;
	--sgg-deep: #7a5a12;
	--sgg-ink: #1a1a1a;
	--sgg-text: #4a463e;
	--sgg-muted: #6b665b;
	--sgg-picked: #fbf6e3;
	--sgg-error: #a4281c;
	--sgg-error-bg: #fdf1ef;
	--sgg-disabled-bg: #ece7d8;
	--sgg-disabled-ink: #5c574d;
	--sgg-r-card: 16px;
	--sgg-r-ctl: 12px;
	--sgg-font: var(--sg-font, "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif);
}

/* -------------------------------------------------------------------- Base */
.sg-gram {
	box-sizing: border-box;
	font-family: var(--sgg-font);
	font-size: 17px;
	line-height: 1.8;
	color: var(--sgg-ink);
	text-align: start;
}

.sg-gram *,
.sg-gram *::before,
.sg-gram *::after {
	box-sizing: inherit;
}

.sg-gram [hidden] {
	display: none !important;
}

.sg-gram button,
.sg-gram input,
.sg-gram select,
.sg-gram textarea {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
}

.sg-gram .sg-ico {
	display: block;
	flex: 0 0 auto;
	color: var(--sgg-deep);
}

.sg-gram .sg-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.sg-gram :focus-visible {
	outline: 3px solid var(--sgg-deep);
	outline-offset: 2px;
}

/* Text fields: themes (Astra, WooCommerce) switch the outline off on :focus with selectors that are stronger than
   the rule above, so the ring of these fields is made to win. A keyboard user must always see where they are. */
.sg-gram .sg-input:focus-visible,
.sg-gram textarea.sg-input:focus-visible,
.sg-gram .sg-stepper__input:focus-visible {
	outline: 3px solid var(--sgg-deep) !important;
	outline-offset: 2px !important;
}

.sg-gram .sg-stepper__input:focus-visible {
	outline-offset: -5px !important;
}

/* A field with an error that has the focus: red border, gold ring and a soft red halo. */
.sg-gram .sg-input[aria-invalid="true"]:focus-visible {
	box-shadow: 0 0 0 3px var(--sgg-error-bg) !important;
}

/* ---------------------------------------------------------- Calculator card */
.sg-calc {
	width: 100%;
	min-width: 0;
	background: var(--sgg-white);
	border: 1px solid var(--sgg-line);
	border-radius: var(--sgg-r-card);
	padding: 20px 16px;
}

.sg-calc__view,
.sg-calc__panel {
	display: flex;
	flex-direction: column;
	gap: 22px;
	min-width: 0;
}

.sg-gram .sg-calc__title {
	margin: 0;
	font-family: inherit;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.5;
	color: var(--sgg-ink);
	text-wrap: balance;
}

.sg-calc__title:focus {
	outline: none;
}

.sg-calc__title:focus-visible {
	outline: 3px solid var(--sgg-deep);
	outline-offset: 4px;
	border-radius: 4px;
}

.sg-gram .sg-calc__empty {
	margin: 0;
	padding: 16px;
	background: var(--sgg-band);
	border-radius: var(--sgg-r-ctl);
	color: var(--sgg-ink);
	font-size: 17px;
	font-weight: 600;
}

/* Segmented control: each half grows from its own label width. */
.sg-seg {
	display: flex;
	gap: 4px;
	padding: 4px;
	background: var(--sgg-band);
	border: 1px solid var(--sgg-line);
	border-radius: var(--sgg-r-ctl);
}

.sg-gram .sg-seg__btn,
.sg-gram .sg-seg__btn:hover,
.sg-gram .sg-seg__btn:focus {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 6px 8px;
	border: 1px solid transparent;
	border-radius: 9px;
	background: transparent;
	color: var(--sgg-text);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
}

.sg-gram .sg-seg__btn:hover {
	color: var(--sgg-ink);
	background: rgba(255, 255, 255, 0.6);
}

.sg-gram .sg-seg__btn[aria-pressed="true"],
.sg-gram .sg-seg__btn[aria-pressed="true"]:hover,
.sg-gram .sg-seg__btn[aria-pressed="true"]:focus {
	background: var(--sgg-white);
	border-color: var(--sgg-deep);
	color: var(--sgg-ink);
	font-weight: 800;
	box-shadow: 0 1px 2px rgba(26, 26, 26, 0.08);
}

/* Fields */
.sg-field {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.sg-gram .sg-label {
	display: block;
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--sgg-ink);
}

.sg-gram .sg-hint {
	margin: -4px 0 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--sgg-muted);
}

/* Chips */
.sg-chips {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(104px, 100%), 1fr));
	gap: 8px;
}

.sg-chips--qty {
	grid-template-columns: repeat(auto-fit, minmax(min(72px, 100%), 1fr));
}

.sg-gram .sg-chip,
.sg-gram .sg-chip:focus {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 6px 10px;
	border: 1px solid var(--sgg-field);
	border-radius: var(--sgg-r-ctl);
	background: var(--sgg-white);
	color: var(--sgg-ink);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sg-gram .sg-chip:hover {
	background: var(--sgg-band);
	border-color: var(--sgg-deep);
	color: var(--sgg-ink);
}

.sg-gram .sg-chip[aria-pressed="true"],
.sg-gram .sg-chip[aria-pressed="true"]:hover,
.sg-gram .sg-chip[aria-pressed="true"]:focus {
	background: var(--sgg-picked);
	border: 2px solid var(--sgg-deep);
	padding: 5px 9px;
	font-weight: 800;
}

.sg-gram .sg-chip--city {
	min-height: 52px;
	font-size: 17px;
}

.sg-chip[aria-pressed="false"] .sg-ico--check,
.sg-coin[aria-pressed="false"] .sg-ico--check,
.sg-rate[aria-pressed="false"] .sg-ico--check {
	display: none;
}

.sg-chip__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.35;
	min-width: 0;
}

.sg-chip__sub {
	font-size: 14px;
	font-weight: 500;
	color: var(--sgg-muted);
}

/* Stepper */
.sg-stepper {
	display: flex;
	align-items: stretch;
	height: 56px;
	border: 1px solid var(--sgg-field);
	border-radius: var(--sgg-r-ctl);
	background: var(--sgg-white);
}

.sg-gram .sg-stepper__btn,
.sg-gram .sg-stepper__btn:focus {
	flex: 0 0 56px;
	width: 56px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--sgg-white);
	color: var(--sgg-ink);
	font-size: 30px;
	font-weight: 500;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
}

.sg-gram .sg-stepper__btn:first-child {
	border-inline-end: 1px solid var(--sgg-line);
	border-start-start-radius: 11px;
	border-end-start-radius: 11px;
}

.sg-gram .sg-stepper__btn:last-child {
	border-inline-start: 1px solid var(--sgg-line);
	border-start-end-radius: 11px;
	border-end-end-radius: 11px;
}

.sg-gram .sg-stepper__btn:hover {
	background: var(--sgg-band);
	color: var(--sgg-ink);
}

.sg-gram .sg-stepper__btn:focus-visible {
	outline-offset: -4px;
}

.sg-gram .sg-stepper__input,
.sg-gram .sg-stepper__input:focus {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0 8px;
	border: 0;
	border-radius: 0;
	background: var(--sgg-white);
	color: var(--sgg-ink);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.4;
	text-align: center;
	box-shadow: none;
}

.sg-gram .sg-stepper__input:focus,
.sg-gram .sg-stepper__input:focus-visible {
	outline: 3px solid var(--sgg-deep);
	outline-offset: -5px;
}

/* Coin cards */
.sg-coins {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
	gap: 8px;
}

.sg-gram .sg-coin,
.sg-gram .sg-coin:focus {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding-block: 12px;
	padding-inline: 14px 40px;
	border: 1px solid var(--sgg-field);
	border-radius: var(--sgg-r-ctl);
	background: var(--sgg-white);
	color: var(--sgg-ink);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
	text-align: start;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
}

.sg-gram .sg-coin:hover {
	background: var(--sgg-band);
	border-color: var(--sgg-deep);
	color: var(--sgg-ink);
}

.sg-gram .sg-coin[aria-pressed="true"],
.sg-gram .sg-coin[aria-pressed="true"]:hover,
.sg-gram .sg-coin[aria-pressed="true"]:focus {
	background: var(--sgg-picked);
	border: 2px solid var(--sgg-deep);
	padding-block: 11px;
	padding-inline: 13px 39px;
}

.sg-coin .sg-ico--check {
	position: absolute;
	inset-inline-end: 12px;
	top: 14px;
}

.sg-coin__name {
	font-weight: 800;
	font-size: 16px;
}

.sg-coin__note,
.sg-coin__meta {
	font-size: 14px;
	color: var(--sgg-muted);
}

.sg-coin__price {
	margin-top: 4px;
	font-size: 15px;
	color: var(--sgg-text);
}

.sg-coin__value {
	font-weight: 800;
	color: var(--sgg-ink);
}

.sg-coin__closed {
	margin-top: 4px;
	font-size: 15px;
	font-weight: 600;
	color: var(--sgg-muted);
}

/* Outputs */
.sg-out {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px;
	background: var(--sgg-band);
	border-radius: var(--sgg-r-ctl);
}

.sg-out__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 2px 12px;
}

.sg-out__label {
	font-size: 16px;
	line-height: 1.7;
	color: var(--sgg-text);
}

.sg-out__rate,
.sg-out__big {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 8px;
	min-width: 0;
}

.sg-out__num {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.5;
	color: var(--sgg-ink);
}

.sg-out__cur {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--sgg-deep);
}

.sg-out__big .sg-out__cur {
	font-size: 20px;
}

.sg-out__sep {
	height: 1px;
	background: var(--sgg-line);
}

.sg-out__total {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

/* The script steps the size down until the number fits on one line. */
.sg-out__bignum {
	max-width: 100%;
	font-size: min(44px, 11vw);
	font-weight: 800;
	line-height: 1.3;
	color: var(--sgg-ink);
	white-space: nowrap;
}

.sg-out__bignum.is-long {
	font-size: min(36px, 9vw);
}

.sg-out__bignum.is-xlong {
	font-size: min(30px, 7.5vw);
}

.sg-out__bignum.is-xxlong {
	font-size: min(24px, 6vw);
}

.sg-out__bignum.is-wrap {
	white-space: normal;
	overflow-wrap: anywhere;
}

.sg-gram .sg-out__closed {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.8;
	color: var(--sgg-ink);
}

.sg-gram .sg-out__line {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	font-size: 17px;
	line-height: 1.7;
	color: var(--sgg-ink);
}

.sg-out__line .sg-ico {
	margin-top: 3px;
}

/* Buttons */
.sg-gram .sg-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 8px 20px;
	border-radius: var(--sgg-r-ctl);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.sg-gram .sg-btn--primary,
.sg-gram .sg-btn--primary:focus {
	border: 0;
	background: var(--sgg-gold);
	color: var(--sgg-ink);
}

.sg-gram .sg-btn--primary:hover {
	background: var(--sgg-gold-hover);
	color: var(--sgg-ink);
}

.sg-gram .sg-btn--primary:disabled,
.sg-gram .sg-btn--primary:disabled:hover,
.sg-gram .sg-btn--primary[aria-busy="true"] {
	background: var(--sgg-disabled-bg);
	color: var(--sgg-disabled-ink);
	cursor: not-allowed;
}

.sg-gram .sg-btn--ghost,
.sg-gram .sg-btn--ghost:focus {
	min-height: 48px;
	border: 1px solid var(--sgg-deep);
	background: var(--sgg-white);
	color: var(--sgg-deep);
	font-size: 17px;
	font-weight: 700;
}

.sg-gram .sg-btn--ghost:hover {
	background: var(--sgg-picked);
	color: var(--sgg-ink);
}

.sg-calc__cta {
	display: flex;
	flex-direction: column;
}

.sg-gram .sg-msg {
	margin: 0;
	font-size: 16px;
	line-height: 1.8;
	color: var(--sgg-text);
}

.sg-gram .sg-msg:not(:empty) {
	margin-top: 10px;
}

.sg-gram .sg-msg.is-error {
	color: var(--sgg-error);
	font-weight: 600;
}

/* Empty, it must not add a second gap between the fields and the buttons. */
.sg-form [data-sg="submit-msg"]:empty {
	margin: -8px 0;
}

.sg-gram .sg-msg:focus {
	outline: none;
}

.sg-gram .sg-msg:focus-visible {
	outline: 3px solid var(--sgg-deep);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Order step */
.sg-gram .sg-summary {
	display: grid;
	grid-template-columns: minmax(0, auto) minmax(0, 1fr);
	gap: 8px 16px;
	margin: 0;
	padding: 16px;
	background: var(--sgg-band);
	border-radius: var(--sgg-r-ctl);
}

.sg-gram .sg-summary dt {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	color: var(--sgg-text);
}

.sg-gram .sg-summary dd {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--sgg-ink);
	overflow-wrap: anywhere;
}

.sg-gram .sg-summary .is-total {
	font-size: 22px;
	font-weight: 800;
}

.sg-gram .sg-note,
.sg-gram .sg-form__intro {
	margin: 0;
	font-size: 16px;
	line-height: 1.8;
	color: var(--sgg-text);
}

.sg-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
}

.sg-gram .sg-form__alert {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.8;
	color: var(--sgg-error);
}

.sg-gram .sg-form__alert:not(:empty) {
	padding: 12px 14px;
	border: 1px solid var(--sgg-error);
	border-radius: var(--sgg-r-ctl);
	background: var(--sgg-error-bg);
}

.sg-gram .sg-form__alert:focus {
	outline: none;
}

/* Empty, it must not add a gap of its own between the title and the summary. */
.sg-gram .sg-form__alert:empty {
	margin: -11px 0;
	padding: 0;
	border: 0;
}

.sg-fld {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.sg-gram .sg-input,
.sg-gram .sg-input:focus {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--sgg-field);
	border-radius: var(--sgg-r-ctl);
	background: var(--sgg-white);
	color: var(--sgg-ink);
	font-size: 17px;
	line-height: 1.5;
	box-shadow: none;
}

.sg-gram .sg-input:focus {
	border-color: var(--sgg-deep);
}

.sg-gram .sg-input--ltr {
	text-align: end;
}

.sg-gram textarea.sg-input {
	min-height: 96px;
	resize: vertical;
}

.sg-gram .sg-input[aria-invalid="true"] {
	border: 2px solid var(--sgg-error);
	padding: 9px 13px;
}

.sg-gram .sg-req {
	color: var(--sgg-error);
}

.sg-gram .sg-err {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.7;
	color: var(--sgg-error);
}

.sg-gram .sg-err:empty {
	display: none;
}

.sg-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.sg-gram .sg-check input[type="checkbox"] {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	margin: 6px 0 0;
	accent-color: var(--sgg-deep);
	cursor: pointer;
}

.sg-gram .sg-check label {
	min-height: 44px;
	padding-top: 4px;
	font-size: 16px;
	line-height: 1.8;
	cursor: pointer;
}

.sg-gram .sg-check a {
	color: var(--sgg-deep);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.sg-gram .sg-hp {
	position: absolute !important;
	inset-inline-start: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sg-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Confirmation */
.sg-done {
	align-items: flex-start;
}

.sg-done__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 1.5px solid var(--sgg-deep);
	border-radius: 999px;
	background: var(--sgg-picked);
}

.sg-gram .sg-done__code {
	margin: 0;
	font-size: 18px;
	line-height: 1.8;
}

.sg-done__code strong {
	font-size: 24px;
	font-weight: 800;
}

.sg-gram .sg-done__note {
	margin: 0;
	font-size: 17px;
	line-height: 1.9;
	color: var(--sgg-text);
}

.sg-done .sg-btn {
	width: auto;
	min-width: 200px;
}

/* -------------------------------------------------------- Per-gram strip */
.sg-rates__grid,
.sg-pickup__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 16px;
}

.sg-gram .sg-rate,
.sg-gram .sg-rate:focus {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 20px;
	border: 1px solid var(--sgg-field);
	border-radius: var(--sgg-r-card);
	background: var(--sgg-white);
	color: var(--sgg-ink);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	text-align: start;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
}

.sg-gram .sg-rate:hover {
	border-color: var(--sgg-deep);
	background: var(--sgg-white);
	color: var(--sgg-ink);
}

.sg-gram .sg-rate[aria-pressed="true"],
.sg-gram .sg-rate[aria-pressed="true"]:hover,
.sg-gram .sg-rate[aria-pressed="true"]:focus {
	background: var(--sgg-picked);
	border-color: var(--sgg-deep);
	box-shadow: inset 0 0 0 1px var(--sgg-deep);
}

.sg-rate__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.sg-rate__head .sg-ico--check {
	width: 22px;
	height: 22px;
}

.sg-rate__title,
.sg-rate__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sg-rate__name {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.5;
}

.sg-rate__country,
.sg-rate__label,
.sg-rate__time {
	font-size: 16px;
	line-height: 1.6;
	color: var(--sgg-muted);
}

.sg-rate__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 8px;
}

.sg-rate__value {
	font-size: 28px;
	font-weight: 800;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.sg-rate__cur {
	font-size: 16px;
	font-weight: 700;
	color: var(--sgg-deep);
}

.sg-rate__sep {
	display: block;
	height: 1px;
	background: var(--sgg-line);
}

.sg-rate__closed,
.sg-rate__note {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--sgg-ink);
}

.sg-gram .sg-rates__empty,
.sg-gram .sg-pickup__empty,
.sg-gram .sg-ctable__empty {
	margin: 0;
	color: var(--sgg-text);
}

/* ------------------------------------------------------------ Coin prices */
.sg-ctable-wrap {
	display: none;
}

.sg-ccards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 720px) {
	.sg-ctable-wrap {
		display: block;
		overflow-x: auto;
		border: 1px solid var(--sgg-line);
		border-radius: var(--sgg-r-card);
		background: var(--sgg-white);
	}

	.sg-ccards {
		display: none;
	}
}

.sg-gram .sg-ctable {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 1.6;
	background: transparent;
}

.sg-gram .sg-ctable th,
.sg-gram .sg-ctable td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--sgg-line);
	background: transparent;
	color: var(--sgg-ink);
	text-align: start;
	vertical-align: middle;
}

.sg-gram .sg-ctable thead th {
	background: var(--sgg-band);
	font-weight: 800;
	vertical-align: bottom;
}

.sg-gram .sg-ctable tbody tr:last-child > * {
	border-bottom: 0;
}

.sg-gram .sg-ctable tbody th {
	font-weight: 700;
}

.sg-ctable__city,
.sg-ctable__coin {
	display: block;
}

.sg-ctable__city {
	font-size: 17px;
}

.sg-ctable__time,
.sg-ctable__meta {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: var(--sgg-muted);
}

.sg-gram .sg-cell,
.sg-gram .sg-cell:focus,
.sg-gram .sg-crow,
.sg-gram .sg-crow:focus {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 6px;
	min-height: 44px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: transparent;
	color: var(--sgg-ink);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.5;
	text-align: start;
	text-decoration: none;
	box-shadow: none;
}

.sg-gram button.sg-cell,
.sg-gram button.sg-crow {
	cursor: pointer;
}

.sg-gram button.sg-cell:hover,
.sg-gram button.sg-crow:hover {
	border-color: var(--sgg-deep);
	background: var(--sgg-white);
	color: var(--sgg-ink);
}

.sg-gram .sg-cell[aria-pressed="true"],
.sg-gram .sg-crow[aria-pressed="true"] {
	border-color: var(--sgg-deep);
	background: var(--sgg-picked);
}

.sg-cell__cur {
	font-size: 15px;
	font-weight: 700;
	color: var(--sgg-deep);
}

.sg-gram .sg-cell--na,
.sg-gram .sg-cell--closed,
.sg-gram .sg-crow--closed {
	color: var(--sgg-muted);
	font-size: 15px;
	font-weight: 600;
}

.sg-ccard {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px;
	border: 1px solid var(--sgg-line);
	border-radius: var(--sgg-r-card);
	background: var(--sgg-white);
}

.sg-gram .sg-ccard__title {
	margin: 0;
	font-family: inherit;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.5;
	color: var(--sgg-ink);
}

.sg-ccard__country {
	font-size: 16px;
	font-weight: 500;
	color: var(--sgg-muted);
}

.sg-gram .sg-ccard__time {
	margin: 0;
	font-size: 15px;
	color: var(--sgg-muted);
}

.sg-gram .sg-ccard__list {
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.sg-gram .sg-ccard__list > li {
	margin: 0;
	padding: 4px 0;
	border-top: 1px solid var(--sgg-line);
}

.sg-gram .sg-crow,
.sg-gram .sg-crow:focus {
	display: flex;
	justify-content: space-between;
	width: 100%;
	padding: 8px;
}

.sg-crow__name {
	font-size: 16px;
	font-weight: 600;
}

/* --------------------------------------------------------------- Pickup */
.sg-pcard {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 24px;
	border: 1px solid var(--sgg-line);
	border-radius: var(--sgg-r-card);
	background: var(--sgg-white);
}

.sg-pcard__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--sgg-r-ctl);
	background: var(--sgg-band);
}

.sg-gram .sg-pcard__title {
	margin: 0;
	font-family: inherit;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.6;
	color: var(--sgg-ink);
}

.sg-gram .sg-pcard__note {
	margin: 0;
	font-size: 17px;
	line-height: 1.9;
	color: var(--sgg-text);
}

.sg-gram .sg-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sg-gram .sg-tags li {
	margin: 0;
	padding: 2px 12px;
	border: 1px solid var(--sgg-deep);
	border-radius: 999px;
	background: var(--sgg-white);
	color: var(--sgg-deep);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.7;
}

/* -------------------------------------------------------------- Contact box */
/* Contact mode: under the estimate instead of the order button; [satyargold_contact] prints the same box anywhere. */
.sg-contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--sgg-deep);
	border-radius: var(--sgg-r-ctl);
	background: var(--sgg-picked);
}

.sg-gram .sg-contact__title {
	margin: 0;
	font-family: inherit;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.6;
	color: var(--sgg-ink);
	text-wrap: balance;
}

.sg-gram .sg-contact__note,
.sg-gram .sg-contact__final {
	margin: 0;
	font-size: 17px;
	line-height: 1.9;
	color: var(--sgg-text);
}

.sg-gram .sg-contact__final {
	font-size: 15px;
	line-height: 1.8;
	color: var(--sgg-muted);
}

.sg-gram .sg-contact__phones {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sg-gram .sg-contact__phones > li {
	margin: 0;
	padding: 0;
}

/* A call button is a link: the theme's link colours must not change it. The transparent border is invisible, but
   forced-colors mode (Windows high contrast) draws it as an outline. */
.sg-gram a.sg-contact__call,
.sg-gram a.sg-contact__call:visited,
.sg-gram a.sg-contact__call:hover,
.sg-gram a.sg-contact__call:focus,
.sg-gram a.sg-contact__call:active {
	flex-wrap: wrap;
	gap: 0 10px;
	border: 1px solid transparent;
	color: var(--sgg-ink);
	text-decoration: none;
}

/* Child themes underline links in the page content with .entry-content a:not(…):not(…):not(…) (specificity 0,4,1; on hover
   0,5,1, which only thickens the line). Five classes (0,5,1) switch the underline off in any load order without !important. */
.sg-gram .sg-contact__phones a.sg-btn.sg-btn--primary.sg-contact__call {
	text-decoration: none;
}

.sg-contact__label {
	font-size: 17px;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.sg-contact__num {
	font-size: 20px;
	font-weight: 800;
	unicode-bidi: isolate;
}

/* ---------------------------------------------------------- Wider screens */
@media (min-width: 600px) {
	.sg-contact {
		padding: 20px;
	}

	.sg-calc {
		padding: 28px;
	}

	.sg-out {
		padding: 20px;
	}

	.sg-actions {
		flex-direction: row;
	}

	.sg-gram .sg-actions .sg-btn--primary {
		flex: 2 1 auto;
	}

	.sg-gram .sg-actions .sg-btn--ghost {
		flex: 1 1 auto;
		min-height: 56px;
	}
}

/* ======================================================================
 * Homepage sections written as Gutenberg blocks
 * ==================================================================== */
.sg-hero,
.sg-section {
	font-family: var(--sgg-font);
	color: var(--sgg-ink);
	padding-block: 40px;
}

.sg-hero {
	background: var(--sgg-band);
	border-bottom: 1px solid var(--sgg-line);
	padding-block: 32px 40px;
}

.sg-hero:not(.alignfull),
.sg-section--band:not(.alignfull) {
	border: 1px solid var(--sgg-line);
	border-radius: var(--sgg-r-card);
	padding-inline: 20px;
}

.sg-hero.wp-block-columns,
.sg-hero > .wp-block-columns,
.sg-hero > .wp-block-group__inner-container > .wp-block-columns {
	/* WordPress core sets align-items: normal !important on columns, which would leave the text at the top. */
	align-items: center !important;
	gap: 32px 56px;
	margin-block: 0;
}

.sg-hero > .wp-block-columns > .wp-block-column,
.sg-hero.wp-block-columns > .wp-block-column {
	min-width: 0;
}

/* A hero written without a columns block (heading and paragraphs first, the calculator shortcode last):
   on wide screens it is split into two balanced columns, text on the right and calculator on the left.
   A browser without :has() skips this rule and shows the stacked phone layout, which is fine. */
@media (min-width: 782px) {
	.sg-hero:has(> .sg-gram) {
		column-count: 2;
		column-gap: 56px;
	}

	.sg-hero:has(> .sg-gram) > * {
		break-inside: avoid;
	}
}

.sg-hero h1 {
	margin: 0 0 20px;
	font-family: inherit;
	font-size: clamp(30px, 6vw, 48px);
	font-weight: 800;
	line-height: 1.4;
	color: var(--sgg-ink);
	text-wrap: balance;
}

.sg-hero p {
	font-size: clamp(17px, 2.4vw, 19px);
	line-height: 1.9;
	color: var(--sgg-text);
}

.sg-hero a:not(.wp-block-button__link):not(.wp-element-button) {
	color: var(--sgg-deep);
	font-weight: 700;
}

.sg-section--band {
	background: var(--sgg-band);
	border-block: 1px solid var(--sgg-line);
}

.sg-section h2,
.sg-hero h2 {
	margin: 0 0 24px;
	font-family: inherit;
	font-size: clamp(26px, 5vw, 32px);
	font-weight: 800;
	line-height: 1.4;
	color: var(--sgg-ink);
	text-wrap: balance;
}

.sg-section .sg-gram .sg-calc__title,
.sg-hero .sg-gram .sg-calc__title {
	margin: 0;
	font-size: 22px;
}

@media (min-width: 782px) {
	.sg-hero {
		padding-block: 48px 56px;
	}
}

/* Three numbered steps */
.sg-steps {
	counter-reset: sg-step;
}

.sg-steps.wp-block-columns {
	gap: 16px;
	margin-block: 0;
}

ol.sg-steps,
ul.sg-steps,
ul.sg-why {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sg-steps > li,
.sg-steps > .wp-block-column,
.sg-why > li,
.sg-why > .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 24px;
	border: 1px solid var(--sgg-line);
	border-radius: var(--sgg-r-card);
	background: var(--sgg-white);
	font-size: 17px;
	line-height: 1.9;
	color: var(--sgg-text);
}

.sg-steps > li,
.sg-steps > .wp-block-column {
	counter-increment: sg-step;
}

.sg-steps > li::before,
.sg-steps > .wp-block-column::before {
	content: counter(sg-step, persian);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1.5px solid var(--sgg-deep);
	border-radius: 999px;
	color: var(--sgg-deep);
	font-size: 20px;
	font-weight: 800;
	line-height: 1;
}

/* 1.3.0: English, Arabic and Kurdish pages count the steps in Latin digits (Persian pages keep html lang="fa-IR"). */
html:not([lang="fa-IR"]) .sg-steps > li::before,
html:not([lang="fa-IR"]) .sg-steps > .wp-block-column::before {
	content: counter(sg-step);
}

.sg-why > li::before,
.sg-why > .wp-block-column::before {
	content: "";
	display: block;
	width: 44px;
	height: 44px;
	border-radius: var(--sgg-r-ctl);
	background: var(--sgg-band) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A5A12' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 19L6.5 11H17.5L20.5 19Z'/%3E%3Cpath d='M6.5 11L9 5H15L17.5 11'/%3E%3C/svg%3E") center / 24px no-repeat;
}

/* Design 1 gives each reason its own icon: calculator, scales, gold bars (the bars are the base rule above). */
.sg-why > li:nth-child(1)::before,
.sg-why > .wp-block-column:nth-child(1)::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A5A12' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2.5'/%3E%3Cpath d='M8.5 7.5H15.5'/%3E%3Cpath d='M9 12H9.01M12 12H12.01M15 12H15.01M9 16H9.01M12 16H12.01M15 16H15.01'/%3E%3C/svg%3E");
}

.sg-why > li:nth-child(2)::before,
.sg-why > .wp-block-column:nth-child(2)::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A5A12' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4V20'/%3E%3Cpath d='M7 20H17'/%3E%3Cpath d='M5 7H19'/%3E%3Cpath d='M5 7L2.5 13.5A3 3 0 0 0 7.5 13.5L5 7Z'/%3E%3Cpath d='M19 7L16.5 13.5A3 3 0 0 0 21.5 13.5L19 7Z'/%3E%3C/svg%3E");
}

.sg-steps > .wp-block-column > *,
.sg-why > .wp-block-column > * {
	margin-block: 0;
}

.sg-steps h3,
.sg-why h3 {
	margin: 0;
	font-family: inherit;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.6;
	color: var(--sgg-ink);
}

.sg-steps p,
.sg-why p {
	margin: 0;
	font-size: 17px;
	line-height: 1.9;
	color: var(--sgg-text);
}

/* Questions as an accordion of core/details blocks */
.sg-faq {
	overflow: hidden;
	margin-block: 0;
	border: 1px solid var(--sgg-line);
	border-radius: var(--sgg-r-card);
	background: var(--sgg-white);
	font-family: var(--sgg-font);
}

.sg-faq > *,
.sg-faq > .wp-block-group__inner-container > * {
	margin-block: 0;
}

.sg-faq details {
	margin: 0;
	padding: 0;
	border: 0;
	border-top: 1px solid var(--sgg-line);
}

.sg-faq details:first-of-type {
	border-top: 0;
}

.sg-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
	padding: 12px 20px;
	color: var(--sgg-ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.7;
	list-style: none;
	cursor: pointer;
}

.sg-faq summary::-webkit-details-marker {
	display: none;
}

.sg-faq summary::marker {
	content: "";
}

.sg-faq summary::after {
	content: "";
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A5A12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9L12 15L18 9'/%3E%3C/svg%3E") center / 22px no-repeat;
	transition: transform 0.2s ease;
}

.sg-faq details[open] > summary::after {
	transform: rotate(180deg);
}

.sg-faq summary:hover {
	background: var(--sgg-band);
}

.sg-faq summary:focus-visible {
	outline: 3px solid var(--sgg-deep);
	outline-offset: -3px;
}

.sg-faq details > :not(summary) {
	margin: 0;
	padding: 0 20px 20px;
	font-size: 17px;
	line-height: 1.9;
	color: var(--sgg-text);
}

/* ---------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.sg-gram *,
	.sg-faq * {
		transition: none !important;
	}
}
