/* ============================================================================
   account.css — My Account / My Tickets pages.
   ============================================================================ */

.woocommerce-MyAccount-content h2 { color: var(--dtr-primary); }

.dtr-my-tickets { display: flex; flex-direction: column; gap: 24px; }
.dtr-my-tickets--empty { text-align: center; padding: 32px; background: var(--dtr-cream); border-radius: var(--dtr-radius-lg); }

.dtr-ticket-block { background: var(--dtr-white); border: 1px solid var(--dtr-grey-100); border-radius: var(--dtr-radius-lg); padding: 20px; box-shadow: var(--dtr-shadow-sm); }
.dtr-ticket-block__head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--dtr-grey-100); }
.dtr-ticket-block__head img { border-radius: var(--dtr-radius-sm); object-fit: cover; }
.dtr-ticket-block h3 { margin: 0; font-size: 1.1rem; }
.dtr-ticket-block h3 a { color: var(--dtr-primary); }
.dtr-ticket-block__meta { color: var(--dtr-grey-600); margin: 4px 0 0; font-size: 0.875rem; }

.dtr-ticket-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.dtr-ticket-list li { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--dtr-cream); border-radius: var(--dtr-radius-sm); border: 1px solid var(--dtr-beige); }
.dtr-ticket-list code { font-family: 'Courier New', monospace; font-weight: 700; color: var(--dtr-primary); font-size: 0.85rem; }
.dtr-ticket-status { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: var(--dtr-radius-pill); }
.dtr-ticket-status--won { background: var(--dtr-gold); color: var(--dtr-primary); }
.dtr-ticket-status--invalid { background: var(--dtr-grey-300); color: var(--dtr-grey-900); }
.dtr-ticket-status--lost { background: rgba(217,76,58,0.1); color: var(--dtr-red); }
.dtr-ticket-status--active { background: var(--dtr-green); color: var(--dtr-white); }

.dtr-order-tickets code { font-family: 'Courier New', monospace; }

/* The dashboard's left-nav already labels the section ("Dashboard / Orders /
   My Tickets / …"), so the Astra-injected page H1 is redundant on every
   My Account view (logged-in dashboard, endpoints, and the logged-out
   login/register screens). Hide the entire .entry-header to avoid leaving an
   empty padded block behind it. */
.woocommerce-account .entry-header { display: none; }

/* ============================================================================
   Dashboard layout — sidebar nav + content card (logged-in My Account).
   Wraps the default Woo .woocommerce wrapper that contains
   .woocommerce-MyAccount-navigation + .woocommerce-MyAccount-content.
   ============================================================================ */

.woocommerce-account.logged-in .ast-container,
.woocommerce-account.logged-in #primary {
	padding-top: 32px;
	padding-bottom: 64px;
}

.woocommerce-account.logged-in .woocommerce {
	max-width: var(--dtr-container);
	margin: 0 auto;
	padding: 0 var(--dtr-gutter);
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: start;
}

@media (min-width: 1024px) {
	.woocommerce-account.logged-in .woocommerce {
		grid-template-columns: 280px 1fr;
		gap: 32px;
	}
}

/**
 * Override Astra 4.13.x legacy WooCommerce float layout for My Account.
 *
 * Astra ships woocommerce-layout-grid.min.css that applies width: 30%/68% +
 * float to .woocommerce-MyAccount-navigation / -content. Our CSS grid makes
 * these grid children; percentage widths shrink within tracks instead of
 * filling.
 *
 * This reset (specificity 0,3,0) beats Astra's (0,2,0). Applied unconditionally
 * because Astra's float layout affects 768-1023px tablet band too.
 *
 * If Astra is uninstalled or replaced in the future, this block can be removed.
 */
.woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
.woocommerce-account.logged-in .woocommerce-MyAccount-content {
	width: auto;
	max-width: none;
	float: none;
	margin: 0;
}

