/* Royal India Manager — customer account (/mein-konto) */

body.rim-customer-account-body,
body.rim-customer-account-body .site-main {
	background: #f6efe3;
}

.rim-customer-account {
	--rim-ca-primary: #7b1e2d;
	--rim-ca-gold: #d4af37;
	--rim-ca-cream: #fff8f0;
	--rim-ca-text: #2b1b12;
	--rim-ca-muted: #6b5b52;
	--rim-ca-border: color-mix(in srgb, var(--rim-ca-primary) 12%, #e0d5c8);
	max-width: 760px;
	margin: 0 auto;
	padding: 1rem 0.9rem 2.5rem;
	color: var(--rim-ca-text);
	font-family: inherit;
}

.rim-customer-account__header {
	margin-bottom: 1.1rem;
}

.rim-customer-account__header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
}

.rim-customer-account__header-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 2.45rem;
	padding: 0.55rem 0.95rem;
	border: 1px solid color-mix(in srgb, var(--rim-ca-gold) 42%, var(--rim-ca-border));
	border-radius: 999px;
	background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--rim-ca-cream) 72%, #fff) 100%);
	box-shadow:
		0 1px 0 color-mix(in srgb, #fff 80%, transparent) inset,
		0 6px 18px rgba(43, 31, 26, 0.08);
	color: var(--rim-ca-primary);
	font-size: 0.84rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease;
}

