/*
Theme Name: Aramesh
Theme URI: https://example.com/
Author: Aramesh
Author URI: https://example.com/
Description: RTL WordPress theme converted from the Aramesh static HTML homepage.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: aramesh
*/

.test-card__badge--green {
	background: #16a36a;
}

.test-card__badge--orange {
	background: #f28c28;
}

.test-card__header {
	gap: 12px;
	flex-wrap: wrap;
}

#testForm:focus {
	outline: none;
}

#testForm .gform_wrapper {
	--gf-field-border: #dfe5ec;
	--gf-field-border-focus: var(--color-blue);
	--gf-field-bg: #fff;
	--gf-field-muted-bg: #f7f9fc;
	--gf-error: #c92a3f;
	margin: 0;
	padding: 26px 24px;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	box-shadow: var(--shadow-card);
	font-family: inherit;
	text-align: right;
}

#testForm .gform_wrapper,
#testForm .gform_wrapper * {
	box-sizing: border-box;
}

#testForm .gform_fields {
	display: grid;
	gap: 22px 18px;
}

#testForm .gfield {
	min-width: 0;
	margin: 0;
}

#testForm .gfield_label,
#testForm .gform-field-label {
	display: inline-block;
	margin: 0 0 8px;
	color: #202020;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.8;
}

#testForm .gfield_required {
	margin-right: 4px;
	color: var(--gf-error);
	font-size: 11px;
}

#testForm .gfield_description,
#testForm .ginput_complex label,
#testForm .gform_fileupload_rules {
	display: block;
	margin-top: 7px;
	color: var(--color-muted);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.8;
}

#testForm .ginput_complex {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

#testForm .ginput_complex > span {
	flex: 1 1 180px;
}

#testForm input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
#testForm select,
#testForm textarea {
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 11px 14px;
	color: #171717;
	background-color: var(--gf-field-bg);
	border: 1px solid var(--gf-field-border);
	border-radius: 7px;
	box-shadow: 0 1px 2px rgba(17, 17, 17, 0.02);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.7;
	text-align: right;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

#testForm input::placeholder,
#testForm textarea::placeholder {
	color: #9a9a9a;
	opacity: 1;
}

#testForm textarea {
	min-height: 130px;
	resize: vertical;
}

#testForm select {
	padding-left: 42px;
	background-image:
		linear-gradient(45deg, transparent 50%, #697386 50%),
		linear-gradient(135deg, #697386 50%, transparent 50%);
	background-position:
		left 20px center,
		left 14px center;
	background-repeat: no-repeat;
	background-size: 6px 6px, 6px 6px;
	appearance: none;
}

#testForm input[type="file"] {
	padding: 7px;
	background: var(--gf-field-muted-bg);
}

#testForm input[type="file"]::file-selector-button {
	min-height: 34px;
	margin-left: 10px;
	padding: 6px 12px;
	color: #333;
	background: #fff;
	border: 1px solid #d7dce3;
	border-radius: 5px;
	font-family: inherit;
	font-size: 11px;
	font-weight: 800;
	cursor: pointer;
}

#testForm input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):focus,
#testForm select:focus,
#testForm textarea:focus {
	background-color: #fff;
	border-color: var(--gf-field-border-focus);
	box-shadow: 0 0 0 3px rgba(32, 157, 245, 0.13);
	outline: none;
}

#testForm input:disabled,
#testForm select:disabled,
#testForm textarea:disabled {
	color: #848484;
	background: #f3f4f6;
	cursor: not-allowed;
	opacity: 0.8;
}

#testForm .gfield_checkbox,
#testForm .gfield_radio {
	display: grid;
	gap: 9px;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
}

#testForm .gchoice {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 9px;
	min-height: 42px;
	padding: 9px 11px;
	background: #fafbfc;
	border: 1px solid #edf0f4;
	border-radius: 7px;
	transition: border-color 160ms ease, background-color 160ms ease;
}

