/**
 * Konto — logowanie i rejestracja (woocommerce/myaccount/form-login.php).
 */

body.woocommerce-account .entry-header {
	display: none;
}

.deercoffe-account-auth {
	max-width: var(--deercoffe-container-width);
	margin: 0 auto;
	padding: 56px 20px 96px;
}

.deercoffe-account-auth-intro {
	margin-bottom: 40px;
}

.deercoffe-account-auth-intro h1 {
	margin: 0 0 12px;
}

.deercoffe-account-auth-intro p {
	color: var(--deercoffe-color-muted);
	max-width: 640px;
	margin: 0;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
	list-style: none;
	margin: 0 0 24px;
	padding: 16px 20px;
	border-radius: 4px;
	background: #fff;
	border-left: 4px solid var(--deercoffe-color-error);
	font-size: 14px;
	outline: none;
}

.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before {
	content: none;
}

.woocommerce-message,
.woocommerce-info {
	border-left-color: var(--deercoffe-color-accent);
}

.deercoffe-account-auth-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

.deercoffe-account-auth-grid.has-register {
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
}

.deercoffe-account-auth-card {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 2px;
	padding: 32px;
}

.deercoffe-account-auth-card h2 {
	margin: 0 0 24px;
	font-size: 27px;
	font-weight: 400;
	letter-spacing: 1.08px;
}

.deercoffe-account-auth-card p.woocommerce-form-row {
	padding: 0;
	margin: 0 0 24px;
}


.deercoffe-account-auth-card label {
	display: block;
	font-family: var(--deercoffe-font-heading);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.6px;
	color: var(--deercoffe-color-text);
	margin-bottom: 6px;
	line-height: normal;
}

.deercoffe-account-auth-card label .required {
	color: var(--deercoffe-color-error);
}

.deercoffe-account-auth-card input.input-text {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid #bbb;
	border-radius: 2px;
	background: #fff;
	font-family: inherit;
	font-size: 14px;
}

.deercoffe-account-auth-card .form-row.woocommerce-invalid input.input-text {
	border-color: var(--deercoffe-color-error);
}

.deercoffe-account-auth-card .form-row.woocommerce-validated input.input-text {
	border-color: var(--deercoffe-color-accent);
}

.deercoffe-account-auth-card input.input-text::placeholder {
	color: #bbb;
	font-size: 0.85rem;
}

/*
 * WooCommerce's password-toggle JS wraps password inputs in
 * <span class="password-input"> and appends a <button
 * class="show-password-input">, but the theme doesn't enqueue
 * WooCommerce's own CSS (woocommerce-layout.css) that normally styles
 * and positions it — without this it falls back to the global button
 * style and renders as a plain block below the field instead of an
 * eye icon inside it.
 */

.password-input {
	position: relative;
	display: block;
}

.deercoffe-account-auth-card .password-input .input-text,
#deercoffe-account-form .password-input .input-text {
	padding-right: 44px;
}

.show-password-input {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 2px;
	background-color: transparent;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	outline: none;
}

.show-password-input:hover,
.show-password-input:focus,
.show-password-input:active {
	background-color: transparent;
}

.show-password-input:focus-visible {
	outline: 2px solid var(--deercoffe-color-accent);
	outline-offset: 2px;
}

