/* ALTCommerce — checkout & member styles */

:root {
	/* Primary brand: adjust these variables to change the main plugin color system. */
	--altcommerce-color-primary: #4caf50;
	--altcommerce-color-primary-hover: #45a049;
	--altcommerce-color-primary-active: #43a047;
	--altcommerce-color-primary-strong: #2e7d32;
	--altcommerce-color-primary-soft: #66bb6a;
	--altcommerce-color-primary-on-surface: #047857;
	--altcommerce-color-primary-surface: #ecfdf5;
	/* Set RGB triplet (0-255) matching --altcommerce-color-primary for focus/halo color. */
	--altcommerce-color-primary-rgb: 76, 175, 80;
}

.altcommerce-checkout-wrapper {
	max-width: 768px;
	margin: 0 auto;
}

.altcommerce-checkout-form {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
}

.altcommerce-member-auth-card {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
}

.altcommerce-checkout-field {
	margin-bottom: 20px;
}

.altcommerce-checkout-field label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.altcommerce-checkout-field .required {
	color: #e74c3c;
	font-size: 12px;
}

.altcommerce-checkout-field--member-logged-in {
    border: 1px dashed var(--altcommerce-color-primary-on-surface);
    padding: 16px;
    border-radius: 4px;
}

/* Two columns on checkout (name+phone, email+username, password+confirm); stacks on small screens */
.altcommerce-checkout-field-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 16px;
	margin-bottom: 10px;
	width: 100%;
	box-sizing: border-box;
}

.altcommerce-checkout-field-row > .altcommerce-checkout-field {
	margin-bottom: 0;
}

.altcommerce-password-pair.altcommerce-checkout-field-row .altcommerce-password-match-hint {
	grid-column: 1 / -1;
	margin-bottom: 0;
}

@media (max-width: 560px) {
	.altcommerce-checkout-form .altcommerce-checkout-field-row {
		grid-template-columns: 1fr;
	}
}

/* Matches `.altcommerce-checkout-field label` (payment inputs, etc.) */
.altcommerce-checkout-field-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

/* Product / upsell blocks — section title slightly stronger than form labels */
.altcommerce-checkout-field--product-main > .altcommerce-checkout-field-label,
.altcommerce-checkout-field--upsells > .altcommerce-checkout-field-label {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
}

/* Main product card (single line item, no quantity) */
.altcommerce-checkout-product-card {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 16px;
	background: #fff;
}

.altcommerce-checkout-product-card__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-start;
}

.altcommerce-checkout-product-card__media {
	flex: 0 0 auto;
	width: 140px;
	max-width: 40%;
}

.altcommerce-checkout-product-card__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.altcommerce-checkout-product-card__content {
	flex: 1 1 200px;
	min-width: 0;
}

@media (max-width: 500px) {
	.altcommerce-checkout-product-card__media {
		width: 100%;
		max-width: 100%;
	}

	.altcommerce-checkout-product-card__img {
		max-height: 220px;
		aspect-ratio: auto;
		object-fit: cover;
	}
}

.altcommerce-checkout-product-card__excerpt {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.55;
	color: #555;
}

.altcommerce-checkout-product-card__title {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.35;
	margin: 0 0 8px;
}

.altcommerce-checkout-product-card__prices {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 14px;
}

.altcommerce-checkout-product-card .altcommerce-price-regular {
	font-size: 14px;
}

.altcommerce-price-regular {
	font-size: 14px;
	color: #94a3b8;
	text-decoration: line-through;
	font-weight: 500;
}

.altcommerce-checkout-product-card .altcommerce-price-sale,
.altcommerce-checkout-product-card .altcommerce-price-current {
	font-size: 17px;
	font-weight: 700;
}

.altcommerce-price-sale,
.altcommerce-price-current {
	font-size: 17px;
	font-weight: 700;
	color: var(--altcommerce-color-primary-on-surface);
	letter-spacing: -0.2px;
}

.altcommerce-price-current:only-child {
	color: #0f172a;
}

/* Upsell section — vertical list */
.altcommerce-upsell-intro {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 400;
	color: #555;
	line-height: 1.5;
}