#testForm .gchoice:hover {
	background: #f7fbff;
	border-color: rgba(32, 157, 245, 0.28);
}

#testForm input[type="checkbox"],
#testForm input[type="radio"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--color-blue);
	cursor: pointer;
}

#testForm .gchoice label {
	flex: 1;
	margin: 0;
	color: #343434;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.8;
	cursor: pointer;
}

#testForm .gform_footer,
#testForm .gform_page_footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 24px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid #eef0f3;
}

#testForm input[type="submit"],
#testForm input[type="button"],
#testForm input[type="reset"],
#testForm button:not(.gform_delete_file) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 118px;
	min-height: 42px;
	margin: 0;
	padding: 9px 18px;
	color: #fff;
	background: var(--color-blue);
	border: 1px solid var(--color-blue);
	border-radius: 5px;
	box-shadow: none;
	font-family: inherit;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

#testForm input[type="submit"]:hover,
#testForm input[type="button"]:hover,
#testForm button:not(.gform_delete_file):hover {
	background: #168ce0;
	border-color: #168ce0;
	transform: translateY(-1px);
}

#testForm .gform_previous_button,
#testForm input[type="reset"] {
	color: #333;
	background: #fff;
	border-color: #d7dce3;
}

#testForm .gform_previous_button:hover,
#testForm input[type="reset"]:hover {
	color: var(--color-blue);
	background: #f7fbff;
	border-color: rgba(32, 157, 245, 0.45);
}

#testForm .gform_ajax_spinner {
	width: 24px;
	height: 24px;
	margin: 0 8px;
}

#testForm .gform_validation_errors,
#testForm .validation_message {
	color: var(--gf-error);
	background: #fff5f6;
	border: 1px solid #f1c7ce;
	border-radius: 7px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.9;
}

#testForm .gform_validation_errors {
	margin: 0 0 20px;
	padding: 14px 16px;
}

#testForm .validation_message {
	margin-top: 8px;
	padding: 8px 10px;
}

#testForm .gfield_error input:not([type="checkbox"]):not([type="radio"]),
#testForm .gfield_error select,
#testForm .gfield_error textarea {
	border-color: var(--gf-error);
}

#testForm .gform_confirmation_wrapper,
#testForm .gform_confirmation_message {
	padding: 22px;
	color: #185b3a;
	background: #f1fbf6;
	border: 1px solid #bfe7d1;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	line-height: 2;
}

#testForm .gf_progressbar_wrapper {
	margin-bottom: 24px;
}

#testForm .gf_progressbar_title {
	margin-bottom: 8px;
	color: #454545;
	font-size: 12px;
	font-weight: 800;
}

#testForm .gf_progressbar {
	height: 9px;
	overflow: hidden;
	background: #edf1f5;
	border-radius: 999px;
}

#testForm .gf_progressbar_percentage {
	height: 100%;
	color: transparent;
	background: var(--color-blue);
	border-radius: inherit;
}

@media (max-width: 767px) {
	.commerce-category-strip {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 8px;
		scrollbar-width: none;
	}

	.commerce-category-strip::-webkit-scrollbar {
		display: none;
	}

	.commerce-category-pill {
		flex: 0 0 auto;
	}

	#testForm .gform_wrapper {
		padding: 20px 16px;
	}

	#testForm .gform_fields {
		gap: 18px;
	}

	#testForm input[type="submit"],
	#testForm input[type="button"],
	#testForm input[type="reset"],
	#testForm button:not(.gform_delete_file) {
		flex: 1 1 120px;
	}
}

.load-more-indicator {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 160ms ease, visibility 160ms ease;
}

.load-more-indicator.is-loading {
	visibility: visible;
	opacity: 1;
}

.story-viewer__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.header-cart-link {
	position: relative;
	overflow: visible;
}

.header-cart-count {
	position: absolute;
	top: -7px;
	right: -8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	color: #fff;
	background: var(--color-blue);
	border: 2px solid #fff;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 900;
	line-height: 1;
	box-shadow: 0 2px 7px rgba(32, 157, 245, .28);
}

