/**
 * Order Tracking - Base Stylesheet
 *
 * @package VazirBricksExtras
 */

.vbe-ot-root {
	box-sizing: border-box;
	direction: rtl;
	text-align: right;
	font-family: inherit;
	max-width: 680px;
	margin: 28px auto;
	width: 100%;
}

.vbe-ot-root *,
.vbe-ot-root *::before,
.vbe-ot-root *::after {
	box-sizing: border-box;
}

/* ── Form Layout ─────────────────────────────────────────── */
.vbe-ot-form {
	padding: 28px 24px;
	border-radius: 14px;
	transition: all 0.3s ease;
}

.vbe-ot-form__header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
}

.vbe-ot-form__icon {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.vbe-ot-form__title {
	margin: 0 0 4px 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
}

.vbe-ot-form__subtitle {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
}

.vbe-ot-form__body {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.vbe-ot-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.vbe-ot-field__label {
	font-size: 13.5px;
	font-weight: 600;
}

.vbe-ot-input {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border-radius: 9px;
	font-size: 14px;
	font-family: inherit;
	transition: all 0.2s ease;
	outline: none;
}

/* ── Buttons ─────────────────────────────────────────────── */
.vbe-ot-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 18px;
	border-radius: 9px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	border: 1px solid transparent;
	text-decoration: none;
	transition: all 0.25s ease;
	user-select: none;
}

.vbe-ot-submit-btn {
	width: 100%;
	height: 48px;
	font-size: 15px;
	font-weight: 700;
	margin-top: 6px;
	position: relative;
}

.vbe-ot-submit-btn.is-loading .vbe-ot-btn__text {
	opacity: 0.3;
}

.vbe-ot-spinner {
	display: none;
	width: 20px;
	height: 20px;
	border: 2px solid rgba(0, 0, 0, 0.2);
	border-top-color: currentColor;
	border-radius: 50%;
	animation: vbe-ot-spin 0.7s linear infinite;
	position: absolute;
}

.vbe-ot-submit-btn.is-loading .vbe-ot-spinner {
	display: block;
}

@keyframes vbe-ot-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ── Response & Results ──────────────────────────────────── */
.vbe-ot-response-area {
	margin-top: 20px;
}

.vbe-ot-result {
	border-radius: 14px;
	padding: 24px;
	animation: vbe-ot-fade-in 0.35s ease;
}

@keyframes vbe-ot-fade-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.vbe-ot-result__header {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 14px;
	padding-bottom: 18px;
	border-bottom: 1px solid;
	margin-bottom: 20px;
}

.vbe-ot-result__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.vbe-ot-result__label {
	font-size: 12px;
}

.vbe-ot-result__value {
	font-size: 14px;
}

.vbe-ot-result__value--bold {
	font-weight: 700;
	font-size: 15px;
}

.vbe-ot-badge {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	padding: 3px 10px;
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
}

/* ── Tracking Barcode Card ───────────────────────────────── */
.vbe-ot-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding: 18px 20px;
	border-radius: 12px;
	direction: rtl;
	text-align: right;
	margin: 14px 0;
}

.vbe-ot-card__details {
	display: flex;
	align-items: center;
	gap: 14px;
}

.vbe-ot-card__icon {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.vbe-ot-card__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.vbe-ot-card__label {
	font-size: 12.5px;
}

.vbe-ot-card__code {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 1.5px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	direction: ltr;
	display: inline-block;
	text-align: right;
}

.vbe-ot-card__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* ── Pending Box ─────────────────────────────────────────── */
.vbe-ot-pending-box {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 20px;
	border-radius: 12px;
	border: 1px dashed;
}

.vbe-ot-pending-box__icon {
	font-size: 24px;
	line-height: 1;
	flex-shrink: 0;
}

.vbe-ot-pending-box__title {
	margin: 0 0 4px 0;
	font-size: 14px;
	font-weight: 700;
}

.vbe-ot-pending-box__desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
}

/* ── Alert / Error ───────────────────────────────────────── */
.vbe-ot-alert {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-radius: 10px;
	font-size: 13.5px;
	line-height: 1.6;
	animation: vbe-ot-fade-in 0.3s ease;
}

.vbe-ot-alert__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ── Mobile Responsive ───────────────────────────────────── */
@media (max-width: 580px) {
	.vbe-ot-form {
		padding: 20px 16px;
	}

	.vbe-ot-card {
		flex-direction: column;
		align-items: stretch;
		padding: 16px;
	}

	.vbe-ot-card__actions {
		width: 100%;
	}

	.vbe-ot-card__actions .vbe-ot-btn {
		flex: 1;
	}

	.vbe-ot-result {
		padding: 18px 16px;
	}

	.vbe-ot-result__header {
		grid-template-columns: 1fr 1fr;
	}
}