/*
 * Pin the columns explicitly (mirrors checkout.css, which already assigns
 * grid-column to its items). Once Astra's floats are reset above, grid
 * auto-placement on Astra 4.13.x otherwise dropped the navigation into the wide
 * right-hand track and the content into the narrow sidebar track — i.e. swapped.
 * Explicit placement keeps the nav as the 280px sidebar and content as the 1fr
 * main column. Only relevant at the two-column breakpoint.
 */
@media (min-width: 1024px) {
	.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
		grid-column: 1;
	}
	.woocommerce-account.logged-in .woocommerce-MyAccount-content {
		grid-column: 2;
	}
}

/* --- Sidebar nav card ---------------------------------------------------- */

.woocommerce-MyAccount-navigation {
	background: var(--dtr-white);
	border: 1px solid var(--dtr-beige);
	border-radius: var(--dtr-radius-lg);
	padding: 8px;
	box-shadow: var(--dtr-shadow-sm);
}

@media (min-width: 1024px) {
	.woocommerce-MyAccount-navigation {
		position: sticky;
		top: 96px;
	}
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.woocommerce-MyAccount-navigation li {
	margin: 0;
}

.woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	border-radius: var(--dtr-radius-md);
	font-family: var(--dtr-font-heading);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--dtr-primary);
	text-decoration: none;
	letter-spacing: 0.01em;
	transition: background var(--dtr-transition), color var(--dtr-transition), padding var(--dtr-transition);
	border-left: 3px solid transparent;
}

.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li a:focus-visible {
	background: var(--dtr-cream);
	color: var(--dtr-primary-dark);
	outline: none;
}

.woocommerce-MyAccount-navigation li a:focus-visible {
	box-shadow: 0 0 0 3px rgba(226, 160, 58, 0.35);
}

/* Active item — teal panel, white text. aria-current="page" mirrors the
   .is-active class WC adds, so both selectors keep the active style even if
   one is missing (e.g. on custom endpoints). */
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a[aria-current="page"] {
	background: var(--dtr-primary);
	color: var(--dtr-white);
	border-left-color: var(--dtr-gold);
}
.woocommerce-MyAccount-navigation li.is-active a:hover,
.woocommerce-MyAccount-navigation li a[aria-current="page"]:hover {
	background: var(--dtr-primary-dark);
	color: var(--dtr-white);
}

/* My Tickets — visually emphasized: gold left rail + ticket glyph.
   Class is .woocommerce-MyAccount-navigation-link--my-tickets, emitted by
   wc_get_account_menu_item_classes() from the endpoint slug. */
.woocommerce-MyAccount-navigation-link--my-tickets a {
	border-left-color: var(--dtr-gold);
	background: linear-gradient(90deg, rgba(226, 160, 58, 0.10), transparent 60%);
	font-weight: 800;
}
.woocommerce-MyAccount-navigation-link--my-tickets a::before {
	content: "";
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	background: var(--dtr-gold);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a2 2 0 0 0 0-4z'/><path d='M9 5v14'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a2 2 0 0 0 0-4z'/><path d='M9 5v14'/></svg>") center / contain no-repeat;
}
.woocommerce-MyAccount-navigation-link--my-tickets.is-active a,
.woocommerce-MyAccount-navigation-link--my-tickets a[aria-current="page"] {
	background: var(--dtr-primary);
	color: var(--dtr-white);
}
.woocommerce-MyAccount-navigation-link--my-tickets.is-active a::before,
.woocommerce-MyAccount-navigation-link--my-tickets a[aria-current="page"]::before {
	background: var(--dtr-gold);
}

/* Logout — separated from the regular items by a hairline rule. */
.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 6px;
	padding-top: 8px;
	border-top: 1px solid var(--dtr-grey-100);
}
.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--dtr-grey-600);
	font-weight: 600;
}
.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	background: rgba(217, 76, 58, 0.08);
	color: var(--dtr-red);
}

/* --- Content panel ------------------------------------------------------- */

