/* ==========================================================================
   PRIJORA Theme — Account, Tracking, Returns & RMA Styles
   ========================================================================== */

/* 1. Auth Card (/login & /register) */
.prijora-auth-wrapper {
	max-width: 440px;
	margin: 48px auto;
}

.prijora-auth-card {
	background: #ffffff;
	border: 1px solid var(--prijora-color-border);
	border-radius: var(--prijora-radius-md);
	padding: 32px;
	box-shadow: var(--prijora-shadow-subtle);
}

.prijora-auth-tabs {
	display: flex;
	border-bottom: 1px solid var(--prijora-color-border);
	margin-bottom: 24px;
}

.prijora-auth-tab {
	flex: 1;
	background: none;
	border: none;
	padding: 10px 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--prijora-color-text-muted);
	cursor: pointer;
	border-bottom: 2px solid transparent;
}

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

.prijora-auth-panel {
	display: none;
}

.prijora-auth-panel.is-active {
	display: block;
}

.prijora-auth-sub {
	font-size: 0.84rem;
	color: var(--prijora-color-text-muted);
	margin-bottom: 20px;
}

.prijora-form-row-remember {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	font-size: 0.84rem;
}

/* 2. My Account Dashboard */
.prijora-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin: 28px 0;
}

.prijora-dash-card {
	padding: 20px;
	background: var(--prijora-color-surface);
	border: 1px solid var(--prijora-color-border);
	border-radius: var(--prijora-radius);
	display: block;
	transition: all var(--prijora-transition);
}

.prijora-dash-card:hover {
	border-color: var(--prijora-color-primary);
	box-shadow: var(--prijora-shadow-subtle);
}

.prijora-dash-card h3 {
	font-size: 1rem;
	margin-bottom: 4px;
}

.prijora-dash-card p {
	font-size: 0.8125rem;
	color: var(--prijora-color-text-muted);
	margin-bottom: 0;
}

/* 3. Stepper & Order Tracking */
.prijora-tracking-stepper {
	list-style: none;
	padding: 0;
	margin: 32px 0;
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	position: relative;
	gap: 8px;
}

.prijora-tracking-step {
	text-align: center;
	position: relative;
}

.prijora-step-indicator {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #e5e7eb;
	color: #6b7280;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8125rem;
	font-weight: 700;
	margin-bottom: 8px;
}

.prijora-tracking-step.is-completed .prijora-step-indicator {
	background: var(--prijora-color-primary);
	color: #ffffff;
}

.prijora-tracking-step.is-current .prijora-step-indicator {
	background: var(--prijora-color-accent);
	color: #ffffff;
	box-shadow: 0 0 0 3px var(--prijora-color-accent-subtle);
}

.prijora-step-title {
	font-size: 0.75rem;
	font-weight: 600;
	display: block;
}

.prijora-step-time {
	font-size: 0.6875rem;
	color: var(--prijora-color-text-light);
	display: block;
	margin-top: 2px;
}

.prijora-tracking-stepper--compact {
	grid-template-columns: repeat(7, 1fr);
	margin: 16px 0;
}

.prijora-courier-box {
	background: var(--prijora-color-surface);
	border: 1px solid var(--prijora-color-border);
	border-radius: var(--prijora-radius);
	padding: 20px;
	margin-top: 24px;
}

/* 4. Tables */
.prijora-table {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
	border: 1px solid var(--prijora-color-border);
	border-radius: var(--prijora-radius);
}

.prijora-table th {
	background: var(--prijora-color-surface);
	padding: 10px 14px;
	text-align: left;
	font-size: 0.8125rem;
	font-weight: 600;
	border-bottom: 1px solid var(--prijora-color-border);
}

.prijora-table td {
	padding: 14px;
	border-bottom: 1px solid var(--prijora-color-border-subtle);
	font-size: 0.875rem;
}

.prijora-order-action-buttons {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

/* 5. Address Cards */
.prijora-order-addresses-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 32px;
}

.prijora-address-card {
	padding: 20px;
	background: var(--prijora-color-surface);
	border: 1px solid var(--prijora-color-border);
	border-radius: var(--prijora-radius);
}

.prijora-address-card h3 {
	font-size: 0.9375rem;
	margin-bottom: 8px;
}

.prijora-address-card address {
	font-style: normal;
	font-size: 0.875rem;
	line-height: 1.6;
}