.altcommerce-upsell-list {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.altcommerce-upsell-card {
	border-radius: 4px;
	border: 1px solid #ddd;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.altcommerce-upsell-card:hover {
	border-color: #ccc;
}

.altcommerce-upsell-card__label {
	display: block;
	margin: 0;
	cursor: pointer;
	height: 100%;
	position: relative;
	margin-bottom: 0 !important;
}

.altcommerce-upsell-card__body {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 16px;
	padding: 16px;
	position: relative;
	min-height: 0;
}

/* Custom checkbox — consistent size, focus ring, checked state */
.altcommerce-upsell-card__label input.altcommerce-upsell-toggle {
	position: absolute;
	left: 20px;
	top: 20px;
	width: 15px;
	height: 15px;
	margin: 0;
	cursor: pointer;
	flex-shrink: 0;
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #bdbdbd;
	border-radius: 0;
	background-color: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
	padding: 0;
	z-index: 9;
}

.altcommerce-upsell-card__label input.altcommerce-upsell-toggle:hover {
	border-color: var(--altcommerce-color-primary-soft);
}

.altcommerce-upsell-card__label input.altcommerce-upsell-toggle:focus {
	outline: none;
}

.altcommerce-upsell-card__label input.altcommerce-upsell-toggle:focus-visible {
	box-shadow: 0 0 0 3px rgba(var(--altcommerce-color-primary-rgb), 0.4);
}

.altcommerce-upsell-card__label input.altcommerce-upsell-toggle:checked {
	background-color: var(--altcommerce-color-primary);
	border-color: var(--altcommerce-color-primary-active);
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E" );
	background-size: 15px;
	background-position: center;
	background-repeat: no-repeat;
}

.altcommerce-upsell-card__label input.altcommerce-upsell-toggle:checked:hover {
	border-color: var(--altcommerce-color-primary-strong);
	background-color: var(--altcommerce-color-primary-active);
}

.altcommerce-upsell-card__media {
	display: block;
	flex: 0 0 auto;
	width: 112px;
}

.altcommerce-upsell-card__img {
	display: block;
	width: 112px;
	height: 112px;
	object-fit: cover;
	border: 1px solid #ddd;
	border-radius: 4px;
}

@media (max-width: 500px) {
	.altcommerce-upsell-card__body {
		flex-direction: column;
		padding-top: 18px;
	}

	.altcommerce-upsell-card__label input.altcommerce-upsell-toggle {
		top: 18px;
		left: 12px;
		transform: none;
	}

	.altcommerce-upsell-card__media {
		width: 100%;
		margin-left: 0;
	}

	.altcommerce-upsell-card__img {
		width: 100%;
		height: auto;
		max-height: 200px;
		aspect-ratio: 16 / 10;
	}
}

.altcommerce-upsell-card__text {
	display: flex;
	flex-direction: column;
	gap: 9px;
	flex: 1 1 220px;
	min-width: 0;
}

.altcommerce-upsell-card__title {
	font-weight: 700;
	font-size: 16px;
	color: #1e293b;
	line-height: 1.35;
}

.altcommerce-upsell-card__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.55;
	color: #555;
	font-weight: 400;
}

.altcommerce-upsell-card__prices {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
}

.altcommerce-upsell-card__prices .altcommerce-price-regular {
	font-size: 14px;
}

.altcommerce-upsell-card__prices .altcommerce-price-sale,
.altcommerce-upsell-card__prices .altcommerce-price-current {
	font-size: 16px;
	font-weight: 700;
}

.altcommerce-upsell-card:has( .altcommerce-upsell-toggle:checked ) {
	border-color: var(--altcommerce-color-primary);
	background: var(--altcommerce-color-primary-surface);
}

.altcommerce-checkout-field input[type="text"],
.altcommerce-checkout-field input[type="tel"],
.altcommerce-checkout-field input[type="number"],
.altcommerce-checkout-field input[type="email"],
.altcommerce-checkout-field input[type="password"],
.altcommerce-checkout-field input[type="address"] {
	width: 100%;
	padding: 0 12px;
	box-sizing: border-box;
	min-height: 40px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.3s;
}

.altcommerce-checkout-field.altcommerce-checkout-field--remember label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 0;
	font-weight: 600;
	cursor: pointer;
}