.woocommerce-MyAccount-content {
	background: var(--dtr-white);
	border: 1px solid var(--dtr-beige);
	border-radius: var(--dtr-radius-lg);
	padding: 28px;
	box-shadow: var(--dtr-shadow-sm);
	font-family: var(--dtr-font-body);
	color: var(--dtr-grey-900);
}

.woocommerce-MyAccount-content > p:first-of-type {
	font-family: var(--dtr-font-heading);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--dtr-primary);
	margin: 0 0 12px;
}
.woocommerce-MyAccount-content > p:first-of-type strong {
	color: var(--dtr-primary-dark);
}
.woocommerce-MyAccount-content > p {
	margin: 0 0 16px;
	line-height: 1.6;
}
.woocommerce-MyAccount-content a {
	color: var(--dtr-teal-text);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}
.woocommerce-MyAccount-content a:hover,
.woocommerce-MyAccount-content a:focus-visible {
	color: var(--dtr-primary);
	text-decoration-thickness: 2px;
}

/* Headings inside the content panel (Orders, Addresses, Account details). */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
	font-family: var(--dtr-font-heading);
	font-weight: 800;
	color: var(--dtr-primary);
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--dtr-gold);
}
.woocommerce-MyAccount-content h2 {
	font-size: 1.3rem;
}
.woocommerce-MyAccount-content h3 {
	font-size: 1.05rem;
	border-bottom-width: 1px;
}

/* Orders table (My Account → Orders) — brand it. */
.woocommerce-MyAccount-content table.woocommerce-orders-table,
.woocommerce-MyAccount-content table.account-orders-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--dtr-white);
	border: 1px solid var(--dtr-grey-100);
	border-radius: var(--dtr-radius-md);
	overflow: hidden;
	margin: 0 0 16px;
}
.woocommerce-MyAccount-content table.woocommerce-orders-table thead th,
.woocommerce-MyAccount-content table.account-orders-table thead th {
	background: var(--dtr-cream);
	color: var(--dtr-primary);
	font-family: var(--dtr-font-heading);
	font-weight: 700;
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: left;
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--dtr-beige);
}
.woocommerce-MyAccount-content table.woocommerce-orders-table tbody td,
.woocommerce-MyAccount-content table.account-orders-table tbody td {
	padding: 14px;
	border: 0;
	border-bottom: 1px solid var(--dtr-grey-100);
	font-size: 0.95rem;
	color: var(--dtr-grey-900);
	vertical-align: middle;
}
.woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr:last-child td,
.woocommerce-MyAccount-content table.account-orders-table tbody tr:last-child td {
	border-bottom: 0;
}
.woocommerce-MyAccount-content table.woocommerce-orders-table .button,
.woocommerce-MyAccount-content table.account-orders-table .button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: var(--dtr-gold);
	color: var(--dtr-primary);
	font-family: var(--dtr-font-heading);
	font-weight: 700;
	font-size: 0.82rem;
	border-radius: var(--dtr-radius-md);
	text-decoration: none;
	border: 0;
	transition: background var(--dtr-transition), transform var(--dtr-transition);
}
.woocommerce-MyAccount-content table.woocommerce-orders-table .button:hover,
.woocommerce-MyAccount-content table.account-orders-table .button:hover {
	background: var(--dtr-gold-dark);
	color: var(--dtr-primary);
	transform: translateY(-1px);
}

/* Order status pill. */
.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-status {
	font-weight: 700;
	color: var(--dtr-teal-text);
}

/* Edit-account / edit-address forms — borrow the same field styling as
   checkout.css but scoped here so we don't conflict. */