@media (max-width: 767px) {
	.header-actions {
		gap: 12px;
	}

	.header-actions .icon-button {
		flex: 0 0 26px;
		width: 26px;
		height: 26px;
	}
}
/* Castbox-inspired podcast player for single podcast pages. */
.podcast-player {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	min-height: 220px;
	overflow: hidden;
	direction: rtl;
	background: #fff;
}

.podcast-player__cover {
	grid-column: 2;
	width: 220px;
	height: 100%;
	min-height: 220px;
	object-fit: cover;
}

.podcast-player__body {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 24px 28px 22px;
}

.podcast-player__heading {
	display: grid;
	gap: 4px;
}

.podcast-player__show {
	color: #8a8a8a;
	font-size: 13px;
	font-weight: 700;
}

.podcast-player__title {
	overflow: hidden;
	color: #242424;
	font-size: 19px;
	font-weight: 900;
	line-height: 1.65;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.podcast-player__controls {
	display: grid;
	grid-template-columns: 86px minmax(0, 1fr) 130px;
	gap: 22px;
	align-items: center;
	margin-top: 26px;
	direction: ltr;
}

.podcast-player__play {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	padding: 0;
	color: #a855f7;
	background: #fff;
	border: 4px solid currentColor;
	border-radius: 999px;
	transition: color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.podcast-player__play:hover {
	color: #9333ea;
	box-shadow: 0 8px 24px rgba(168, 85, 247, .18);
	transform: scale(1.035);
}

.podcast-player__play svg {
	width: 35px;
	height: 35px;
	fill: currentColor;
}

.podcast-player__play-icon {
	margin-left: 4px;
}

.podcast-player__pause-icon,
.podcast-player.is-playing .podcast-player__play-icon {
	display: none;
}

.podcast-player.is-playing .podcast-player__pause-icon {
	display: block;
}

.podcast-player__timeline {
	display: grid;
	min-width: 0;
	gap: 10px;
}

.podcast-player__waveform {
	display: flex;
	align-items: center;
	width: 100%;
	height: 50px;
	gap: 2px;
	cursor: pointer;
	touch-action: none;
}

.podcast-player__wave-bar {
	flex: 1 1 0;
	min-width: 1px;
	height: var(--wave-height);
	background: #d6d6da;
	border-radius: 999px;
	transition: background-color 100ms linear;
}

.podcast-player__wave-bar.is-played {
	background: #a855f7;
}

.podcast-player__time {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #777;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.podcast-player__volume {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #8f8f94;
}

.podcast-player__volume svg {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.podcast-player__volume input {
	width: 96px;
	height: 4px;
	accent-color: #a855f7;
	cursor: pointer;
}

.podcast-player.has-media-error::after {
	margin-top: 16px;
	color: #b42318;
	content: "امکان پخش فایل صوتی وجود ندارد.";
	font-size: 12px;
	font-weight: 700;
}

@media (max-width: 767px) {
	.podcast-player {
		grid-template-columns: 96px minmax(0, 1fr);
		min-height: 0;
	}

	.podcast-player__cover {
		grid-column: 1;
		width: 96px;
		min-height: 96px;
		aspect-ratio: 1;
	}

	.podcast-player__body {
		grid-column: 2;
		padding: 13px 14px;
	}

	.podcast-player__show {
		font-size: 10px;
	}

	.podcast-player__title {
		font-size: 13px;
	}

	.podcast-player__controls {
		grid-column: 1 / -1;
		grid-template-columns: 54px minmax(0, 1fr);
		gap: 12px;
		margin-top: 16px;
	}

	.podcast-player__play {
		width: 50px;
		height: 50px;
		border-width: 3px;
	}

	.podcast-player__play svg {
		width: 24px;
		height: 24px;
	}

	.podcast-player__waveform {
		height: 36px;
		gap: 1px;
	}

	.podcast-player__volume {
		display: none;
	}
}