.altcommerce-checkout-field.altcommerce-checkout-field--remember input[type="checkbox"] {
	width: 18px;
	height: 18px;
	min-height: 0;
	margin: 0;
	flex-shrink: 0;
	accent-color: var(--altcommerce-color-primary);
}

.altcommerce-member-auth-card .altcommerce-member-form {
	margin: 0;
}

/* Member login & registration (separate BEM from checkout; same look) */
.altcommerce-member-shell {
	max-width: 480px;
	margin: 0 auto 32px;
}

.altcommerce-member-field {
	margin-bottom: 10px;
}

.altcommerce-member-field label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.altcommerce-member-field .required {
	color: #e74c3c;
	font-size: 12px;
}

.altcommerce-member-field input[type="text"],
.altcommerce-member-field input[type="tel"],
.altcommerce-member-field input[type="email"],
.altcommerce-member-field input[type="password"] {
	width: 100%;
	padding: 0 12px;
	box-sizing: border-box;
	min-height: 40px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.3s;
}

.altcommerce-member-field input:focus,
.altcommerce-member-field textarea:focus {
	outline: none;
	border-color: var(--altcommerce-color-primary);
}

.altcommerce-member-field.altcommerce-member-field--remember label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 0;
	font-weight: 600;
	cursor: pointer;
}

.altcommerce-member-field.altcommerce-member-field--remember input[type="checkbox"] {
	width: 18px;
	height: 18px;
	min-height: 0;
	margin: 0;
	flex-shrink: 0;
	accent-color: var(--altcommerce-color-primary);
}

.altcommerce-member-field.altcommerce-member-field--remember-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 12px;
}

.altcommerce-member-field--remember-row > .altcommerce-member-field--remember {
	margin-bottom: 0;
	flex: 0 1 auto;
	min-width: 0;
}

.altcommerce-member-field--remember-row .altcommerce-member-forgot-password {
	margin: 0;
	flex: 0 0 auto;
	font-size: 13px;
	line-height: 1.4;
	text-align: right;
}

.altcommerce-member-forgot-password a {
	font-weight: 600;
	color: #0f172a;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.altcommerce-member-forgot-password a:hover {
	color: var(--altcommerce-color-primary-on-surface);
}

.altcommerce-member-submit {
	width: 100%;
	padding: 15px;
	margin-top: 4px;
	background-color: var(--altcommerce-color-primary);
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	transition: background-color 0.3s;
}

.altcommerce-member-submit:hover {
	background-color: var(--altcommerce-color-primary-hover);
}

.altcommerce-member-submit:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}

.altcommerce-member-notice {
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 16px;
}

.altcommerce-member-notice--error {
	background: #f8d7da;
	color: #721c24;
}

.altcommerce-member-notice--success {
	background: #d4edda;
	color: #155724;
}

.altcommerce-member-auth-card > .altcommerce-member-notice:last-child {
	margin-bottom: 0;
}

.altcommerce-member-form-alt,
.altcommerce-checkout-secondary-link {
	margin: 14px 0 0;
	font-size: 14px;
}

.altcommerce-member-form-alt {
	text-align: center;
}