.woocommerce-MyAccount-content form .form-row {
	margin: 0 0 14px;
}
.woocommerce-MyAccount-content form .form-row label {
	display: block;
	font-family: var(--dtr-font-heading);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--dtr-primary);
	margin-bottom: 6px;
}
.woocommerce-MyAccount-content form .form-row input.input-text,
.woocommerce-MyAccount-content form .form-row textarea,
.woocommerce-MyAccount-content form .form-row select {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--dtr-beige);
	border-radius: var(--dtr-radius-md);
	background: var(--dtr-white);
	font-family: var(--dtr-font-body);
	font-size: 0.95rem;
	color: var(--dtr-grey-900);
	transition: border-color var(--dtr-transition), box-shadow var(--dtr-transition);
	box-sizing: border-box;
}
.woocommerce-MyAccount-content form .form-row input.input-text:focus,
.woocommerce-MyAccount-content form .form-row textarea:focus,
.woocommerce-MyAccount-content form .form-row select:focus {
	outline: none;
	border-color: var(--dtr-gold);
	box-shadow: 0 0 0 3px rgba(226, 160, 58, 0.25);
}
.woocommerce-MyAccount-content form button.button[type="submit"],
.woocommerce-MyAccount-content form .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--dtr-font-heading);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	padding: 0.85rem 1.5rem;
	border-radius: var(--dtr-radius-md);
	border: 2px solid transparent;
	cursor: pointer;
	background: var(--dtr-gold);
	color: var(--dtr-primary);
	text-decoration: none;
	transition: background var(--dtr-transition), color var(--dtr-transition), transform var(--dtr-transition);
}
.woocommerce-MyAccount-content form button.button[type="submit"]:hover,
.woocommerce-MyAccount-content form .button:hover {
	background: var(--dtr-gold-dark);
	color: var(--dtr-primary);
	transform: translateY(-1px);
}
.woocommerce-MyAccount-content form button.button:focus-visible,
.woocommerce-MyAccount-content form .button:focus-visible {
	outline: 3px solid var(--dtr-primary);
	outline-offset: 2px;
}

/* Address grid (two stacked address cards under "Addresses"). */
.woocommerce-MyAccount-content .woocommerce-Addresses {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-bottom: 16px;
}
@media (min-width: 600px) {
	.woocommerce-MyAccount-content .woocommerce-Addresses {
		grid-template-columns: 1fr 1fr;
	}
}
.woocommerce-MyAccount-content .woocommerce-Address {
	background: var(--dtr-cream);
	border: 1px solid var(--dtr-beige);
	border-radius: var(--dtr-radius-md);
	padding: 18px;
}
.woocommerce-MyAccount-content .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 10px;
	border: 0;
	padding: 0;
}
.woocommerce-MyAccount-content .woocommerce-Address-title h2,
.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 1rem;
}
.woocommerce-MyAccount-content .woocommerce-Address-title .edit {
	font-size: 0.82rem;
	font-family: var(--dtr-font-heading);
	font-weight: 700;
	color: var(--dtr-teal-text);
	text-decoration: none;
}
.woocommerce-MyAccount-content .woocommerce-Address address {
	font-style: normal;
	font-family: var(--dtr-font-body);
	font-size: 0.93rem;
	color: var(--dtr-grey-900);
	line-height: 1.55;
}

/* --- Mobile (<= 1023px stacks; <= 600px tightens spacing) ---------------- */

@media (max-width: 1023px) {
	.woocommerce-account.logged-in .woocommerce {
		grid-template-columns: 1fr;
	}
	.woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 4px;
	}
	.woocommerce-MyAccount-navigation li {
		flex: 1 1 auto;
	}
	.woocommerce-MyAccount-navigation li a {
		justify-content: center;
		text-align: center;
		padding: 10px 12px;
		font-size: 0.88rem;
	}
	.woocommerce-MyAccount-navigation-link--customer-logout {
		flex-basis: 100%;
		margin-top: 4px;
	}
	.woocommerce-MyAccount-navigation-link--customer-logout a {
		justify-content: center;
	}
}

