/* استایل بخش کاربری افزونه گارانتی */

.wm-wrap {
	direction: rtl;
	text-align: right;
	font-size: 15px;
	line-height: 1.9;
	color: #1f2328;
	--wm-primary: #2563eb;
	--wm-border: #e2e5ea;
	--wm-bg: #f7f8fa;
}

.wm-wrap *,
.wm-wrap *::before,
.wm-wrap *::after {
	box-sizing: border-box;
}

.wm-ltr {
	direction: ltr;
	unicode-bidi: embed;
	text-align: left;
}

/* تب‌ها */
.wm-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	border-bottom: 2px solid var( --wm-border );
	margin-bottom: 22px;
}

.wm-tab {
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	padding: 10px 18px;
	font: inherit;
	font-weight: 600;
	color: #5b6472;
	cursor: pointer;
	margin-bottom: -2px;
	border-radius: 6px 6px 0 0;
}

.wm-tab:hover {
	color: var( --wm-primary );
	background: var( --wm-bg );
}

.wm-tab.is-active {
	color: var( --wm-primary );
	border-bottom-color: var( --wm-primary );
}

.wm-tab-content {
	display: none;
}

.wm-tab-content.is-active {
	display: block;
}

/* فرم */
.wm-form-title {
	font-size: 16px;
	margin: 22px 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var( --wm-border );
}

.wm-form-title:first-child {
	margin-top: 0;
}

.wm-grid {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 240px, 1fr ) );
	gap: 4px 18px;
}

.wm-field {
	margin: 0 0 16px;
}

.wm-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
}

.wm-field input[type="text"],
.wm-field input[type="tel"],
.wm-field input[type="email"],
.wm-field input[type="number"],
.wm-field input[type="file"],
.wm-field select,
.wm-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var( --wm-border );
	border-radius: 8px;
	background: #fff;
	font: inherit;
	color: inherit;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.wm-field input:focus,
.wm-field select:focus,
.wm-field textarea:focus {
	outline: 0;
	border-color: var( --wm-primary );
	box-shadow: 0 0 0 3px rgba( 37, 99, 235, .12 );
}

.wm-field .wm-hint {
	display: block;
	font-size: 12px;
	color: #6b7280;
	margin-top: 5px;
}

.wm-req {
	color: #dc2626;
}

.wm-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wm-form-inline .wm-field {
	display: inline-block;
	vertical-align: top;
	width: 100%;
	max-width: 320px;
	margin-inline-end: 14px;
}

.wm-submit {
	margin: 20px 0 0;
}

/* دکمه */
.wm-btn {
	display: inline-block;
	padding: 11px 26px;
	border: 0;
	border-radius: 8px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: opacity .15s ease, transform .05s ease;
}

.wm-btn:active {
	transform: translateY( 1px );
}

.wm-btn-primary {
	background: var( --wm-primary );
	color: #fff;
}

.wm-btn-primary:hover {
	opacity: .9;
	color: #fff;
}

.wm-btn-light {
	background: var( --wm-bg );
	color: #1f2328;
	border: 1px solid var( --wm-border );
}

.wm-btn.is-loading {
	opacity: .6;
	cursor: progress;
}

/* پیام‌ها */
.wm-notice {
	padding: 14px 16px;
	border-radius: 8px;
	margin: 0 0 18px;
	border-inline-start: 4px solid;
}

.wm-notice ul {
	margin: 8px 18px 0 0;
	padding: 0;
}

.wm-notice-success {
	background: #ecfdf3;
	border-color: #16a34a;
	color: #14532d;
}

.wm-notice-error {
	background: #fef2f2;
	border-color: #dc2626;
	color: #7f1d1d;
}

.wm-notice-info {
	background: #eff6ff;
	border-color: #2563eb;
	color: #1e3a8a;
}

/* نتیجه */
.wm-result {
	margin-top: 22px;
	border: 1px solid var( --wm-border );
	border-radius: 10px;
	padding: 18px;
	background: #fff;
}

.wm-result-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid var( --wm-border );
}