.altcommerce-member-form-alt a,
.altcommerce-checkout-secondary-link a {
	font-weight: 600;
	color: #0f172a;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.altcommerce-member-form-alt a:hover,
.altcommerce-checkout-secondary-link a:hover {
	color: var(--altcommerce-color-primary-on-surface);
}

/* Guest member block: align with other checkout rows */
.altcommerce-checkout-field--member:not(.altcommerce-checkout-field--member-logged-in) {
	margin-top: 6px;
	padding-top: 18px;
	border-top: 1px solid #eee;
}

.altcommerce-checkout-field--member > .altcommerce-checkout-field-label {
	margin-bottom: 8px;
}

.altcommerce-checkout-field--member .altcommerce-checkout-field-desc {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
	color: #555;
}

/* Password fields: visibility toggle + realtime match hint */
.altcommerce-password-wrap {
	position: relative;
	display: block;
	width: 100%;
}

.altcommerce-password-wrap input[type="password"],
.altcommerce-password-wrap input[type="text"] {
	width: 100%;
	box-sizing: border-box;
	padding-right: 44px;
}

.altcommerce-password-toggle {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 6px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #64748b;
	line-height: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.altcommerce-password-toggle:hover {
	color: #0f172a;
	background: rgba(15, 23, 42, 0.06);
}

.altcommerce-password-toggle:focus-visible {
	outline: 2px solid var(--altcommerce-color-primary);
	outline-offset: 2px;
}

.altcommerce-password-toggle-svg--closed {
	display: none;
}

.altcommerce-password-toggle--visible .altcommerce-password-toggle-svg--open {
	display: none;
}

.altcommerce-password-toggle--visible .altcommerce-password-toggle-svg--closed {
	display: block;
}

.altcommerce-password-match-hint {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.4;
}

.altcommerce-password-match-hint--ok {
	color: #155724;
}

.altcommerce-password-match-hint--bad {
	color: #721c24;
}

/* Distinguish “too short” vs “do not match” in the live hint */
.altcommerce-password-match-hint--reason-length {
	border-left: 3px solid #b45309;
	padding-left: 8px;
}

.altcommerce-password-match-hint--reason-mismatch {
	border-left: 3px solid #9f1239;
	padding-left: 8px;
}

.altcommerce-password-pair .altcommerce-password-match-hint[hidden] {
	display: none !important;
	margin: 0;
	padding: 0;
	min-height: 0;
	overflow: hidden;
	border: 0;
}

.altcommerce-checkout-field--member-logged-in .altcommerce-checkout-field-desc:last-child {
	margin-bottom: 0;
}

.altcommerce-checkout-logged-in-email {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.45;
	color: #0f172a;
}

.altcommerce-checkout-logged-in-email-label {
	font-weight: 600;
	margin-right: 5px;
}

.altcommerce-checkout-logged-in-email-label::after {
	content: ':';
}

.altcommerce-checkout-logged-in-email-value {
	word-break: break-all;
}

.altcommerce-checkout-logged-in-profile {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 10px;
	row-gap: 4px;
	margin: 0 0 8px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
	font-size: 12px;
	line-height: 1.45;
	color: #64748b;
}

.altcommerce-checkout-logged-in-profile-segment {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 6px;
	max-width: 100%;
}

.altcommerce-checkout-logged-in-profile-segment:not(:last-child)::after {
	content: '·';
	margin-left: 6px;
	color: #cbd5e1;
	font-weight: 400;
	flex: 0 0 auto;
}

.altcommerce-checkout-logged-in-profile-label {
	font-weight: 600;
	color: #64748b;
	font-size: 12px;
	flex: 0 0 auto;
}

.altcommerce-checkout-logged-in-profile-label::after {
	content: ':';
}

.altcommerce-checkout-logged-in-profile-value {
	font-size: 12px;
	color: #475569;
	word-break: break-word;
	min-width: 0;
}

.altcommerce-checkout-field input:focus,
.altcommerce-checkout-field textarea:focus {
	outline: none;
	border-color: var(--altcommerce-color-primary);
}

.altcommerce-checkout-summary {
	margin: 20px 0;
}

.altcommerce-checkout-summary-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
	padding-bottom: 10px;
	line-height: 1;
}

.altcommerce-checkout-summary-row:last-child {
	border-bottom: none;
}

.altcommerce-checkout-summary-row--total {
	margin-top: 10px;
	padding-top: 10px;
	font-size: 18px;
}

.altcommerce-checkout-submit {
	width: 100%;
	padding: 15px;
	background-color: var(--altcommerce-color-primary);
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	transition: background-color 0.3s;
}

.altcommerce-checkout-submit:hover {
	background-color: var(--altcommerce-color-primary-hover);
}

.altcommerce-checkout-submit:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}

.altcommerce-checkout-payment {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
}

.altcommerce-checkout-payment h3 {
	margin-top: 0;
	color: var(--altcommerce-color-primary);
	border-bottom: 2px solid var(--altcommerce-color-primary);
	padding-bottom: 10px;
	text-align: center;
}

.altcommerce-checkout-payment-details {
	margin-top: 20px;
}

.altcommerce-checkout-detail-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.altcommerce-checkout-detail-row:last-child {
	border-bottom: none;
}

.altcommerce-checkout-status {
	font-weight: bold;
	color: #d99100;
}

.altcommerce-checkout-status[data-status="paid"] {
	color: #2e8b57;
}

.altcommerce-checkout-status-note {
	margin: 10px 0 20px;
	font-size: 14px;
	color: #666;
}