@media (max-width: 600px) {
	.woocommerce-MyAccount-content {
		padding: 20px 16px;
	}
	.woocommerce-MyAccount-content > p:first-of-type {
		font-size: 1.1rem;
	}
	/* Orders table — let the WC shop_table_responsive pattern do its job;
	   our cells already have data-title from the WC template so the labels
	   stack cleanly. */
	.woocommerce-MyAccount-content table.woocommerce-orders-table,
	.woocommerce-MyAccount-content table.account-orders-table {
		display: block;
	}
	.woocommerce-MyAccount-content table.woocommerce-orders-table thead,
	.woocommerce-MyAccount-content table.account-orders-table thead {
		display: none;
	}
	.woocommerce-MyAccount-content table.woocommerce-orders-table tbody,
	.woocommerce-MyAccount-content table.account-orders-table tbody {
		display: block;
	}
	.woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr,
	.woocommerce-MyAccount-content table.account-orders-table tbody tr {
		display: block;
		padding: 12px 14px;
		border-bottom: 1px solid var(--dtr-grey-100);
	}
	.woocommerce-MyAccount-content table.woocommerce-orders-table tbody td,
	.woocommerce-MyAccount-content table.account-orders-table tbody td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		padding: 4px 0;
		border: 0;
	}
	.woocommerce-MyAccount-content table.woocommerce-orders-table tbody td::before,
	.woocommerce-MyAccount-content table.account-orders-table tbody td::before {
		content: attr(data-title);
		font-family: var(--dtr-font-heading);
		font-size: 0.72rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.06em;
		color: var(--dtr-grey-600);
	}
}

/* ============================================================================
   Login + Register forms (woocommerce/myaccount/form-login.php override).
   ============================================================================ */

.dtr-auth {
	max-width: 480px;
	margin: 40px auto 64px;
	padding: 0 var(--dtr-gutter);
}

.dtr-auth__card {
	background: var(--dtr-white);
	border: 1px solid var(--dtr-beige);
	border-radius: var(--dtr-radius-lg);
	box-shadow: var(--dtr-shadow-md);
	padding: 32px 28px;
}

.dtr-auth__title {
	font-family: var(--dtr-font-heading);
	font-weight: 800;
	font-size: 1.625rem;
	color: var(--dtr-primary);
	margin: 0 0 8px;
	letter-spacing: -0.01em;
}

.dtr-auth__subtitle {
	font-family: var(--dtr-font-body);
	color: var(--dtr-grey-600);
	font-size: 0.95rem;
	margin: 0 0 24px;
}

/* Reset Woo default form spacing inside the auth card and use a vertical stack. */
.dtr-auth .woocommerce-form-login,
.dtr-auth .woocommerce-form-register {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
}

.dtr-auth .form-row,
.dtr-auth .woocommerce-form-row {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.dtr-auth label {
	font-family: var(--dtr-font-body);
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--dtr-grey-900);
}

.dtr-auth label .required {
	color: var(--dtr-red);
	margin-left: 2px;
}

.dtr-auth input[type="text"],
.dtr-auth input[type="email"],
.dtr-auth input[type="password"],
.dtr-auth input[type="date"],
.dtr-auth .woocommerce-Input,
.dtr-auth .input-text {
	font-family: var(--dtr-font-body);
	font-size: 1rem;
	width: 100%;
	padding: 12px 14px;
	background: var(--dtr-cream);
	border: 1px solid var(--dtr-grey-300);
	border-radius: var(--dtr-radius-md);
	color: var(--dtr-grey-900);
	transition: border-color var(--dtr-transition), box-shadow var(--dtr-transition), background var(--dtr-transition);
}

.dtr-auth input[type="text"]:hover,
.dtr-auth input[type="email"]:hover,
.dtr-auth input[type="password"]:hover,
.dtr-auth input[type="date"]:hover {
	border-color: var(--dtr-teal);
}

.dtr-auth input[type="text"]:focus,
.dtr-auth input[type="email"]:focus,
.dtr-auth input[type="password"]:focus,
.dtr-auth input[type="date"]:focus {
	outline: none;
	border-color: var(--dtr-primary);
	background: var(--dtr-white);
	box-shadow: 0 0 0 3px rgba(32, 133, 156, 0.18);
}

