/**
 * Genius Shop – Phone Number Order Tracking
 * Frontend Stylesheet
 *
 * Scoped strictly with .gs-pot- prefix for WoodMart theme & Elementor compatibility.
 * Zero global element overrides. High responsiveness for mobile & desktop.
 */

.gs-pot-wrapper {
	box-sizing: border-box;
	width: 100%;
	max-width: 640px;
	margin: 20px auto;
	font-family: inherit;
	color: #1f2937;
}

.gs-pot-wrapper *,
.gs-pot-wrapper *::before,
.gs-pot-wrapper *::after {
	box-sizing: border-box;
}

/* Tracking Card */
.gs-pot-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 28px 24px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* WoodMart & Theme Dark Mode Compatibility */
.woodmart-dark .gs-pot-card,
.theme-dark .gs-pot-card {
	background: #1e1e1e;
	border-color: #333333;
	color: #f3f4f6;
}

/* Headings */
.gs-pot-title {
	margin: 0 0 6px 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: #111827;
	text-align: left;
}

.woodmart-dark .gs-pot-title,
.theme-dark .gs-pot-title {
	color: #ffffff;
}

.gs-pot-subtitle {
	margin: 0 0 20px 0;
	font-size: 14px;
	line-height: 1.5;
	color: #6b7280;
	text-align: left;
}

.woodmart-dark .gs-pot-subtitle,
.theme-dark .gs-pot-subtitle {
	color: #9ca3af;
}

/* Form & Input Group */
.gs-pot-form {
	margin: 0;
	padding: 0;
}

.gs-pot-input-group {
	display: flex;
	flex-direction: row;
	gap: 10px;
	align-items: stretch;
}

@media (max-width: 520px) {
	.gs-pot-input-group {
		flex-direction: column;
	}
}

.gs-pot-input-wrapper {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
}

.gs-pot-input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.gs-pot-phone-input {
	width: 100% !important;
	height: 48px !important;
	padding: 0 14px 0 44px !important;
	font-size: 15px !important;
	font-family: inherit !important;
	color: #111827 !important;
	background-color: #f9fafb !important;
	border: 1.5px solid #d1d5db !important;
	border-radius: 10px !important;
	outline: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
	margin: 0 !important;
}

.gs-pot-phone-input:focus {
	background-color: #ffffff !important;
	border-color: #2563eb !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.woodmart-dark .gs-pot-phone-input,
.theme-dark .gs-pot-phone-input {
	background-color: #262626 !important;
	border-color: #404040 !important;
	color: #f3f4f6 !important;
}

.woodmart-dark .gs-pot-phone-input:focus,
.theme-dark .gs-pot-phone-input:focus {
	border-color: #60a5fa !important;
	box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25) !important;
}

/* Submit Button */
.gs-pot-submit-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 48px !important;
	padding: 0 24px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	font-family: inherit !important;
	color: #ffffff !important;
	background-color: #111827 !important;
	border: none !important;
	border-radius: 10px !important;
	cursor: pointer !important;
	transition: background-color 0.15s ease, transform 0.08s ease, opacity 0.15s ease !important;
	white-space: nowrap !important;
	text-decoration: none !important;
	line-height: 1 !important;
}

.gs-pot-submit-btn:hover {
	background-color: #1f2937 !important;
	color: #ffffff !important;
}

.gs-pot-submit-btn:active {
	transform: scale(0.99) !important;
}

.woodmart-dark .gs-pot-submit-btn,
.theme-dark .gs-pot-submit-btn {
	background-color: #2563eb !important;
	color: #ffffff !important;
}

.woodmart-dark .gs-pot-submit-btn:hover,
.theme-dark .gs-pot-submit-btn:hover {
	background-color: #1d4ed8 !important;
}

/* Spinner */
.gs-pot-spinner {
	display: none;
	width: 16px;
	height: 16px;
	margin-left: 8px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: gs-pot-spin 0.7s linear infinite;
}

@keyframes gs-pot-spin {
	to {
		transform: rotate(360deg);
	}
}