.show-password-input::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background-repeat: no-repeat;
	background-size: contain;
	background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.3 3.3C16.9 2.9 16.2 2.9 15.7 3.3L13.3 5.7C12.2437 5.3079 11.1267 5.1048 10 5.1C6.2 5.2 2.8 7.2 1 10.5C1.2 10.9 1.5 11.3 1.8 11.7C2.6 12.8 3.6 13.7 4.7 14.4L3 16.1C2.6 16.5 2.5 17.2 3 17.7C3.4 18.1 4.1 18.2 4.6 17.7L17.3 4.9C17.7 4.4 17.7 3.7 17.3 3.3ZM6.7 12.3L5.4 13.6C4.2 12.9 3.1 11.9 2.3 10.7C3.5 9 5.1 7.8 7 7.2C5.7 8.6 5.6 10.8 6.7 12.3ZM10.1 9C9.6 8.5 9.7 7.7 10.2 7.2C10.7 6.8 11.4 6.8 11.9 7.2L10.1 9ZM18.3 9.5C17.8 8.8 17.2 8.1 16.5 7.6L15.5 8.6C16.3 9.2 17 9.9 17.6 10.8C15.9 13.4 13 15 9.9 15H9.1L8.1 16C8.8 15.9 9.4 16 10 16C13.3 16 16.4 14.4 18.3 11.7C18.6 11.3 18.8 10.9 19.1 10.5C18.8 10.2 18.6 9.8 18.3 9.5ZM14 10L10 14C12.2 14 14 12.2 14 10Z" fill="%236d6d6d"/></svg>');
}

.show-password-input.display-password::before {
	background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18.3 9.49999C15 4.89999 8.50002 3.79999 3.90002 7.19999C2.70002 8.09999 1.70002 9.29999 0.900024 10.6C1.10002 11 1.40002 11.4 1.70002 11.8C5.00002 16.4 11.3 17.4 15.9 14.2C16.8 13.5 17.6 12.8 18.3 11.8C18.6 11.4 18.8 11 19.1 10.6C18.8 10.2 18.6 9.79999 18.3 9.49999ZM10.1 7.19999C10.6 6.69999 11.4 6.69999 11.9 7.19999C12.4 7.69999 12.4 8.49999 11.9 8.99999C11.4 9.49999 10.6 9.49999 10.1 8.99999C9.60003 8.49999 9.60003 7.69999 10.1 7.19999ZM10 14.9C6.90002 14.9 4.00002 13.3 2.30002 10.7C3.50002 8.99999 5.10002 7.79999 7.00002 7.19999C6.30002 7.99999 6.00002 8.89999 6.00002 9.89999C6.00002 12.1 7.70002 14 10 14C12.2 14 14.1 12.3 14.1 9.99999V9.89999C14.1 8.89999 13.7 7.89999 13 7.19999C14.9 7.79999 16.5 8.99999 17.7 10.7C16 13.3 13.1 14.9 10 14.9Z" fill="%236d6d6d"/></svg>');
}

.deercoffe-account-auth-row {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0 0 24px;
}

.woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	line-height: 18px;
	color: #7b7b72;
	margin: 0;
}

.woocommerce-form-login__rememberme input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	flex-shrink: 0;
	cursor: pointer;
	accent-color: var(--deercoffe-color-primary);
}

.deercoffe-account-auth-card p.woocommerce-LostPassword {
	margin: 0;
	font-size: 12px;
	line-height: 16px;
	color: #4a5131;
}

.deercoffe-account-auth-switch {
	display: none;
	font-size: 12px;
	margin: 16px 0 0;
}

.deercoffe-account-auth-switch a {
	color: #2672e3;
	text-decoration: underline;
}

.deercoffe-account-auth-legal {
	color: var(--deercoffe-color-muted);
	font-size: 12px;
	margin: 0 0 24px;
}

.deercoffe-account-auth-legal a {
	color: var(--deercoffe-color-muted);
	text-decoration: underline;
}

.deercoffe-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 18px 30px;
	border: none;
	border-radius: 4px;
	font-family: var(--deercoffe-font-body);
	font-size: 15px;
	font-weight: 400;
	cursor: pointer;
}

@media (max-width: 900px) {
	.deercoffe-account-auth-grid.has-register {
		grid-template-columns: 1fr;
	}

	.deercoffe-account-auth-grid.has-register #deercoffe-account-register {
		display: none;
	}

	.deercoffe-account-auth-grid.has-register #deercoffe-account-register:target {
		display: block;
	}

	.deercoffe-account-auth-switch {
		display: block;
	}

	.deercoffe-account-auth-card {
		padding: 50px 15px;
	}
}