/* 6. Reviews Cards */
.prijora-reviews-cards {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.prijora-review-card {
	padding: 16px;
	background: #ffffff;
	border: 1px solid var(--prijora-color-border);
	border-radius: var(--prijora-radius);
}

.prijora-review-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.prijora-review-card__stars {
	color: #e28743;
	font-size: 0.875rem;
	margin-left: 8px;
}

/* ==========================================================================
   7. PRIJORA Modern Account Portal Design Tokens & Typography
   ========================================================================== */
.font-headline-sm { font-family: 'Noto Serif', Georgia, serif; font-size: 18px; line-height: 24px; font-weight: 600; }
.font-headline-md { font-family: 'Noto Serif', Georgia, serif; font-size: 22px; line-height: 28px; font-weight: 500; }
.font-headline-lg { font-family: 'Noto Serif', Georgia, serif; font-size: 28px; line-height: 36px; font-weight: 500; }
.font-label-sm { font-family: 'Plus Jakarta Sans', -apple-system, sans-serif; font-size: 10px; line-height: 12px; letter-spacing: 0.04em; font-weight: 700; }
.font-label-md { font-family: 'Plus Jakarta Sans', -apple-system, sans-serif; font-size: 12px; line-height: 16px; font-weight: 600; }
.font-label-lg { font-family: 'Plus Jakarta Sans', -apple-system, sans-serif; font-size: 14px; line-height: 18px; font-weight: 600; }
.font-body-sm { font-family: 'Plus Jakarta Sans', -apple-system, sans-serif; font-size: 12px; line-height: 16px; font-weight: 400; }
.font-body-md { font-family: 'Plus Jakarta Sans', -apple-system, sans-serif; font-size: 14px; line-height: 20px; font-weight: 400; }
.font-body-lg { font-family: 'Plus Jakarta Sans', -apple-system, sans-serif; font-size: 16px; line-height: 24px; font-weight: 400; }

.p-space-xs { padding: 0.25rem; }
.p-space-sm { padding: 0.5rem; }
.p-space-md { padding: 1rem; }
.p-space-lg { padding: 1.5rem; }
.p-space-xl { padding: 2.5rem; }
.py-space-sm { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-space-md { padding-top: 1rem; padding-bottom: 1rem; }
.py-space-lg { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.px-space-sm { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-space-md { padding-left: 1rem; padding-right: 1rem; }
.px-space-lg { padding-left: 1.5rem; padding-right: 1.5rem; }
.mb-space-xs { margin-bottom: 0.25rem; }
.mb-space-sm { margin-bottom: 0.5rem; }
.mb-space-md { margin-bottom: 1rem; }
.mb-space-lg { margin-bottom: 1.5rem; }
.pb-space-md { padding-bottom: 1rem; }
.pb-space-xl { padding-bottom: 2.5rem; }
.pt-space-md { padding-top: 1rem; }
.pt-space-lg { padding-top: 1.5rem; }
.pr-space-lg { padding-right: 1.5rem; }
.pl-space-lg { padding-left: 1.5rem; }
.gap-space-xs { gap: 0.25rem; }
.gap-space-sm { gap: 0.5rem; }
.gap-space-md { gap: 1rem; }
.gap-space-lg { gap: 1.5rem; }
.px-margin-desktop { padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 1024px) {
	.px-margin-desktop { padding-left: 3rem; padding-right: 3rem; }
}
.px-margin { padding-left: 1rem; padding-right: 1rem; }
.pb-safe { padding-bottom: env(safe-area-inset-bottom, 0.75rem); }
.pt-safe { padding-top: env(safe-area-inset-top, 0px); }

/* Color utilities fallback */
.bg-surface { background-color: #fbf9f6; }
.bg-surface-variant { background-color: #e4e2df; }
.bg-surface-container-lowest { background-color: #ffffff; }
.bg-surface-container-low { background-color: #f5f3f0; }
.bg-surface-container { background-color: #efeeeb; }
.bg-surface-container-high { background-color: #eae8e5; }
.bg-secondary-container { background-color: #efdcce; }
.bg-secondary-fixed { background-color: #f2dfd1; }
.bg-primary-fixed { background-color: #ffdbd1; }
.bg-primary-fixed-dim { background-color: #ffb5a0; }
.bg-primary { background-color: #ac2e00; }
.bg-tertiary-container { background-color: #238551; }
.bg-tertiary-fixed { background-color: #98f6b8; }
.bg-error-container { background-color: #ffdad6; }

.text-on-surface { color: #1b1c1a; }
.text-on-surface-variant { color: #59413a; }
.text-secondary { color: #695c51; }
.text-primary { color: #ac2e00; }
.text-tertiary { color: #006a3c; }
.text-outline { color: #8d7169; }
.text-error { color: #ba1a1a; }
.text-on-primary { color: #ffffff; }
.text-on-primary-fixed { color: #3b0a00; }
.text-on-secondary { color: #ffffff; }
.text-on-secondary-fixed { color: #231a11; }
.text-on-secondary-container { color: #6e6055; }
.text-on-tertiary-container { color: #f6fff5; }
.text-on-error-container { color: #93000a; }

.border-surface-variant { border-color: #e4e2df; }
.bg-inverse-surface { background-color: #31302e; }
.text-inverse-on-surface { color: #f2f0ed; }
.bg-surface-container-highest { background-color: #e4e2df; }
.bg-background { background-color: #fbf9f6; }

/* Neutralize WooCommerce default 30% / 68% column floats so unified flex Account Shell rules cleanly */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

.material-symbols-outlined {
	font-family: 'Material Symbols Outlined';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-feature-settings: 'liga';
	-webkit-font-smoothing: antialiased;
}