.gs-pot-submit-btn.gs-pot-loading {
	opacity: 0.8;
	pointer-events: none;
}

.gs-pot-submit-btn.gs-pot-loading .gs-pot-spinner {
	display: inline-block;
}

/* Results Header */
.gs-pot-response-container {
	margin-top: 24px;
}

.gs-pot-results-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid #f3f4f6;
}

.woodmart-dark .gs-pot-results-header,
.theme-dark .gs-pot-results-header {
	border-bottom-color: #2f2f2f;
}

.gs-pot-results-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #111827;
}

.woodmart-dark .gs-pot-results-title,
.theme-dark .gs-pot-results-title {
	color: #ffffff;
}

.gs-pot-results-hint {
	display: block;
	font-size: 11px;
	color: #9ca3af;
	margin-top: 2px;
}

.gs-pot-results-count {
	font-size: 12px;
	font-weight: 600;
	color: #4b5563;
	background-color: #f3f4f6;
	padding: 3px 10px;
	border-radius: 9999px;
}

.woodmart-dark .gs-pot-results-count,
.theme-dark .gs-pot-results-count {
	background-color: #2c2c2c;
	color: #9ca3af;
}

/* Orders List */
.gs-pot-orders-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Accordion Order Card */
.gs-pot-order-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gs-pot-order-card:hover {
	border-color: #cbd5e1;
}

.gs-pot-order-card.gs-pot-accordion-open {
	border-color: #93c5fd;
	box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.4);
}

.woodmart-dark .gs-pot-order-card,
.theme-dark .gs-pot-order-card {
	background: #242424;
	border-color: #383838;
}

.woodmart-dark .gs-pot-order-card.gs-pot-accordion-open,
.theme-dark .gs-pot-order-card.gs-pot-accordion-open {
	border-color: #3b82f6;
}

/* Accordion Trigger Button */
.gs-pot-accordion-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	transition: background-color 0.15s ease;
	outline: none;
}

.gs-pot-accordion-trigger:hover {
	background-color: #f8fafc;
}

.woodmart-dark .gs-pot-accordion-trigger:hover,
.theme-dark .gs-pot-accordion-trigger:hover {
	background-color: #2c2c2c;
}

@media (max-width: 520px) {
	.gs-pot-accordion-trigger {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	.gs-pot-header-actions {
		width: 100%;
		justify-content: space-between;
	}
}

.gs-pot-order-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.gs-pot-order-title-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.gs-pot-order-number {
	font-size: 16px;
	font-weight: 700;
	color: #111827;
	font-family: monospace, monospace;
	letter-spacing: -0.01em;
}

.woodmart-dark .gs-pot-order-number,
.theme-dark .gs-pot-order-number {
	color: #ffffff;
}

.gs-pot-mobile-view-tag {
	font-size: 11px;
	font-weight: 600;
	color: #2563eb;
	background: #eff6ff;
	border: 1px solid #dbeafe;
	padding: 2px 6px;
	border-radius: 6px;
}

@media (min-width: 521px) {
	.gs-pot-mobile-view-tag {
		display: none;
	}
}

.gs-pot-order-date {
	font-size: 13px;
	color: #6b7280;
	display: flex;
	align-items: center;
	gap: 6px;
}

.woodmart-dark .gs-pot-order-date,
.theme-dark .gs-pot-order-date {
	color: #9ca3af;
}

.gs-pot-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Accordion Chevron Icon */
.gs-pot-accordion-icon {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background-color: #f1f5f9;
	color: #64748b;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
	flex-shrink: 0;
}

.gs-pot-accordion-open .gs-pot-accordion-icon {
	transform: rotate(180deg);
	background-color: #2563eb;
	color: #ffffff;
}

.woodmart-dark .gs-pot-accordion-icon,
.theme-dark .gs-pot-accordion-icon {
	background-color: #333333;
	color: #9ca3af;
}

.woodmart-dark .gs-pot-accordion-open .gs-pot-accordion-icon,
.theme-dark .gs-pot-accordion-open .gs-pot-accordion-icon {
	background-color: #3b82f6;
	color: #ffffff;
}

/* Status Badges */
.gs-pot-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 9999px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

.gs-pot-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: currentColor;
}