.wm-result-serial {
	color: #6b7280;
	font-size: 13px;
}

.wm-badge {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	background: #6b7280;
}

.wm-badge-green {
	background: #16a34a;
}

.wm-badge-red {
	background: #dc2626;
}

.wm-badge-orange {
	background: #d97706;
}

.wm-badge-gray {
	background: #6b7280;
}

.wm-subtitle {
	font-size: 15px;
	margin: 22px 0 10px;
}

/* جدول */
.wm-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 6px;
	font-size: 14px;
}

.wm-table th,
.wm-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var( --wm-border );
	text-align: right;
}

.wm-table thead th {
	background: var( --wm-bg );
	font-weight: 700;
	font-size: 13px;
}

.wm-table-detail th {
	width: 190px;
	color: #6b7280;
	font-weight: 600;
	background: transparent;
}

.wm-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	margin-inline-start: 6px;
	vertical-align: middle;
}

/* تایم‌لاین */
.wm-timeline {
	list-style: none;
	margin: 0;
	padding: 0 22px 0 0;
	position: relative;
}

.wm-timeline::before {
	content: '';
	position: absolute;
	top: 8px;
	bottom: 8px;
	right: 5px;
	width: 2px;
	background: var( --wm-border );
}

.wm-timeline li {
	position: relative;
	padding: 0 18px 20px 0;
}

.wm-timeline-dot {
	position: absolute;
	right: -21px;
	top: 6px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 2px currentColor;
}

.wm-timeline-body strong {
	display: inline-block;
	margin-inline-end: 10px;
}

.wm-timeline-date {
	color: #6b7280;
	font-size: 12px;
}

.wm-timeline-body p {
	margin: 4px 0 0;
	color: #374151;
	font-size: 14px;
}

/* تقویم شمسی */
.wm-dp {
	position: absolute;
	z-index: 100100;
	width: 244px;
	background: #fff;
	border: 1px solid #e2e5ea;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba( 0, 0, 0, .15 );
	padding: 10px;
	font-size: 13px;
	direction: rtl;
	color: #1f2328;
}

.wm-dp-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.wm-dp-title {
	font-weight: 700;
}

.wm-dp-nav {
	background: #f3f4f6;
	border: 0;
	border-radius: 6px;
	width: 28px;
	height: 28px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	color: inherit;
}

.wm-dp-nav:hover {
	background: #e5e7eb;
}

.wm-dp-week,
.wm-dp-days {
	display: grid;
	grid-template-columns: repeat( 7, 1fr );
	gap: 2px;
	text-align: center;
}

.wm-dp-week span {
	font-size: 11px;
	color: #6b7280;
	padding: 4px 0;
}

.wm-dp-day {
	padding: 6px 0;
	border-radius: 6px;
	cursor: pointer;
}

.wm-dp-day:hover {
	background: #f3f4f6;
}

.wm-dp-day.is-empty {
	cursor: default;
}

.wm-dp-day.is-today {
	border: 1px solid #2563eb;
}

.wm-dp-day.is-selected {
	background: #2563eb;
	color: #fff;
}

.wm-dp-foot {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	border-top: 1px solid #f3f4f6;
	padding-top: 8px;
}

.wm-dp-foot button {
	background: none;
	border: 0;
	color: #2563eb;
	cursor: pointer;
	font-size: 12px;
	font-family: inherit;
}

@media screen and ( max-width: 600px ) {
	.wm-form-inline .wm-field {
		max-width: 100%;
		margin-inline-end: 0;
	}

	.wm-table-detail th {
		width: 130px;
	}
}

/* ---------------------------------------------------------------------
 *  حساب کاربری ووکامرس
 * ------------------------------------------------------------------ */
.wm-account .wm-table td .wm-btn {
	white-space: nowrap;
}

.wm-account > .wm-hint,
.wm-account .wm-form > .wm-hint {
	display: block;
	margin: 0 0 12px;
	color: #646970;
	font-size: 13px;
}

.wm-order-warranty {
	margin-top: 2em;
}