/* DOB + 18+ checkbox (injected by inc/age-verification.php). */
.dtr-auth #dtr_dob_field,
.dtr-auth #dtr_age_confirm_field,
.dtr-auth label[for="dtr_dob"],
.dtr-auth label[for="dtr_age_confirm"] {
	color: var(--dtr-grey-900);
}

.dtr-auth .dtr-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 500;
	font-size: 0.9rem;
	color: var(--dtr-grey-900);
	background: var(--dtr-cream);
	border: 1px solid var(--dtr-beige);
	border-radius: var(--dtr-radius-md);
	padding: 12px 14px;
	cursor: pointer;
}

.dtr-auth .dtr-checkbox-label input[type="checkbox"] {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--dtr-primary);
	cursor: pointer;
}

/* Remember-me row (login form). */
.dtr-auth .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	font-size: 0.9rem;
	color: var(--dtr-grey-600);
}

.dtr-auth .woocommerce-form-login__rememberme input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--dtr-primary);
}

/* Actions row — submit button (and Remember me on login). */
.dtr-auth .dtr-auth__row-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
}

/* Override Woo .button defaults so our .dtr-btn modifier wins. */
.dtr-auth .button {
	width: 100%;
	justify-content: center;
	padding: 14px 22px;
	font-size: 1rem;
}

.dtr-auth .woocommerce-form-login__submit,
.dtr-auth .woocommerce-form-register__submit {
	margin-left: auto;
}

/* Visible focus on the submit button (a11y) — main.css already covers .dtr-btn:focus-visible
   but we re-assert here in case any parent forces a different focus style. */
.dtr-auth .button:focus-visible {
	outline: 3px solid var(--dtr-gold);
	outline-offset: 2px;
}

/* Lost password + cross-link. */
.dtr-auth .lost_password {
	margin: 4px 0 0;
	font-size: 0.875rem;
}

.dtr-auth .lost_password a {
	color: var(--dtr-teal);
}

.dtr-auth__switch {
	margin: 24px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--dtr-grey-100);
	text-align: center;
	font-size: 0.9rem;
	color: var(--dtr-grey-600);
}

.dtr-auth__switch a {
	color: var(--dtr-primary);
	font-weight: 700;
	margin-left: 4px;
}

.dtr-auth__switch a:hover,
.dtr-auth__switch a:focus {
	color: var(--dtr-teal);
	text-decoration: underline;
}

/* Validation notices — rendered above the form via woocommerce_before_customer_login_form. */
.woocommerce-account .woocommerce-notices-wrapper {
	max-width: 480px;
	margin: 24px auto 0;
	padding: 0 var(--dtr-gutter);
}

.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info {
	list-style: none;
	margin: 0 0 16px;
	padding: 14px 16px;
	border-radius: var(--dtr-radius-md);
	font-size: 0.9rem;
	border-left-width: 4px;
	border-left-style: solid;
}

.woocommerce-account .woocommerce-error {
	background: rgba(217, 76, 58, 0.08);
	border-left-color: var(--dtr-red);
	color: var(--dtr-grey-900);
}

.woocommerce-account .woocommerce-message {
	background: rgba(74, 175, 124, 0.10);
	border-left-color: var(--dtr-green);
	color: var(--dtr-grey-900);
}

.woocommerce-account .woocommerce-info {
	background: rgba(32, 133, 156, 0.08);
	border-left-color: var(--dtr-teal);
	color: var(--dtr-grey-900);
}

/* Responsive — at narrow widths give the card more breathing room. */
@media (max-width: 480px) {
	.dtr-auth { margin: 24px auto 40px; }
	.dtr-auth__card { padding: 24px 20px; border-radius: var(--dtr-radius-md); }
	.dtr-auth__title { font-size: 1.4rem; }
	.dtr-auth .dtr-auth__row-actions { flex-direction: column; align-items: stretch; }
	.dtr-auth .woocommerce-form-login__rememberme { justify-content: center; }
	.dtr-auth .woocommerce-form-login__submit,
	.dtr-auth .woocommerce-form-register__submit { margin-left: 0; }
}