.altcommerce-checkout-status-note.paid {
	color: #2e8b57;
	font-weight: 600;
}

.altcommerce-gateway-sepay-qr-wrapper {
	text-align: center;
	margin-top: 30px;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 4px;
}

.altcommerce-gateway-sepay-qr-wrapper img {
	max-width: 250px;
	height: auto;
	border: 1px solid #ddd;
	padding: 10px;
	background: white;
}

.altcommerce-gateway-sepay-qr-instruction {
	margin-top: 15px;
	color: #666;
	font-style: italic;
}

.altcommerce-gateway-single-label {
	font-weight: 600;
	color: #0f172a;
}

.altcommerce-gateway-instructions {
	margin: 12px 0;
	padding: 12px 14px;
	border-radius: 8px;
	background: #fff7ed;
	color: #92400e;
	display: none;
}

.altcommerce-gateway-instructions p {
	margin: 0;
}

.altcommerce-gateway-error {
	color: #b91c1c;
	font-weight: 600;
}

.altcommerce-checkout-loading {
	text-align: center;
	padding: 20px;
	color: #666;
}

.altcommerce-checkout-error {
	background: #f8d7da;
	color: #721c24;
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.altcommerce-checkout-success {
	background: #d4edda;
	color: #155724;
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
}

/* Member: account shortcode layout */
.altcommerce-member.altcommerce-member-account {
	max-width: 768px;
	margin: 0 auto 32px;
}

.altcommerce-account-shell {
	max-width: 900px;
}

.altcommerce-member.altcommerce-member-account.altcommerce-account-shell {
	max-width: 1040px;
}

/* My Account: sidebar tabs (left) + main (right) */
.altcommerce-account-layout {
	display: grid;
	grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
	gap: 28px 32px;
	background-color: #fff;
	padding: 20px;
	border-radius: 8px;
}

.altcommerce-account-layout__sidebar .altcommerce-account-nav {
	margin: 0;
	padding: 0;
	border-bottom: none;
	position: sticky;
	top: 24px;
}

.altcommerce-account-layout__sidebar .altcommerce-account-nav__list {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	border-radius: 8px;
    background: #f5f5f5;
    overflow: hidden;
}

.altcommerce-account-layout__sidebar .altcommerce-account-nav__list li:not(:last-child) a {
    border-bottom: 1px solid #ddd;
}

.altcommerce-account-layout__sidebar .altcommerce-account-nav__link {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	border-radius: 0;
	font-size: 14px;
	font-weight: 600;
	color: #475569;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.altcommerce-account-layout__sidebar .altcommerce-account-nav__link:hover {
	background: var(--altcommerce-color-primary-surface);
	color: var(--altcommerce-color-primary-strong);
}

.altcommerce-account-layout__sidebar .altcommerce-account-nav__link.is-active {
	background: var(--altcommerce-color-primary);
	color: #fff;
	border-color: var(--altcommerce-color-primary) !important;
}

@media (min-width: 783px) {
	.altcommerce-account-layout__main {
		border-left: 1px solid #e2e8f0;
		padding-left: 24px;
	}
}

.altcommerce-account-layout__main {
	min-width: 0;
}

.altcommerce-account-nav {
	margin: 0 0 20px;
	border-bottom: 1px solid #e2e8f0;
}

.altcommerce-account-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	list-style: none;
	margin: 0;
	padding: 0 0 12px;
}

.altcommerce-account-nav__link {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #475569;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.altcommerce-account-nav__link:hover {
	background: var(--altcommerce-color-primary-surface);
	color: var(--altcommerce-color-primary-strong);
}

.altcommerce-account-nav__link.is-active {
	background: var(--altcommerce-color-primary);
	color: #fff;
}

@media (max-width: 782px) {
	.altcommerce-account-layout {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.altcommerce-account-layout__sidebar {
		border-right: none;
		padding-right: 0;
	}

	.altcommerce-account-layout__sidebar .altcommerce-account-nav {
		position: static;
		border-bottom: 1px solid #e2e8f0;
		padding-bottom: 8px;
	}

	.altcommerce-account-layout__sidebar .altcommerce-account-nav__list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
	}

	.altcommerce-account-layout__sidebar .altcommerce-account-nav__link {
		width: auto;
	}
}