/**
 * Konto — panel klienta zalogowanego (woocommerce/myaccount/{my-account,navigation,dashboard}.php).
 */

.deercoffe-account-hero {
	max-width: var(--deercoffe-container-width);
	margin: 0 auto;
	padding: 56px 20px 0;
}

.deercoffe-account-hero p:first-child {
	margin: 0 0 12px;
	font-family: var(--deercoffe-font-heading);
	font-size: 34px;
	color: var(--deercoffe-color-text);
}

.deercoffe-account-hero p:last-child {
	margin: 0;
	color: var(--deercoffe-color-muted);
	font-size: 15px;
	max-width: 640px;
}

.deercoffe-account-layout {
	max-width: var(--deercoffe-container-width);
	margin: 0 auto;
	padding: 40px 20px 96px;
	display: flex;
	align-items: flex-start;
	gap: 40px;
}

.deercoffe-account-content {
	flex: 1;
	min-width: 0;
}

/* Nav */

.deercoffe-account-nav {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 2px;
	padding: 24px;
	width: 280px;
	flex-shrink: 0;
}

.deercoffe-account-nav-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 24px;
}

.deercoffe-account-nav-title {
	margin: 0;
	font-family: var(--deercoffe-font-heading);
	font-size: 21px;
	letter-spacing: 0.84px;
	color: var(--deercoffe-color-text);
}

.deercoffe-account-nav-logout-mobile {
	display: none;
	font-size: 13px;
	color: var(--deercoffe-color-brown);
}

.deercoffe-account-nav-select {
	display: none;
}

.deercoffe-account-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.deercoffe-account-nav-item a {
	display: flex;
	align-items: center;
	height: 42px;
	padding: 0 16px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 2px;
	font-size: 13px;
	color: #525252;
}

.deercoffe-account-nav-item.is-active a {
	background: var(--deercoffe-color-cream-light);
	border-color: var(--deercoffe-color-accent);
	color: var(--deercoffe-color-primary);
}

/* Dashboard panels */

.deercoffe-dashboard-panels {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.deercoffe-panel {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 2px;
	padding: 32px;
}

.deercoffe-panel h2 {
	margin: 0;
	font-family: var(--deercoffe-font-heading);
	font-size: 21px;
	letter-spacing: 0.84px;
	color: var(--deercoffe-color-text);
}

.deercoffe-dashboard-panels .deercoffe-btn {
	padding: 18px 30px;
	border-radius: 4px;
	font-size: 15px;
}

.deercoffe-btn-sage {
	background-color: #929e63 !important;
	color: var(--deercoffe-color-bg) !important;
}

.deercoffe-btn-sage:hover {
	filter: brightness(0.92);
}

.deercoffe-btn-dark-olive {
	background-color: var(--deercoffe-color-primary) !important;
	color: var(--deercoffe-color-bg) !important;
}

.deercoffe-btn-dark-olive:hover {
	background-color: var(--deercoffe-color-primary-dark) !important;
}

/* Status panel */

.deercoffe-panel-status {
	background: var(--deercoffe-color-primary);
	border: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.deercoffe-panel-status-copy {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.deercoffe-panel-eyebrow {
	margin: 0;
	font-size: 11px;
	line-height: 14px;
	color: var(--deercoffe-color-cream);
}

.deercoffe-panel-status-headline {
	margin: 0;
	font-family: var(--deercoffe-font-heading);
	font-size: 21px;
	letter-spacing: 0.84px;
	color: #fff;
}

.deercoffe-panel-status-note {
	margin: 0;
	font-size: 13px;
	line-height: 18px;
	color: var(--deercoffe-color-cream);
}

.deercoffe-panel-status .deercoffe-btn {
	flex-shrink: 0;
}

/* Orders panel */

.deercoffe-panel-orders-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 24px;
}

.deercoffe-panel-orders-all {
	font-size: 12px;
	color: var(--deercoffe-color-brown);
}

.deercoffe-panel-orders-empty {
	margin: 0;
	color: var(--deercoffe-color-muted);
	font-size: 14px;
}

.deercoffe-order-divider {
	height: 1px;
	background: rgba(0, 0, 0, 0.2);
}

.deercoffe-order-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
}

.deercoffe-order-number {
	font-size: 13px;
	color: var(--deercoffe-color-brown);
}

.deercoffe-order-date {
	font-size: 13px;
	color: #525252;
}

.deercoffe-order-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	width: 132px;
	font-size: 12px;
	border-radius: 2px;
}