.gs-pot-status-processing,
.gs-pot-status-shipped,
.gs-pot-status-in-transit {
	background-color: #eff6ff;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
}

.gs-pot-status-completed,
.gs-pot-status-delivered {
	background-color: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.gs-pot-status-on-hold,
.gs-pot-status-pending,
.gs-pot-status-pending-payment {
	background-color: #fffbeb;
	color: #b45309;
	border: 1px solid #fde68a;
}

.gs-pot-status-cancelled,
.gs-pot-status-failed,
.gs-pot-status-refunded {
	background-color: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.gs-pot-status-default {
	background-color: #f3f4f6;
	color: #4b5563;
	border: 1px solid #e5e7eb;
}

/* Accordion Details Body */
.gs-pot-accordion-body {
	border-top: 1px solid #f1f5f9;
	padding: 18px 20px;
	background-color: #fafafa;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.woodmart-dark .gs-pot-accordion-body,
.theme-dark .gs-pot-accordion-body {
	background-color: #1a1a1a;
	border-top-color: #333333;
}

/* Accordion Sections */
.gs-pot-section {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gs-pot-section-label {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	display: flex;
	align-items: center;
	gap: 6px;
}

.woodmart-dark .gs-pot-section-label,
.theme-dark .gs-pot-section-label {
	color: #9ca3af;
}

/* Timeline Grid */
.gs-pot-timeline-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}

@media (max-width: 600px) {
	.gs-pot-timeline-grid {
		grid-template-columns: 1fr;
	}
}

.gs-pot-timeline-step {
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	background-color: #ffffff;
	transition: all 0.15s ease;
}

.woodmart-dark .gs-pot-timeline-step,
.theme-dark .gs-pot-timeline-step {
	background-color: #242424;
	border-color: #3a3a3a;
}

.gs-pot-timeline-step.gs-pot-step-completed {
	background-color: #f0fdf4;
	border-color: #bbf7d0;
}

.woodmart-dark .gs-pot-timeline-step.gs-pot-step-completed,
.theme-dark .gs-pot-timeline-step.gs-pot-step-completed {
	background-color: #064e3b20;
	border-color: #065f46;
}

.gs-pot-timeline-step.gs-pot-step-current {
	background-color: #eff6ff;
	border-color: #93c5fd;
	box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1);
}

.woodmart-dark .gs-pot-timeline-step.gs-pot-step-current,
.theme-dark .gs-pot-timeline-step.gs-pot-step-current {
	background-color: #1e3a8a30;
	border-color: #3b82f6;
}

.gs-pot-step-head {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
}

.gs-pot-step-indicator {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.gs-pot-step-done {
	color: #16a34a;
}

.gs-pot-step-active {
	background-color: #2563eb;
	position: relative;
}

.gs-pot-step-ping {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: #ffffff;
}

.gs-pot-step-pending {
	border: 2px solid #cbd5e1;
}

.gs-pot-step-title {
	font-size: 12px;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.2;
}

.woodmart-dark .gs-pot-step-title,
.theme-dark .gs-pot-step-title {
	color: #f1f5f9;
}

.gs-pot-step-desc {
	margin: 0;
	font-size: 11px;
	color: #64748b;
	line-height: 1.3;
}

.woodmart-dark .gs-pot-step-desc,
.theme-dark .gs-pot-step-desc {
	color: #94a3b8;
}

/* Items Box */
.gs-pot-items-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
}

.woodmart-dark .gs-pot-items-box,
.theme-dark .gs-pot-items-box {
	background: #242424;
	border-color: #383838;
}

.gs-pot-item-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	border-bottom: 1px solid #f1f5f9;
	font-size: 13px;
}

.gs-pot-item-row:last-child {
	border-bottom: none;
}

.woodmart-dark .gs-pot-item-row,
.theme-dark .gs-pot-item-row {
	border-bottom-color: #2c2c2c;
}

.gs-pot-item-title-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.gs-pot-item-qty {
	font-weight: 700;
	font-size: 12px;
	color: #475569;
	background: #f1f5f9;
	padding: 2px 6px;
	border-radius: 6px;
	flex-shrink: 0;
}

.woodmart-dark .gs-pot-item-qty,
.theme-dark .gs-pot-item-qty {
	background: #333333;
	color: #cbd5e1;
}

.gs-pot-item-name {
	color: #1e293b;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.woodmart-dark .gs-pot-item-name,
.theme-dark .gs-pot-item-name {
	color: #f1f5f9;
}

.gs-pot-item-price {
	font-weight: 600;
	font-family: monospace, monospace;
	color: #1e293b;
	flex-shrink: 0;
}

.woodmart-dark .gs-pot-item-price,
.theme-dark .gs-pot-item-price {
	color: #ffffff;
}

/* Meta Grid */
.gs-pot-meta-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

@media (max-width: 520px) {
	.gs-pot-meta-grid {
		grid-template-columns: 1fr;
	}
}

.gs-pot-meta-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.woodmart-dark .gs-pot-meta-box,
.theme-dark .gs-pot-meta-box {
	background: #242424;
	border-color: #383838;
}

.gs-pot-meta-header {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: #1e293b;
}

.woodmart-dark .gs-pot-meta-header,
.theme-dark .gs-pot-meta-header {
	color: #f1f5f9;
}

.gs-pot-meta-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 12px;
}

.gs-pot-meta-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.gs-pot-meta-k {
	color: #64748b;
}

.woodmart-dark .gs-pot-meta-k,
.theme-dark .gs-pot-meta-k {
	color: #94a3b8;
}

.gs-pot-meta-v {
	color: #1e293b;
	font-weight: 500;
}

.woodmart-dark .gs-pot-meta-v,
.theme-dark .gs-pot-meta-v {
	color: #f1f5f9;
}

.gs-pot-meta-border {
	padding-top: 6px;
	border-top: 1px solid #f1f5f9;
}

.woodmart-dark .gs-pot-meta-border,
.theme-dark .gs-pot-meta-border {
	border-top-color: #333333;
}

.gs-pot-masked-tag {
	font-family: monospace, monospace;
	font-size: 11px;
	font-weight: 700;
	color: #15803d;
	background: #f0fdf4;
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid #bbf7d0;
}

.gs-pot-meta-total {
	padding-top: 6px;
	border-top: 1px solid #f1f5f9;
	font-weight: 700;
	font-size: 13px;
}

.woodmart-dark .gs-pot-meta-total,
.theme-dark .gs-pot-meta-total {
	border-top-color: #333333;
}

.gs-pot-total-val {
	color: #1d4ed8;
	font-family: monospace, monospace;
	font-size: 14px;
}

.woodmart-dark .gs-pot-total-val,
.theme-dark .gs-pot-total-val {
	color: #60a5fa;
}

/* Privacy Badge */
.gs-pot-privacy-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 10px;
	font-size: 11px;
	color: #166534;
	line-height: 1.4;
}

.woodmart-dark .gs-pot-privacy-badge,
.theme-dark .gs-pot-privacy-badge {
	background: #064e3b20;
	border-color: #065f46;
	color: #86efac;
}

/* Alerts */
.gs-pot-alert {
	display: flex;
	gap: 12px;
	padding: 16px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}

.gs-pot-alert-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gs-pot-alert-content {
	flex: 1;
}

.gs-pot-alert-title {
	font-weight: 700;
	margin-bottom: 2px;
}

.gs-pot-alert-desc {
	margin: 0;
}

.gs-pot-alert-info {
	background-color: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
}

.gs-pot-alert-info .gs-pot-alert-icon {
	color: #d97706;
}

.gs-pot-alert-error {
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.gs-pot-alert-error .gs-pot-alert-icon {
	color: #dc2626;
}