.altcommerce-account-panel__hint {
	margin: 0;
	font-size: 14px;
}

.altcommerce-account-subheading {
	margin: 24px 0 8px;
	font-size: 16px;
	font-weight: 600;
}

/* Intro under “Change password” — scoped class (not WP `.description`) */
.altcommerce-account-password-section-hint {
	margin: 0 0 18px;
	font-size: 13px;
	line-height: 1.5;
	color: #64748b;
}

.altcommerce-account-readonly {
	background: #f8fafc;
	color: #64748b;
	cursor: not-allowed;
}

.altcommerce-member-field textarea {
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-family: inherit;
	font-size: 15px;
	box-sizing: border-box;
}

.altcommerce-account-downloads-intro {
	margin: 0 0 16px;
	font-size: 14px;
	color: #475569;
}

.altcommerce-account-downloads-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.altcommerce-account-downloads-list__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 0;
	border-bottom: 1px solid #e2e8f0;
}

.altcommerce-account-downloads-list__item:last-child {
	border-bottom: none;
}

.altcommerce-account-downloads-list__link {
	font-weight: 600;
	color: #2563eb;
	text-decoration: none;
}

.altcommerce-account-downloads-list__link:hover {
	text-decoration: underline;
}

.altcommerce-account-downloads-list__meta {
	font-size: 13px;
	color: #64748b;
}

/* Account edit: gap between input and helper copy (e.g. email note) */
.altcommerce-account-edit-form .altcommerce-member-field .description {
	margin-top: 12px;
	margin-bottom: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #64748b;
}

.altcommerce-account-panel--logout .altcommerce-account-logout-confirm__text {
	margin: 0 0 20px;
	font-size: 15px;
	color: #475569;
	line-height: 1.5;
}

.altcommerce-account-logout-confirm__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

a.altcommerce-account-logout-confirm__confirm.altcommerce-member-submit {
	width: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: #fff;
	background: #64748b;
	border: none;
	border-radius: 6px;
	text-decoration: none;
	box-sizing: border-box;
	box-shadow: none;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

a.altcommerce-account-logout-confirm__confirm.altcommerce-member-submit:hover {
	background: #475569;
	color: #fff;
	filter: none;
}

.altcommerce-account-logout-confirm__cancel {
	font-size: 15px;
	font-weight: 600;
	color: #475569;
	text-decoration: none;
}

.altcommerce-account-logout-confirm__cancel:hover {
	color: #0f172a;
	text-decoration: underline;
}

.altcommerce-account-layout__sidebar .altcommerce-account-nav__link--logout:not(.is-active):hover {
	color: #b91c1c;
	background: #fef2f2;
}

.altcommerce-member-welcome {
	margin: 0 0 20px;
	font-size: 15px;
	color: #334155;
}

.altcommerce-member-login-prompt {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #e2e8f0;
	font-size: 14px;
}

.altcommerce-member-login-prompt a {
	font-weight: 600;
}

.altcommerce-member-error {
	background: #f8d7da;
	color: #721c24;
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.altcommerce-member-footer {
	margin-top: 16px;
	font-size: 14px;
}

.altcommerce-member-account-dashboard .altcommerce-member-account-heading {
	margin: 0 0 12px;
	font-size: 18px;
}

.altcommerce-member-account-dashboard ul.altcommerce-member-profile {
    padding-left: 15px;
	margin-bottom: 20px;
}

.altcommerce-member-account-table-wrap {
	overflow-x: auto;
	margin-top: 12px;
}

.altcommerce-member-account-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.altcommerce-member-account-table th,
.altcommerce-member-account-table td {
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	text-align: left;
	vertical-align: top;
}

.altcommerce-member-account-table th {
	background: #f8fafc;
	font-weight: 600;
}

.altcommerce-member-orders__actions {
	white-space: nowrap;
}

.altcommerce-account-downloads-filter-note {
	margin: 0 0 14px;
	font-size: 14px;
	color: #475569;
	line-height: 1.5;
}

.altcommerce-account-downloads-filter-clear {
	margin-left: 10px;
	font-weight: 600;
	color: #2563eb;
	text-decoration: none;
	white-space: nowrap;
}

.altcommerce-account-downloads-filter-clear:hover {
	text-decoration: underline;
}