.deercoffe-order-status.is-processing {
	background: var(--deercoffe-color-cream-light);
	border: 1px solid var(--deercoffe-color-accent);
	color: var(--deercoffe-color-primary);
}

.deercoffe-order-status.is-completed {
	background: var(--deercoffe-color-brown);
	color: #fff;
}

.deercoffe-order-status.is-other {
	background: var(--deercoffe-color-bg);
	border: 1px solid var(--deercoffe-color-border);
	color: var(--deercoffe-color-muted);
}

.deercoffe-order-total {
	font-size: 14px;
	color: var(--deercoffe-color-text);
}

.deercoffe-order-details {
	font-size: 12px;
	color: var(--deercoffe-color-brown);
	text-decoration: underline;
}

/* Lower cards: last coffee + address */

.deercoffe-dashboard-lower {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
	align-items: stretch;
}

.deercoffe-panel-coffee,
.deercoffe-panel-address {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	padding: 28px;
}

.deercoffe-panel-coffee-name {
	margin: 0;
	font-size: 15px;
	color: var(--deercoffe-color-brown);
}

.deercoffe-panel-coffee-desc {
	margin: 0;
	font-size: 14px;
	color: var(--deercoffe-color-primary);
}

.deercoffe-panel-address-lines {
	display: flex;
	flex-direction: column;
}

.deercoffe-panel-address-lines p {
	margin: 0;
	font-size: 14px;
	color: var(--deercoffe-color-primary);
}

.deercoffe-panel-address-empty {
	margin: 0;
	font-size: 14px;
	color: var(--deercoffe-color-muted);
}

/**
 * Address overview + edit form
 * (woocommerce/myaccount/{my-address,form-edit-address}.php,
 * template-parts/account-address-form-shipping.php).
 */

.deercoffe-address-overview {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
}

.deercoffe-panel-address-summary {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 20px 14px;
}

.deercoffe-panel-address-summary h2 {
	display: flex;
	align-items: center;
	gap: 10px;
}

.deercoffe-panel-address-list {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 20px;
	padding: 20px 14px;
}

.deercoffe-address-entry {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.deercoffe-address-entry + .deercoffe-address-entry {
	padding-top: 20px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.deercoffe-address-entry-heading {
	display: flex;
	align-items: center;
	gap: 10px;
}

.deercoffe-address-entry-label {
	font-family: var(--deercoffe-font-heading);
	font-size: 16px;
	color: var(--deercoffe-color-text);
}

.deercoffe-address-badge {
	padding: 3px 10px;
	border-radius: 20px;
	background: var(--deercoffe-color-cream-light);
	color: var(--deercoffe-color-primary);
	font-family: var(--deercoffe-font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.deercoffe-panel-address-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.deercoffe-address-inline-form {
	display: contents;
}

.deercoffe-panel-address-summary .deercoffe-btn,
.deercoffe-panel-address-actions .deercoffe-btn {
	min-width: 150px;
	padding: 18px 30px;
	gap: 10px;
	font-size: 15px;
	white-space: nowrap;
}

.deercoffe-btn-outline {
	background-color: transparent !important;
	color: var(--deercoffe-color-primary) !important;
	border: 1px solid var(--deercoffe-color-primary) !important;
}

.deercoffe-btn-outline:hover {
	background-color: var(--deercoffe-color-cream-light) !important;
}

.deercoffe-address-form-cancel {
	font-size: 13px;
	color: var(--deercoffe-color-muted);
	text-decoration: underline;
}

.deercoffe-address-panel,
.deercoffe-account-panel {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	padding: 20px 14px;
}

.deercoffe-address-form,
.deercoffe-account-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
}

#deercoffe-address-form .form-row {
	margin: 0;
}

.deercoffe-panel-intro {
	margin: 0;
	width: 100%;
	font-size: 14px;
	color: var(--deercoffe-color-primary);
}

.deercoffe-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.deercoffe-field-row {
	display: flex;
	gap: 16px;
	width: 100%;
}

.deercoffe-field-row .form-row {
	flex: 1;
	min-width: 0;
}

/**
 * WooCommerce's own ".woocommerce form .form-row label/.input-text" rules
 * (3 classes) are more specific than a single ".deercoffe-address-form"
 * class and win the cascade regardless of enqueue order, overriding our
 * padding/border/height/line-height with its own defaults. Anchor these on
 * the panel's #deercoffe-address-form id instead of adding !important — an
 * id always outranks WooCommerce's class-only selectors.
 */

#deercoffe-address-form label,
#deercoffe-account-form label {
	display: block;
	font-family: inherit;
	font-size: 13px;
	color: var(--deercoffe-color-text);
	margin-bottom: 8px;
	line-height: normal;
}

#deercoffe-address-form label .required,
#deercoffe-account-form label .required {
	color: var(--deercoffe-color-error);
	text-decoration: none;
}