.rim-customer-account__header-btn:hover,
.rim-customer-account__header-btn:focus-visible {
	border-color: color-mix(in srgb, var(--rim-ca-gold) 72%, var(--rim-ca-primary));
	color: color-mix(in srgb, var(--rim-ca-primary) 88%, #000);
	box-shadow:
		0 1px 0 color-mix(in srgb, #fff 80%, transparent) inset,
		0 10px 22px rgba(43, 31, 26, 0.12);
	transform: translateY(-1px);
}

.rim-customer-account__header-btn--logout {
	background: linear-gradient(135deg, var(--rim-ca-primary) 0%, color-mix(in srgb, var(--rim-ca-primary) 86%, #3d1018) 100%);
	border-color: color-mix(in srgb, var(--rim-ca-primary) 88%, #000);
	color: var(--rim-ca-cream);
}

.rim-customer-account__header-btn--logout:hover,
.rim-customer-account__header-btn--logout:focus-visible {
	border-color: color-mix(in srgb, var(--rim-ca-gold) 55%, var(--rim-ca-primary));
	color: #fff;
}

.rim-customer-account__header-btn-icon {
	font-size: 0.95rem;
	line-height: 1;
}

.rim-customer-account__title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.55rem, 4vw, 2rem);
	line-height: 1.1;
	color: var(--rim-ca-primary);
}

.rim-customer-account__welcome,
.rim-customer-account__intro {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--rim-ca-muted);
}

.rim-customer-account__tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.35rem;
	margin: 0 0 1rem;
	padding: 0.32rem;
	border: 1px solid var(--rim-ca-border);
	border-radius: 14px;
	background: color-mix(in srgb, var(--rim-ca-cream) 58%, #fff);
}

.rim-customer-account__tab {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.8rem;
	padding: 0.7rem 0.5rem;
	border-radius: 11px;
	font-size: 0.86rem;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	color: color-mix(in srgb, var(--rim-ca-primary) 76%, #6b5b52);
}

.rim-customer-account__tab.is-active {
	background: linear-gradient(135deg, var(--rim-ca-primary) 0%, color-mix(in srgb, var(--rim-ca-primary) 86%, #3d1018) 100%);
	color: var(--rim-ca-cream);
	box-shadow: 0 6px 16px rgba(43, 31, 26, 0.18);
}

.rim-customer-account__card {
	padding: 1rem 1.05rem;
	border: 1px solid var(--rim-ca-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(43, 31, 26, 0.05);
}

.rim-customer-account__card-title {
	margin: 0 0 0.35rem;
	font-size: 1.1rem;
	color: var(--rim-ca-primary);
}

.rim-customer-account__card-intro,
.rim-customer-account__empty {
	margin: 0 0 0.85rem;
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--rim-ca-muted);
}

.rim-customer-account__warning {
	margin: 0 0 0.85rem;
	padding: 0.55rem 0.7rem;
	border-radius: 8px;
	font-size: 0.82rem;
	line-height: 1.4;
	color: #8f1d13;
	background: color-mix(in srgb, #8f1d13 6%, #fff);
	border: 1px solid color-mix(in srgb, #8f1d13 18%, transparent);
}

.rim-customer-account__form {
	display: grid;
	gap: 0.8rem;
}

.rim-customer-account__field,
.rim-customer-account__field-row {
	display: grid;
	gap: 0.35rem;
}

.rim-customer-account__field-row {
	grid-template-columns: minmax(6rem, 34%) 1fr;
}

.rim-customer-account__field label,
.rim-customer-account__field-label {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--rim-ca-text);
}

.rim-customer-account__field input[type="text"],
.rim-customer-account__field input[type="email"],
.rim-customer-account__field input[type="tel"],
.rim-customer-account__field input[type="password"] {
	width: 100%;
	padding: 0.72rem 0.8rem;
	border: 1px solid var(--rim-ca-border);
	border-radius: 10px;
	background: var(--rim-ca-cream);
	font: inherit;
}

.rim-customer-account__field input[readonly] {
	opacity: 0.82;
}

.rim-customer-account__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.rim-customer-account__choice {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.88rem;
	font-weight: 600;
}

.rim-customer-account__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.rim-customer-account__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.7rem;
	padding: 0.7rem 1rem;
	border: 0;
	border-radius: 11px;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}

.rim-customer-account__btn--primary {
	background: linear-gradient(135deg, var(--rim-ca-primary) 0%, color-mix(in srgb, var(--rim-ca-primary) 86%, #3d1018) 100%);
	color: var(--rim-ca-cream);
}

.rim-customer-account__btn--ghost {
	border: 1px solid var(--rim-ca-border);
	background: #fff;
	color: var(--rim-ca-primary);
}

.rim-customer-account__btn--danger {
	background: #8f1d13;
	color: #fff;
}

.rim-customer-account__error,
.rim-customer-account__notice {
	margin: 0;
	padding: 0.55rem 0.7rem;
	border-radius: 8px;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.35;
}

.rim-customer-account__error {
	background: color-mix(in srgb, #b42318 8%, #fff);
	border: 1px solid color-mix(in srgb, #b42318 24%, transparent);
	color: #8f1d13;
}

.rim-customer-account__notice--success {
	background: color-mix(in srgb, #1f7a4f 8%, #fff);
	border: 1px solid color-mix(in srgb, #1f7a4f 24%, transparent);
	color: #1f7a4f;
}

.rim-customer-account__error[hidden],
.rim-customer-account__notice[hidden] {
	display: none !important;
}

.rim-customer-account__orders {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rim-customer-account__order {
	display: grid;
	gap: 0.45rem;
	padding: 0.85rem 0.9rem;
	border: 1px solid var(--rim-ca-border);
	border-radius: 12px;
	background: color-mix(in srgb, var(--rim-ca-cream) 42%, #fff);
}

.rim-customer-account__order-main,
.rim-customer-account__order-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem 0.75rem;
}

.rim-customer-account__order-date,
.rim-customer-account__order-status {
	font-size: 0.82rem;
	color: var(--rim-ca-muted);
}

.rim-customer-account__order-total {
	font-weight: 800;
	color: var(--rim-ca-primary);
}

.rim-customer-account__order-eta {
	display: block;
	width: 100%;
	margin-top: 0.15rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: #145c3a;
}

.rim-customer-account__order-detail-block--eta {
	padding: 0.85rem 1rem;
	border-radius: 12px;
	background: #e8f7ef;
	border: 1px solid #b8e6cc;
}

.rim-customer-account__order-detail-value--eta {
	color: #145c3a;
	font-weight: 700;
}

.rim-customer-account__order-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 0.85rem;
}

.rim-customer-account__order-link,
.rim-customer-account__order-reorder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.2rem;
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 800;
	cursor: pointer;
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease,
		border-color 0.18s ease,
		background 0.18s ease;
}

.rim-customer-account__order-link {
	border: 1px solid color-mix(in srgb, var(--rim-ca-primary) 18%, var(--rim-ca-border));
	background: #fff;
	color: var(--rim-ca-primary);
	text-decoration: none;
}

.rim-customer-account__order-link:hover,
.rim-customer-account__order-link:focus-visible,
.rim-customer-account__order-link.is-active {
	border-color: color-mix(in srgb, var(--rim-ca-primary) 42%, var(--rim-ca-gold));
	background: color-mix(in srgb, var(--rim-ca-cream) 55%, #fff);
	box-shadow: 0 4px 12px rgba(43, 31, 26, 0.08);
}

.rim-customer-account__order-reorder {
	border: 1px solid color-mix(in srgb, var(--rim-ca-gold) 48%, var(--rim-ca-border));
	background: linear-gradient(180deg, color-mix(in srgb, var(--rim-ca-cream) 70%, #fff) 0%, #fff 100%);
	color: var(--rim-ca-primary);
}

.rim-customer-account__order-reorder:hover,
.rim-customer-account__order-reorder:focus-visible {
	border-color: color-mix(in srgb, var(--rim-ca-gold) 72%, var(--rim-ca-primary));
	box-shadow: 0 4px 12px rgba(43, 31, 26, 0.08);
	transform: translateY(-1px);
}

.rim-customer-account__order-reorder:disabled {
	opacity: 0.6;
	cursor: wait;
	transform: none;
}

.rim-customer-account__order-detail-wrap {
	margin-top: 0.35rem;
	padding-top: 0.75rem;
	border-top: 1px dashed var(--rim-ca-border);
}

.rim-customer-account__order-detail-wrap[hidden] {
	display: none !important;
}

.rim-customer-account__order-detail {
	display: grid;
	gap: 0.85rem;
}

.rim-customer-account__order-detail-block {
	padding: 0.75rem 0.8rem;
	border: 1px solid var(--rim-ca-border);
	border-radius: 12px;
	background: color-mix(in srgb, var(--rim-ca-cream) 36%, #fff);
}

.rim-customer-account__order-detail-title {
	margin: 0 0 0.45rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--rim-ca-primary) 72%, var(--rim-ca-muted));
}

.rim-customer-account__order-detail-value,
.rim-customer-account__order-detail-empty {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--rim-ca-text);
}

.rim-customer-account__order-detail-items {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rim-customer-account__order-detail-line {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0.35rem 0.5rem;
	align-items: start;
}

.rim-customer-account__order-detail-qty {
	font-weight: 800;
	color: var(--rim-ca-primary);
}

.rim-customer-account__order-detail-name {
	font-weight: 700;
}

.rim-customer-account__order-detail-size {
	grid-column: 2;
	font-size: 0.82rem;
	color: var(--rim-ca-muted);
}

.rim-customer-account__order-detail-price {
	font-weight: 800;
	color: var(--rim-ca-primary);
	white-space: nowrap;
}

.rim-customer-account__order-detail-sub {
	margin: 0.2rem 0 0;
	padding: 0 0 0 1.15rem;
	font-size: 0.8rem;
	line-height: 1.4;
	color: var(--rim-ca-muted);
}

.rim-customer-account__order-detail-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0.75rem 0 0;
	padding-top: 0.7rem;
	border-top: 1px solid var(--rim-ca-border);
	font-size: 0.88rem;
	font-weight: 700;
}

.rim-customer-account__order-detail-total strong {
	font-size: 1rem;
	color: var(--rim-ca-primary);
}

.rim-customer-account__subsection,
.rim-customer-account__privacy-block {
	margin-top: 1.25rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--rim-ca-border);
}

.rim-customer-account__subsection-title {
	margin: 0 0 0.55rem;
	font-size: 1rem;
	color: var(--rim-ca-primary);
}

.rim-customer-account__privacy-block--danger {
	padding: 0.95rem 0.9rem 1rem;
	border: 1px solid color-mix(in srgb, #8f1d13 22%, var(--rim-ca-border));
	border-radius: 12px;
	background: color-mix(in srgb, #8f1d13 4%, #fff);
}

/* Premium privacy tab (DSGVO) */

.rim-customer-account__privacy--premium {
	display: grid;
	gap: 1rem;
	padding: 1.25rem 1.2rem 1.3rem;
	border: 1px solid color-mix(in srgb, var(--rim-ca-gold) 34%, #e8dfd4);
	border-radius: 18px;
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--rim-ca-gold) 9%, #fff) 0%, #fff 38%),
		linear-gradient(135deg, color-mix(in srgb, var(--rim-ca-cream) 72%, #fff) 0%, #fff 100%);
	box-shadow:
		0 1px 0 color-mix(in srgb, #fff 85%, transparent) inset,
		0 14px 34px rgba(43, 31, 26, 0.08);
	position: relative;
	overflow: hidden;
}

.rim-customer-account__privacy--premium::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--rim-ca-gold) 0%, color-mix(in srgb, var(--rim-ca-primary) 72%, var(--rim-ca-gold)) 100%);
}

.rim-customer-account__privacy-hero {
	position: relative;
	z-index: 1;
}

.rim-customer-account__privacy-badge,
.rim-customer-account__privacy-block-badge {
	display: inline-flex;
	align-items: center;
	margin: 0 0 0.55rem;
	padding: 0.28rem 0.62rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--rim-ca-primary) 8%, #fff);
	border: 1px solid color-mix(in srgb, var(--rim-ca-primary) 14%, transparent);
	color: var(--rim-ca-primary);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.rim-customer-account__privacy--premium .rim-customer-account__card-title {
	font-size: clamp(1.15rem, 2.8vw, 1.35rem);
	line-height: 1.15;
}

.rim-customer-account__card-intro--flush {
	margin-bottom: 0;
}

.rim-customer-account__privacy--premium .rim-customer-account__privacy-block {
	margin-top: 0;
	padding: 1.1rem 1.15rem 1.15rem;
	border: 1px solid var(--rim-ca-border);
	border-radius: 16px;
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--rim-ca-cream) 55%, #fff) 0%, #fff 100%);
	box-shadow: 0 6px 18px rgba(43, 31, 26, 0.05);
	position: relative;
	z-index: 1;
}

.rim-customer-account__privacy-block--export {
	border-color: color-mix(in srgb, var(--rim-ca-gold) 28%, var(--rim-ca-border));
}

.rim-customer-account__privacy-block--anonymize {
	border-color: color-mix(in srgb, var(--rim-ca-primary) 16%, var(--rim-ca-border));
}

.rim-customer-account__privacy-block--danger {
	padding: 1.1rem 1.15rem 1.15rem;
	border: 1px solid color-mix(in srgb, #8f1d13 28%, var(--rim-ca-border));
	border-radius: 16px;
	background:
		linear-gradient(180deg, color-mix(in srgb, #8f1d13 7%, #fff) 0%, #fff 100%);
	box-shadow: 0 6px 18px rgba(143, 29, 19, 0.08);
}

.rim-customer-account__privacy-block-badge--danger {
	background: color-mix(in srgb, #8f1d13 8%, #fff);
	border-color: color-mix(in srgb, #8f1d13 18%, transparent);
	color: #8f1d13;
}

.rim-customer-account__privacy--premium .rim-customer-account__subsection-title {
	margin-bottom: 0.4rem;
	font-size: clamp(1rem, 2.4vw, 1.08rem);
}

.rim-customer-account__privacy--premium .rim-customer-account__card-intro {
	margin-bottom: 0.75rem;
	font-size: 0.88rem;
}

.rim-customer-account__warning--premium {
	margin-bottom: 0.85rem;
	padding: 0.65rem 0.8rem 0.65rem 0.95rem;
	border-left: 3px solid color-mix(in srgb, var(--rim-ca-primary) 55%, var(--rim-ca-gold));
	border-radius: 10px;
	background: color-mix(in srgb, var(--rim-ca-primary) 5%, #fff);
	border-top: 1px solid color-mix(in srgb, var(--rim-ca-primary) 12%, transparent);
	border-right: 1px solid color-mix(in srgb, var(--rim-ca-primary) 12%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--rim-ca-primary) 12%, transparent);
	color: color-mix(in srgb, var(--rim-ca-primary) 82%, #000);
}

.rim-customer-account__warning--danger {
	margin-bottom: 0.85rem;
	padding: 0.65rem 0.8rem 0.65rem 0.95rem;
	border-left: 3px solid #8f1d13;
	border-radius: 10px;
	background: color-mix(in srgb, #8f1d13 7%, #fff);
	border-top: 1px solid color-mix(in srgb, #8f1d13 16%, transparent);
	border-right: 1px solid color-mix(in srgb, #8f1d13 16%, transparent);
	border-bottom: 1px solid color-mix(in srgb, #8f1d13 16%, transparent);
	color: #8f1d13;
	font-weight: 600;
}

.rim-customer-account__privacy--premium .rim-customer-account__field input[type="password"] {
	padding: 0.78rem 0.85rem;
	border-radius: 12px;
	background: color-mix(in srgb, var(--rim-ca-cream) 72%, #fff);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rim-customer-account__privacy--premium .rim-customer-account__field input[type="password"]:focus {
	outline: none;
	border-color: color-mix(in srgb, var(--rim-ca-gold) 62%, var(--rim-ca-primary));
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rim-ca-gold) 18%, transparent);
}

.rim-customer-account__btn--premium-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 2.85rem;
	padding: 0.78rem 1.15rem;
	border: 1px solid color-mix(in srgb, var(--rim-ca-gold) 48%, var(--rim-ca-primary));
	border-radius: 999px;
	background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--rim-ca-cream) 68%, #fff) 100%);
	color: var(--rim-ca-primary);
	box-shadow: 0 6px 16px rgba(43, 31, 26, 0.08);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.rim-customer-account__btn--premium-outline:hover,
.rim-customer-account__btn--premium-outline:focus-visible {
	border-color: color-mix(in srgb, var(--rim-ca-gold) 72%, var(--rim-ca-primary));
	box-shadow: 0 10px 22px rgba(43, 31, 26, 0.12);
	transform: translateY(-1px);
}

.rim-customer-account__btn--danger-premium {
	min-height: 2.85rem;
	padding: 0.78rem 1.15rem;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #8f1d13 0%, color-mix(in srgb, #8f1d13 86%, #3d0808) 100%);
	color: #fff;
	box-shadow: 0 10px 24px rgba(143, 29, 19, 0.22);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rim-customer-account__btn--danger-premium:hover,
.rim-customer-account__btn--danger-premium:focus-visible {
	box-shadow: 0 14px 28px rgba(143, 29, 19, 0.28);
	transform: translateY(-1px);
}

.rim-customer-account__privacy-block--export .rim-customer-account__btn--premium-outline::before {
	content: '↓';
	font-size: 0.9rem;
	color: var(--rim-ca-gold);
}

/* Premium profile tab (Meine Daten) */

.rim-customer-account__profile--premium {
	display: grid;
	gap: 1rem;
	padding: 1.25rem 1.2rem 1.3rem;
	border: 1px solid color-mix(in srgb, var(--rim-ca-gold) 34%, #e8dfd4);
	border-radius: 18px;
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--rim-ca-gold) 9%, #fff) 0%, #fff 38%),
		linear-gradient(135deg, color-mix(in srgb, var(--rim-ca-cream) 72%, #fff) 0%, #fff 100%);
	box-shadow:
		0 1px 0 color-mix(in srgb, #fff 85%, transparent) inset,
		0 14px 34px rgba(43, 31, 26, 0.08);
	position: relative;
	overflow: hidden;
}

.rim-customer-account__profile--premium::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--rim-ca-gold) 0%, color-mix(in srgb, var(--rim-ca-primary) 72%, var(--rim-ca-gold)) 100%);
}

.rim-customer-account__profile-hero {
	position: relative;
	z-index: 1;
}

.rim-customer-account__profile-badge,
.rim-customer-account__profile-block-badge {
	display: inline-flex;
	align-items: center;
	margin: 0 0 0.55rem;
	padding: 0.28rem 0.62rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--rim-ca-primary) 8%, #fff);
	border: 1px solid color-mix(in srgb, var(--rim-ca-primary) 14%, transparent);
	color: var(--rim-ca-primary);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.rim-customer-account__profile--premium .rim-customer-account__card-title {
	font-size: clamp(1.15rem, 2.8vw, 1.35rem);
	line-height: 1.15;
}

.rim-customer-account__profile-panel {
	margin-top: 0;
	padding: 1.1rem 1.15rem 1.15rem;
	border: 1px solid var(--rim-ca-border);
	border-radius: 16px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--rim-ca-cream) 55%, #fff) 0%, #fff 100%);
	box-shadow: 0 6px 18px rgba(43, 31, 26, 0.05);
	position: relative;
	z-index: 1;
}

.rim-customer-account__profile--premium .rim-customer-account__subsection {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.rim-customer-account__profile-panel--password {
	border-color: color-mix(in srgb, var(--rim-ca-gold) 24%, var(--rim-ca-border));
}

.rim-customer-account__profile--premium .rim-customer-account__subsection-title {
	margin-bottom: 0.65rem;
	font-size: clamp(1rem, 2.4vw, 1.08rem);
}

.rim-customer-account__profile--premium .rim-customer-account__form {
	gap: 0.9rem;
}

.rim-customer-account__profile--premium .rim-customer-account__field input[type="text"],
.rim-customer-account__profile--premium .rim-customer-account__field input[type="email"],
.rim-customer-account__profile--premium .rim-customer-account__field input[type="tel"],
.rim-customer-account__profile--premium .rim-customer-account__field input[type="password"] {
	padding: 0.78rem 0.85rem;
	border-radius: 12px;
	background: color-mix(in srgb, var(--rim-ca-cream) 72%, #fff);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rim-customer-account__profile--premium .rim-customer-account__field input:focus {
	outline: none;
	border-color: color-mix(in srgb, var(--rim-ca-gold) 62%, var(--rim-ca-primary));
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rim-ca-gold) 18%, transparent);
}

.rim-customer-account__profile--premium .rim-customer-account__input--readonly,
.rim-customer-account__profile--premium .rim-customer-account__field input[readonly] {
	background: color-mix(in srgb, var(--rim-ca-cream) 42%, #f3ece2);
	border-style: dashed;
	color: var(--rim-ca-muted);
	opacity: 1;
}

.rim-customer-account__choices--premium {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.55rem;
}

.rim-customer-account__choices--premium .rim-customer-account__choice {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.55rem 0.85rem;
	border: 1px solid var(--rim-ca-border);
	border-radius: 999px;
	background: #fff;
	font-size: 0.86rem;
	font-weight: 800;
	color: var(--rim-ca-primary);
	cursor: pointer;
	transition:
		border-color 0.18s ease,
		background 0.18s ease,
		box-shadow 0.18s ease,
		color 0.18s ease,
		transform 0.18s ease;
}

.rim-customer-account__choices--premium .rim-customer-account__choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.rim-customer-account__choices--premium .rim-customer-account__choice:has(input:checked) {
	border-color: color-mix(in srgb, var(--rim-ca-primary) 72%, var(--rim-ca-gold));
	background: linear-gradient(135deg, var(--rim-ca-primary) 0%, color-mix(in srgb, var(--rim-ca-primary) 86%, #3d1018) 100%);
	color: var(--rim-ca-cream);
	box-shadow: 0 8px 18px rgba(43, 31, 26, 0.14);
}

.rim-customer-account__choices--premium .rim-customer-account__choice:has(input:focus-visible) {
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rim-ca-gold) 18%, transparent);
}

.rim-customer-account__btn--primary-premium {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: 100%;
	min-height: 2.9rem;
	padding: 0.8rem 1.15rem;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--rim-ca-primary) 0%, color-mix(in srgb, var(--rim-ca-primary) 86%, #3d1018) 100%);
	color: var(--rim-ca-cream);
	box-shadow: 0 10px 24px rgba(43, 31, 26, 0.16);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rim-customer-account__btn--primary-premium:hover,
.rim-customer-account__btn--primary-premium:focus-visible {
	box-shadow: 0 14px 28px rgba(43, 31, 26, 0.2);
	transform: translateY(-1px);
}

.rim-customer-account__btn--primary-premium::before {
	content: '✦';
	font-size: 0.82rem;
	color: var(--rim-ca-gold);
}

.rim-customer-account__profile-panel--password .rim-customer-account__btn--premium-outline {
	margin-top: 0.15rem;
}

@media (max-width: 640px) {
	.rim-customer-account__field-row {
		grid-template-columns: 1fr;
	}

	.rim-customer-account__tabs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.22rem;
		padding: 0.22rem;
		border-radius: 12px;
	}

	.rim-customer-account__tab {
		min-height: 2.15rem;
		padding: 0.38rem 0.28rem;
		border-radius: 9px;
		font-size: 0.72rem;
		line-height: 1.15;
		letter-spacing: -0.01em;
	}

	.rim-customer-account__tab.is-active {
		box-shadow: 0 4px 10px rgba(43, 31, 26, 0.14);
	}

	.rim-customer-account__choices--premium {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.4rem;
	}

	.rim-customer-account__choices--premium .rim-customer-account__choice {
		min-height: 2.1rem;
		padding: 0.38rem 0.5rem;
		font-size: 0.76rem;
	}
}

@media (max-width: 380px) {
	.rim-customer-account__tab {
		min-height: 2rem;
		padding: 0.32rem 0.2rem;
		font-size: 0.66rem;
	}

	.rim-customer-account__choices--premium .rim-customer-account__choice {
		min-height: 1.95rem;
		padding: 0.32rem 0.4rem;
		font-size: 0.72rem;
	}
}

/* Premium confirm modal */

body.rim-customer-account-modal-open {
	overflow: hidden;
}

.rim-customer-account__modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	opacity: 0;
	transition: opacity 0.18s ease;
}

.rim-customer-account__modal[hidden] {
	display: none !important;
}

.rim-customer-account__modal.is-open {
	opacity: 1;
}

.rim-customer-account__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 12, 8, 0.58);
	backdrop-filter: blur(3px);
}

.rim-customer-account__modal-dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 26rem);
	padding: 1.2rem 1.15rem 1.15rem;
	border: 1px solid color-mix(in srgb, var(--rim-ca-gold) 34%, #e8dfd4);
	border-radius: 18px;
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--rim-ca-gold) 9%, #fff) 0%, #fff 42%),
		linear-gradient(135deg, color-mix(in srgb, var(--rim-ca-cream) 72%, #fff) 0%, #fff 100%);
	box-shadow:
		0 1px 0 color-mix(in srgb, #fff 85%, transparent) inset,
		0 22px 48px rgba(20, 12, 8, 0.28);
	transform: translateY(10px) scale(0.98);
	transition: transform 0.2s ease;
	overflow: hidden;
}

.rim-customer-account__modal.is-open .rim-customer-account__modal-dialog {
	transform: translateY(0) scale(1);
}

.rim-customer-account__modal-dialog::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--rim-ca-gold) 0%, color-mix(in srgb, var(--rim-ca-primary) 72%, var(--rim-ca-gold)) 100%);
}

.rim-customer-account__modal--danger .rim-customer-account__modal-dialog::before {
	background: linear-gradient(90deg, #c4473d 0%, #8f1d13 100%);
}

.rim-customer-account__modal-close {
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 999px;
	background: color-mix(in srgb, var(--rim-ca-primary) 6%, #fff);
	color: var(--rim-ca-muted);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}

.rim-customer-account__modal-close:hover,
.rim-customer-account__modal-close:focus-visible {
	background: color-mix(in srgb, var(--rim-ca-primary) 10%, #fff);
	color: var(--rim-ca-primary);
}

.rim-customer-account__modal-badge {
	display: inline-flex;
	align-items: center;
	margin: 0 0 0.55rem;
	padding: 0.28rem 0.62rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--rim-ca-primary) 8%, #fff);
	border: 1px solid color-mix(in srgb, var(--rim-ca-primary) 14%, transparent);
	color: var(--rim-ca-primary);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.rim-customer-account__modal--danger .rim-customer-account__modal-badge {
	background: color-mix(in srgb, #8f1d13 8%, #fff);
	border-color: color-mix(in srgb, #8f1d13 18%, transparent);
	color: #8f1d13;
}

.rim-customer-account__modal-title {
	margin: 0 0 0.45rem;
	padding-right: 1.75rem;
	font-size: clamp(1.1rem, 2.8vw, 1.28rem);
	line-height: 1.15;
	color: var(--rim-ca-primary);
}

.rim-customer-account__modal-message {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--rim-ca-muted);
}

.rim-customer-account__modal-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.55rem;
}

.rim-customer-account__modal-actions .rim-customer-account__btn {
	width: 100%;
	min-height: 2.75rem;
}

.rim-customer-account__modal-actions .rim-customer-account__btn--primary-premium::before {
	content: none;
}

@media (max-width: 420px) {
	.rim-customer-account__modal {
		padding: 0.75rem;
	}

	.rim-customer-account__modal-actions {
		grid-template-columns: 1fr;
	}
}

.rim-customer-account__login-panel--forgot {
	margin-top: 0.35rem;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(123, 30, 45, 0.12);
}

.rim-customer-account__forgot-wrap {
	margin: -0.15rem 0 0.65rem;
	text-align: right;
}

.rim-customer-account__forgot-link {
	border: 0;
	padding: 0;
	background: transparent;
	color: var(--rim-ca-primary);
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.14em;
	cursor: pointer;
}

.rim-customer-account__forgot-link:hover,
.rim-customer-account__forgot-link:focus-visible {
	color: #5c1520;
}