#deercoffe-address-form input.input-text,
#deercoffe-account-form input.input-text,
#deercoffe-address-form select,
#deercoffe-account-form select {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 50px;
	padding: 0 16px 0 20px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 0;
	background: #fff;
	font-family: inherit;
	font-size: 12px;
}

#deercoffe-address-form select,
#deercoffe-account-form select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%234a4d36' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

#deercoffe-address-form input.input-text::placeholder,
#deercoffe-account-form input.input-text::placeholder {
	color: #bbb;
}

#deercoffe-address-form .form-row.woocommerce-invalid input.input-text,
#deercoffe-address-form .form-row.woocommerce-invalid select {
	border-color: var(--deercoffe-color-error);
}

#deercoffe-address-form .form-row.woocommerce-validated input.input-text,
#deercoffe-address-form .form-row.woocommerce-validated select {
	border-color: var(--deercoffe-color-accent);
}

.deercoffe-address-form .deercoffe-btn,
.deercoffe-account-form .deercoffe-btn {
	padding: 18px 30px;
	border-radius: 4px;
	font-size: 15px;
	align-self: flex-start;
}

@media (max-width: 900px) {
	.deercoffe-account-hero {
		padding: 40px 15px 0;
	}

	.deercoffe-account-layout {
		flex-direction: column;
		padding: 24px 15px 50px;
		gap: 16px;
	}

	.deercoffe-account-nav {
		width: 100%;
		padding: 20px 15px;
	}

	.deercoffe-account-nav-logout-mobile {
		display: block;
	}

	.deercoffe-account-nav-select {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		height: 48px;
		padding: 0 14px 0 16px;
		background: var(--deercoffe-color-cream-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%234a4d36' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
		border: 1px solid var(--deercoffe-color-accent);
		border-radius: 2px;
		font-family: var(--deercoffe-font-body);
		font-size: 15px;
		color: var(--deercoffe-color-primary);
		appearance: none;
		-webkit-appearance: none;
	}

	.deercoffe-account-nav-list {
		display: none;
	}

	.deercoffe-dashboard-panels,
	.deercoffe-account-content {
		gap: 16px;
	}

	.deercoffe-panel {
		padding: 24px;
	}

	.deercoffe-panel-status {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.deercoffe-panel-status .deercoffe-btn {
		width: 100%;
	}

	.deercoffe-order-row {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"number total"
			"date status"
			"details details";
		row-gap: 6px;
		column-gap: 12px;
	}

	.deercoffe-order-number {
		grid-area: number;
	}

	.deercoffe-order-total {
		grid-area: total;
		text-align: right;
	}

	.deercoffe-order-date {
		grid-area: date;
	}

	.deercoffe-order-status {
		grid-area: status;
		justify-self: end;
		width: auto;
		min-width: 112px;
		height: 28px;
	}

	.deercoffe-order-details {
		grid-area: details;
	}

	.deercoffe-dashboard-lower {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.deercoffe-panel-address-lines p {
		color: #525252;
	}

	.deercoffe-dashboard-panels .deercoffe-btn {
		width: 100%;
	}

	.deercoffe-address-overview,
	.deercoffe-address-form,
	.deercoffe-account-form {
		gap: 16px;
	}

	.deercoffe-field-row {
		flex-direction: column;
		gap: 14px;
	}

	.deercoffe-panel-address-summary .deercoffe-btn,
	.deercoffe-address-form .deercoffe-btn,
	.deercoffe-account-form .deercoffe-btn {
		width: 100%;
	}

	.deercoffe-logout-dialog {
		padding: 24px;
		gap: 20px;
	}

	.deercoffe-logout-dialog-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.deercoffe-logout-dialog-cancel,
	.deercoffe-logout-dialog-confirm {
		flex: none;
		width: 100%;
	}

	.deercoffe-logout-dialog-cancel {
		height: 50px;
	}
}

/**
 * Logout confirmation dialog
 * (template-parts/account-logout-modal.php, assets/js/account-logout-modal.js).
 */

body.deercoffe-logout-open {
	overflow: hidden;
}

.deercoffe-logout-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.35);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.deercoffe-logout-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

.deercoffe-logout-dialog {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	width: 100%;
	max-width: 480px;
	padding: 32px 24px;
	border-radius: 2px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	background: #fff;
	box-shadow: 0 20px 60px 0 rgba(0, 0, 0, 0.18);
	transform: scale(0.95) translateY(8px);
	opacity: 0;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.deercoffe-logout-overlay.is-active .deercoffe-logout-dialog {
	transform: scale(1) translateY(0);
	opacity: 1;
}

.deercoffe-logout-dialog-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
}

.deercoffe-logout-dialog-title {
	margin: 0;
	font-family: var(--deercoffe-font-heading);
	font-size: 21px;
	font-weight: 400;
	line-height: normal;
	letter-spacing: 0.84px;
	color: var(--deercoffe-color-text);
}

.deercoffe-logout-dialog-close {
	flex-shrink: 0;
	border: none;
	background: none;
	padding: 0;
	font-size: 28px;
	line-height: 1;
	color: var(--deercoffe-color-muted) !important;
	cursor: pointer;
}

.deercoffe-logout-dialog-text {
	margin: 0;
	width: 100%;
	font-family: var(--deercoffe-font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: normal;
	color: var(--deercoffe-color-primary);
}

.deercoffe-logout-dialog-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	width: 100%;
}

/*
 * The theme's global "button { color: #fff !important; }" (style.css) beats
 * a plain class-level color on any of these, since !important always wins
 * regardless of selector specificity. Match it with !important here too.
 */

.deercoffe-logout-dialog-cancel,
.deercoffe-logout-dialog-confirm {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	border-radius: 0;
	font-family: var(--deercoffe-font-body);
	font-size: 15px;
	font-weight: 400;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: background-color 0.2s ease, filter 0.2s ease;
}

.deercoffe-logout-dialog-cancel {
	padding: 15px 28px;
	border: 1px solid #9c9b9b;
	background: #fff;
	color: var(--deercoffe-color-text) !important;
}

.deercoffe-logout-dialog-cancel:hover {
	background: var(--deercoffe-color-bg);
}

.deercoffe-logout-dialog-confirm {
	padding: 18px 30px;
	border: none;
	border-radius: 4px;
	background: var(--deercoffe-color-primary);
	color: var(--deercoffe-color-bg) !important;
}

.deercoffe-logout-dialog-confirm:hover {
	background: var(--deercoffe-color-primary-dark);
}
