/* ── Account widgets ──────────────────────────────────────────────────
 * Shared by the six Account widgets (menu, overview, personal details,
 * orders, addresses, payment methods). Every widget's root carries
 * .cct-acc, which defines the design tokens below; the widgets' Style
 * controls override individual tokens, and everything else in this file
 * is written against them. Defaults follow the site's Elementor global
 * colors and fonts.
 *
 * Selectors are prefixed with .cct-acc so they outrank the theme's bare
 * element rules (Hello Elementor paints every button pink-on-hover and
 * gives every input a grey border) regardless of stylesheet order. */
.cct-acc {
	--cct-acc-accent: var( --e-global-color-primary, #ea9243 );
	--cct-acc-text: var( --e-global-color-secondary, #4d312e );
	--cct-acc-muted: #7d6763;
	--cct-acc-border: #ddd6ce;
	--cct-acc-surface: #fdfdfd;
	--cct-acc-surface-alt: #ddd6ce;
	--cct-acc-tint: #f1efeb;
	--cct-acc-danger: #a94442;
	--cct-acc-radius: 18px;
	--cct-acc-card-padding: 24px;

	--cct-acc-btn-color: var( --cct-acc-text );
	--cct-acc-btn-bg: var( --cct-acc-accent );
	--cct-acc-btn-hover-color: var( --cct-acc-accent );
	--cct-acc-btn-hover-bg: var( --cct-acc-text );
	--cct-acc-btn-radius: 10px;

	--cct-acc-field-color: var( --cct-acc-text );
	--cct-acc-field-bg: #fdfdfd;
	--cct-acc-field-border: var( --cct-acc-border );
	--cct-acc-field-focus: var( --cct-acc-accent );
	--cct-acc-field-radius: 10px;

	--cct-acc-font-text: var( --e-global-typography-text-font-family ), Georgia, serif;
	--cct-acc-font-ui: var( --e-global-typography-accent-font-family ), system-ui, sans-serif;
	--cct-acc-font-title: var( --e-global-typography-primary-font-family ), Georgia, serif;

	color: var( --cct-acc-text );
	font-family: var( --cct-acc-font-text );
	font-size: 17px;
	line-height: 1.5;
}

.cct-acc *,
.cct-acc *::before,
.cct-acc *::after {
	box-sizing: border-box;
}

.cct-acc [hidden] {
	display: none !important;
}

.cct-acc p,
.cct-acc address,
.cct-acc dl,
.cct-acc dd,
.cct-acc ul,
.cct-acc ol {
	margin: 0;
	padding: 0;
}

.cct-acc address {
	font-style: normal;
}

.cct-acc-icon {
	flex-shrink: 0;
	width: 1.15em;
	height: 1.15em;
}

.cct-acc :focus-visible {
	outline: 2px solid var( --cct-acc-accent );
	outline-offset: 2px;
}

/* ── Headings & text ─────────────────────────────────────────────── */
.cct-acc-head {
	margin-bottom: 28px;
}

.cct-acc .cct-acc-title {
	margin: 0;
	color: var( --cct-acc-text );
	font-family: var( --cct-acc-font-title );
	font-size: 32px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.2;
}

.cct-acc-subtitle {
	margin-top: 8px !important;
	color: var( --cct-acc-muted );
}

.cct-acc-block {
	margin-bottom: 36px;
}

.cct-acc-block:last-child {
	margin-bottom: 0;
}

.cct-acc-block-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 14px;
}

.cct-acc .cct-acc-heading,
.cct-acc .cct-acc-card-title {
	margin: 0;
	color: var( --cct-acc-text );
	font-family: var( --cct-acc-font-text );
	font-size: 22px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.3;
}

.cct-acc .cct-acc-card-title {
	font-size: 19px;
	font-style: normal;
	font-weight: 700;
}

.cct-acc .cct-acc-label {
	margin: 0;
	color: var( --cct-acc-text );
	font-family: var( --cct-acc-font-ui );
	font-size: 12px;
	font-style: normal;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.cct-acc-muted {
	color: var( --cct-acc-muted );
}

.cct-acc-note {
	margin-top: 16px !important;
	color: var( --cct-acc-muted );
	font-size: 15px;
}

/* ── Links & buttons ─────────────────────────────────────────────── */
.cct-acc .cct-acc-link,
.cct-acc .cct-acc-link:hover,
.cct-acc .cct-acc-link:focus {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var( --cct-acc-text );
	font: inherit;
	font-size: 15px;
	text-align: left;
	text-decoration: underline;
	text-decoration-color: var( --cct-acc-accent );
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
	white-space: normal;
	cursor: pointer;
}

.cct-acc .cct-acc-link:hover {
	text-decoration-thickness: 2.5px;
}

.cct-acc .cct-acc-link--danger,
.cct-acc .cct-acc-link--danger:hover,
.cct-acc .cct-acc-link--danger:focus {
	color: var( --cct-acc-danger );
	text-decoration-color: currentColor;
}

.cct-acc .cct-acc-link.is-confirming {
	font-weight: 700;
}

.cct-acc .cct-acc-btn,
.cct-acc #add_payment_method #place_order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	float: none;
	width: auto;
	padding: 12px 24px;
	border: 2px solid var( --cct-acc-btn-bg );
	border-radius: var( --cct-acc-btn-radius );
	background: var( --cct-acc-btn-bg );
	color: var( --cct-acc-btn-color );
	font-family: var( --cct-acc-font-text );
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	white-space: normal;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.cct-acc .cct-acc-btn:hover,
.cct-acc .cct-acc-btn:focus,
.cct-acc #add_payment_method #place_order:hover,
.cct-acc #add_payment_method #place_order:focus {
	border-color: var( --cct-acc-btn-hover-bg );
	background: var( --cct-acc-btn-hover-bg );
	color: var( --cct-acc-btn-hover-color );
}

.cct-acc .cct-acc-btn--ghost {
	border-color: var( --cct-acc-text );
	background: transparent;
	color: var( --cct-acc-text );
}

.cct-acc .cct-acc-btn--ghost:hover,
.cct-acc .cct-acc-btn--ghost:focus {
	border-color: var( --cct-acc-text );
	background: var( --cct-acc-text );
	color: var( --cct-acc-surface );
}

.cct-acc .cct-acc-btn--small {
	padding: 7px 16px;
	font-size: 15px;
}

.cct-acc .cct-acc-btn:disabled {
	opacity: 0.6;
	cursor: progress;
}

.cct-acc-back {
	margin-bottom: 16px;
}

/* ── Cards ───────────────────────────────────────────────────────── */
.cct-acc-card {
	padding: var( --cct-acc-card-padding );
	border-radius: var( --cct-acc-radius );
	background: var( --cct-acc-surface );
}

.cct-acc-card--empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding-block: 40px;
	text-align: center;
}

.cct-acc-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.cct-acc-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.cct-acc-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}

.cct-acc-empty-icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: var( --cct-acc-tint );
	color: var( --cct-acc-accent );
	font-size: 22px;
}

.cct-acc-empty-title {
	font-size: 19px;
	font-weight: 700;
}

.cct-acc-empty-text {
	max-width: 36em;
	color: var( --cct-acc-muted );
}

.cct-acc-badge {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	padding: 4px 12px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var( --cct-acc-tint );
	color: var( --cct-acc-text );
	font-family: var( --cct-acc-font-ui );
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
}

.cct-acc-badge--default {
	border-color: var( --cct-acc-accent );
	background: transparent;
}

.cct-acc-badge--pending,
.cct-acc-badge--on-hold {
	background: #fbeedd;
	color: #7a4a10;
}

.cct-acc-badge--processing {
	background: #e3edf7;
	color: #1d5a96;
}

.cct-acc-badge--completed {
	background: #e2f1e6;
	color: #256b41;
}

.cct-acc-badge--cancelled,
.cct-acc-badge--failed {
	background: #f6e2e0;
	color: #94372f;
}

.cct-acc-badge--refunded {
	background: #ebe8e4;
	color: #5a504c;
}

/* ── Menu ────────────────────────────────────────────────────────── */
.cct-acc-menu {
	--cct-acc-card-padding: 16px;
}

.cct-acc-menu-user {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
	padding: 8px 8px 16px;
	border-bottom: 1px solid var( --cct-acc-border );
}

.cct-acc-avatar {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var( --cct-acc-accent );
	color: var( --cct-acc-text );
	font-family: var( --cct-acc-font-title );
	font-size: 22px;
	font-style: italic;
	line-height: 1;
}

.cct-acc-menu-user-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cct-acc-menu-user-name {
	font-weight: 700;
	line-height: 1.3;
}

.cct-acc-menu-user-email {
	overflow: hidden;
	color: var( --cct-acc-muted );
	font-size: 14px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cct-acc-menu-list {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	list-style: none;
}

.cct-acc .cct-acc-menu-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 12px;
	border-radius: 10px;
	color: var( --cct-acc-text );
	font-family: var( --cct-acc-font-ui );
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 0.2s;
}

.cct-acc .cct-acc-menu-link:hover {
	background: var( --cct-acc-tint );
}

.cct-acc .cct-acc-menu-link.is-active {
	background: var( --cct-acc-tint );
	font-weight: 600;
}

.cct-acc-menu-link .cct-acc-icon {
	font-size: 17px;
}

.cct-acc-menu-link.is-active .cct-acc-icon {
	color: var( --cct-acc-accent );
}

.cct-acc-menu-logout-item {
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1px solid var( --cct-acc-border );
}

/* ── Overview ────────────────────────────────────────────────────── */
.cct-acc-summary-grid {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 230px, 1fr ) );
	gap: 20px;
}

.cct-acc-summary {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.cct-acc-summary > .cct-acc-link {
	margin-top: auto;
}

.cct-acc-summary-payment {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cct-acc-summary-person {
	display: flex;
	flex-direction: column;
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

/* ── Orders ──────────────────────────────────────────────────────── */
.cct-acc-order-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.cct-acc-order {
	padding: 0;
	overflow: hidden;
}

.cct-acc-order-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 36px;
	padding: 16px var( --cct-acc-card-padding );
	background: var( --cct-acc-surface-alt );
}

.cct-acc-order-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cct-acc-order-head .cct-acc-badge {
	margin-left: auto;
}

.cct-acc-order-body {
	padding: 20px var( --cct-acc-card-padding );
}

.cct-acc-order-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

.cct-acc-order-thumbs {
	display: flex;
	gap: 8px;
}

.cct-acc-thumb {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	overflow: hidden;
	border-radius: 12px;
	background: var( --cct-acc-tint );
	font-family: var( --cct-acc-font-ui );
	font-size: 14px;
	font-weight: 500;
}

.cct-acc-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cct-acc-order-count {
	color: var( --cct-acc-muted );
	font-size: 15px;
}

.cct-acc-order-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-left: auto;
}

.cct-acc-order-toggle .cct-acc-icon {
	transition: transform 0.2s;
}

.cct-acc-order-toggle[aria-expanded="true"] .cct-acc-icon {
	transform: rotate( 180deg );
}

.cct-acc-order-detail {
	padding: 20px var( --cct-acc-card-padding ) var( --cct-acc-card-padding );
	border-top: 1px solid var( --cct-acc-border );
}

/* Nothing above the detail to separate it from (single order, no tracker). */
.cct-acc-order-head + .cct-acc-order-detail {
	border-top: 0;
}

/* Tracker with no summary row under it. */
.cct-acc-order-body > .cct-acc-tracker:last-child {
	margin-bottom: 4px !important;
}

/* Progress tracker: three dots joined by a line that fills up to the
 * current step. Each step draws the segment leading into it. */
.cct-acc-tracker {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	margin-bottom: 24px !important;
	list-style: none;
}

.cct-acc-tracker-step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: var( --cct-acc-muted );
	font-family: var( --cct-acc-font-ui );
	font-size: 13px;
	line-height: 1.3;
	text-align: center;
}

.cct-acc-tracker-step::before {
	content: "";
	position: absolute;
	top: 13px;
	right: 50%;
	width: 100%;
	height: 2px;
	background: var( --cct-acc-border );
}

.cct-acc-tracker-step:first-child::before {
	display: none;
}

.cct-acc-tracker-step.is-done::before,
.cct-acc-tracker-step.is-current::before {
	background: var( --cct-acc-accent );
}

.cct-acc-tracker-dot {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 2px solid var( --cct-acc-border );
	border-radius: 50%;
	background: var( --cct-acc-surface );
	color: var( --cct-acc-text );
	font-size: 13px;
}

.cct-acc-tracker-dot .cct-acc-icon {
	stroke-width: 3;
}

.cct-acc-tracker-step.is-done .cct-acc-tracker-dot {
	border-color: var( --cct-acc-accent );
	background: var( --cct-acc-accent );
}

.cct-acc-tracker-step.is-current .cct-acc-tracker-dot {
	border-color: var( --cct-acc-accent );
}

.cct-acc-tracker-step.is-current .cct-acc-tracker-dot::after {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var( --cct-acc-accent );
}

.cct-acc-tracker-step.is-done,
.cct-acc-tracker-step.is-current {
	color: var( --cct-acc-text );
	font-weight: 500;
}

/* Order detail */
.cct-acc-items {
	display: flex;
	flex-direction: column;
	gap: 14px;
	list-style: none;
}

.cct-acc-item {
	display: flex;
	align-items: center;
	gap: 14px;
}

.cct-acc-item-info {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.cct-acc .cct-acc-item-name {
	color: var( --cct-acc-text );
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: anywhere;
	text-decoration: none;
}

.cct-acc a.cct-acc-item-name:hover {
	text-decoration: underline;
	text-decoration-color: var( --cct-acc-accent );
	text-underline-offset: 4px;
}

.cct-acc-item-qty {
	color: var( --cct-acc-muted );
	font-size: 15px;
}

.cct-acc-item-price {
	flex-shrink: 0;
	font-family: var( --cct-acc-font-ui );
	font-size: 15px;
	font-weight: 500;
	text-align: right;
	white-space: nowrap;
}

.cct-acc-item-price del {
	margin-right: 4px;
	color: var( --cct-acc-muted );
	font-weight: 400;
}

.cct-acc-totals {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 20px !important;
	padding-top: 16px !important;
	border-top: 1px solid var( --cct-acc-border );
	font-family: var( --cct-acc-font-ui );
	font-size: 15px;
}

.cct-acc-totals > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.cct-acc-totals dt {
	font-weight: 400;
}

.cct-acc-totals-discount dd {
	color: #256b41;
}

.cct-acc-totals-total {
	margin-top: 4px;
	font-size: 18px;
}

.cct-acc-totals .cct-acc-totals-total dt,
.cct-acc-totals .cct-acc-totals-total dd {
	font-weight: 600;
}

.cct-acc-order-info {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 200px, 1fr ) );
	gap: 20px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var( --cct-acc-border );
}

.cct-acc-order-info .cct-acc-label {
	margin-bottom: 6px;
}

.cct-acc-order-cancel {
	margin-top: 20px !important;
}

.cct-acc-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 28px;
}

.cct-acc-pagination-status {
	color: var( --cct-acc-muted );
	font-size: 15px;
}

/* ── Addresses ───────────────────────────────────────────────────── */
.cct-acc-card-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 270px, 1fr ) );
	gap: 20px;
	transition: opacity 0.2s;
}

.cct-acc-card-grid.is-busy,
.cct-acc-payment-list.is-busy {
	opacity: 0.5;
	pointer-events: none;
}

.cct-acc-card-grid > .cct-acc-empty {
	grid-column: 1 / -1;
	padding: 24px 0 8px;
}

.cct-acc-address {
	display: flex;
	flex-direction: column;
	gap: 12px;
	border: 2px solid transparent;
}

.cct-acc-address.is-default,
.cct-acc-paycard.is-default {
	border-color: var( --cct-acc-accent );
}

.cct-acc-address-body {
	display: flex;
	flex-direction: column;
}

.cct-acc-address-name {
	font-weight: 700;
}

.cct-acc-address .cct-acc-card-actions {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var( --cct-acc-border );
}

.cct-acc .cct-acc-add-tile,
.cct-acc .cct-acc-add-tile:hover,
.cct-acc .cct-acc-add-tile:focus {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 170px;
	padding: 24px;
	border: 2px dashed var( --cct-acc-border );
	border-radius: var( --cct-acc-radius );
	background: transparent;
	color: var( --cct-acc-text );
	font-family: var( --cct-acc-font-text );
	font-size: 17px;
	font-weight: 700;
	white-space: normal;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
}

.cct-acc .cct-acc-add-tile:hover {
	border-color: var( --cct-acc-accent );
	background: var( --cct-acc-surface );
}

.cct-acc-add-tile .cct-acc-icon {
	color: var( --cct-acc-accent );
	font-size: 24px;
}

/* The add tile's text sets its own size: at checkout the tile is a <label>,
 * and the checkout widget's label typography (which this site uses to hide
 * field labels) would otherwise reach it. Same reason .cct-acc-pick-body
 * below spells out its font. */
.cct-acc-add-tile > span {
	font-family: var( --cct-acc-font-text );
	font-size: 17px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: normal;
	line-height: 1.4;
	text-transform: none;
}

/* ── Address picker (checkout) ───────────────────────────────────────
 * The same cards, each preceded by a visually hidden radio button so
 * "selected" needs no JavaScript: the accent border marks the selected
 * card here (in the account it marks the default one). */
/* The space between the cards and the address form belongs to the form:
 * when a saved address is picked the form is hidden, and the space goes
 * with it instead of trailing the section. */
.cct-details-saved + .cct-details-fields-grid {
	margin-top: 16px;
}

.cct-acc-pick {
	position: relative;
	display: flex;
}

.cct-acc-pick > .cct-acc-card,
.cct-acc-pick > .cct-acc-add-tile {
	flex: 1;
	min-width: 0;
	margin: 0;
}

.cct-acc .cct-acc-pick-input {
	position: absolute;
	top: 34px;
	left: 34px;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.cct-acc .cct-acc-pick-label {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	cursor: pointer;
}

.cct-acc-pick-radio {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 3px;
	border: 2px solid var( --cct-acc-text );
	border-radius: 50%;
	background: var( --cct-acc-surface );
}

.cct-acc-pick-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	color: var( --cct-acc-text );
	font-family: var( --cct-acc-font-text );
	font-size: 17px;
	font-style: normal;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.5;
	text-transform: none;
}

.cct-acc-pick-warning {
	color: var( --cct-acc-danger );
	font-size: 15px;
}

.cct-acc-pick-input:checked + .cct-acc-address {
	border-color: var( --cct-acc-accent );
}

.cct-acc-pick-input:checked + .cct-acc-address .cct-acc-pick-radio {
	border-color: var( --cct-acc-accent );
}

.cct-acc-pick-input:checked + .cct-acc-address .cct-acc-pick-radio::after {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var( --cct-acc-accent );
}

.cct-acc .cct-acc-pick-input:checked + .cct-acc-add-tile {
	border-style: solid;
	border-color: var( --cct-acc-accent );
	background: var( --cct-acc-surface );
}

.cct-acc-pick-input:focus-visible + .cct-acc-card,
.cct-acc-pick-input:focus-visible + .cct-acc-add-tile {
	outline: 2px solid var( --cct-acc-accent );
	outline-offset: 2px;
}

/* ── Payment methods ─────────────────────────────────────────────── */
.cct-acc-payment-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: opacity 0.2s;
}

.cct-acc-payment-list > .cct-acc-empty {
	padding: 24px 0 8px;
}

.cct-acc-paycard {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	padding-block: 18px;
	border: 2px solid transparent;
}

.cct-acc-paycard-brand {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 54px;
	height: 36px;
	border: 1px solid var( --cct-acc-border );
	border-radius: 6px;
	background: #fff;
	color: var( --cct-acc-muted );
	font-size: 20px;
}

.cct-acc-paycard-brand img {
	display: block;
	max-width: 38px;
	max-height: 24px;
}

.cct-acc-paycard-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cct-acc-paycard-title {
	font-family: var( --cct-acc-font-ui );
	font-size: 16px;
	font-weight: 500;
}

.cct-acc-paycard-detail {
	color: var( --cct-acc-muted );
	font-size: 15px;
}

.cct-acc-paycard-detail.is-expired {
	color: var( --cct-acc-danger );
}

.cct-acc-paycard .cct-acc-card-actions {
	margin-left: auto;
}

.cct-acc-payment-add {
	margin-top: 20px;
}

/* WooCommerce's own add-payment-method form (see AccountPaymentsWidget).
 * Its stylesheet paints this block lavender with a speech-bubble arrow;
 * strip that back so only the gateway's fields and our button remain.
 * Two IDs in WooCommerce's selectors, so these need them too. */
.cct-acc #add_payment_method #payment {
	border-radius: 0;
	background: none;
}

.cct-acc #add_payment_method #payment ul.payment_methods {
	margin: 0;
	padding: 0;
	border: 0;
}

.cct-acc #add_payment_method #payment ul.payment_methods li {
	list-style: none;
}

/* With a single gateway there is nothing to choose between. */
.cct-acc #add_payment_method #payment ul.payment_methods li:only-child > input.input-radio,
.cct-acc #add_payment_method #payment ul.payment_methods li:only-child > label {
	display: none;
}

.cct-acc #add_payment_method #payment div.payment_box {
	margin: 0;
	padding: 0;
	background: none;
	color: inherit;
}

.cct-acc #add_payment_method #payment div.payment_box::before {
	display: none;
}

.cct-acc #add_payment_method #payment div.payment_box fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

/* Stripe's card form, styled after the account's own fields by
 * account-widgets.js. As wide as one column of the .cct-acc-fields grid at
 * .cct-acc-form's width — ( 720px - 20px ) / 2 — so the card number is the
 * size of a regular field and expiry / CVC each take half of it. */
.cct-acc #add_payment_method #wc-stripe-upe-form {
	max-width: 350px;
}

/* Stripe makes its iframe 8px wider than this element and pulls it back
 * with a -4px margin, so the fields inside line up with the element's own
 * edges. Elementor's `.elementor iframe { max-width: 100% }` undoes the
 * extra width, leaving the fields 8px short on the right. */
.cct-acc #add_payment_method .wc-stripe-upe-element iframe {
	max-width: none;
}

.cct-acc #add_payment_method #payment div.form-row {
	margin: 20px 0 0;
	padding: 0;
}

/* ── Forms ───────────────────────────────────────────────────────── */
.cct-acc-form {
	max-width: 720px;
}

.cct-acc-fields {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 16px 20px;
	align-items: start;
}

.cct-acc-field--wide {
	grid-column: 1 / -1;
}

.cct-acc .cct-acc-field label {
	display: block;
	margin: 0 0 6px;
	color: var( --cct-acc-text );
	font-family: var( --cct-acc-font-ui );
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.cct-acc-optional {
	color: var( --cct-acc-muted );
	font-weight: 400;
}

.cct-acc .cct-acc-field input,
.cct-acc .cct-acc-field select,
.cct-acc .cct-acc-field textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 14px;
	border: 2px solid var( --cct-acc-field-border );
	border-radius: var( --cct-acc-field-radius );
	background-color: var( --cct-acc-field-bg );
	color: var( --cct-acc-field-color );
	font-family: var( --cct-acc-font-text );
	font-size: 16px;
	line-height: 1.5;
	transition: border-color 0.2s;
}

.cct-acc .cct-acc-field select {
	padding-right: 40px;
	appearance: none;
	-webkit-appearance: none;
	background-image: url( "data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d312e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E" );
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
}

.cct-acc .cct-acc-field input:focus,
.cct-acc .cct-acc-field select:focus,
.cct-acc .cct-acc-field textarea:focus {
	border-color: var( --cct-acc-field-focus );
	outline: none;
}

.cct-acc .cct-acc-field input:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.cct-acc .cct-acc-field.has-error input,
.cct-acc .cct-acc-field.has-error select,
.cct-acc .cct-acc-field.has-error textarea {
	border-color: var( --cct-acc-danger );
}

.cct-acc-field-hint {
	margin-top: 6px !important;
	color: var( --cct-acc-muted );
	font-size: 14px;
}

.cct-acc-field-error,
.cct-acc-form-message {
	margin-top: 6px !important;
	color: var( --cct-acc-danger );
	font-size: 14px;
}

.cct-acc-form-message {
	margin-top: 16px !important;
}

.cct-acc-field-error:empty,
.cct-acc-form-message:empty {
	display: none;
}

.cct-acc-password {
	position: relative;
	display: block;
}

.cct-acc .cct-acc-password input {
	padding-right: 48px;
}

.cct-acc .cct-acc-password-toggle,
.cct-acc .cct-acc-password-toggle:hover,
.cct-acc .cct-acc-password-toggle:focus {
	position: absolute;
	top: 2px;
	right: 2px;
	bottom: 2px;
	display: grid;
	place-items: center;
	width: 44px;
	padding: 0;
	border: 0;
	border-radius: var( --cct-acc-field-radius );
	background: none;
	color: var( --cct-acc-muted );
	font-size: 17px;
	cursor: pointer;
}

.cct-acc .cct-acc-password-toggle:hover {
	color: var( --cct-acc-text );
}

/* Eye when the password is hidden, crossed-out eye when it is shown. */
.cct-acc-password-toggle[aria-pressed="false"] .cct-acc-icon:last-child,
.cct-acc-password-toggle[aria-pressed="true"] .cct-acc-icon:first-child {
	display: none;
}

.cct-acc-check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	font-size: 16px;
	cursor: pointer;
}

.cct-acc-check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var( --cct-acc-accent );
}

.cct-acc-check input:disabled + span {
	color: var( --cct-acc-muted );
}

.cct-acc-form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.cct-acc-form.is-busy {
	cursor: progress;
}

/* ── Dialog ──────────────────────────────────────────────────────── */
/* No padding on the <dialog> itself: a click that lands on it is treated
 * as a click on the backdrop (see account-widgets.js). */
.cct-acc dialog.cct-acc-dialog {
	width: min( 600px, calc( 100vw - 32px ) );
	max-height: calc( 100dvh - 32px );
	padding: 0;
	overflow-y: auto;
	border: 0;
	border-radius: var( --cct-acc-radius );
	background: var( --cct-acc-tint );
	color: var( --cct-acc-text );
	box-shadow: 0 24px 60px rgba( 34, 33, 32, 0.25 );
}

.cct-acc dialog.cct-acc-dialog::backdrop {
	background: rgba( 34, 33, 32, 0.55 );
}

/* Receives focus when the dialog opens (see account-widgets.js). */
.cct-acc-dialog-head .cct-acc-heading:focus {
	outline: none;
}

.cct-acc-dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 28px 0;
}

.cct-acc-dialog .cct-acc-form {
	max-width: none;
	padding: 20px 28px 28px;
}

.cct-acc-dialog .cct-acc-form-actions {
	justify-content: flex-end;
}

.cct-acc .cct-acc-dialog-close,
.cct-acc .cct-acc-dialog-close:hover,
.cct-acc .cct-acc-dialog-close:focus {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-right: -8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var( --cct-acc-text );
	font-size: 20px;
	cursor: pointer;
}

.cct-acc .cct-acc-dialog-close:hover {
	background: var( --cct-acc-border );
}

html.cct-acc-dialog-open {
	overflow: hidden;
}

/* ── Toast ───────────────────────────────────────────────────────── */
/* Appended to <body>, outside any .cct-acc — so no tokens here. */
.cct-acc-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	z-index: 100000;
	max-width: calc( 100vw - 32px );
	padding: 12px 22px;
	border-radius: 10px;
	background: #222120;
	color: #fdfdfd;
	font-family: var( --e-global-typography-accent-font-family ), system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: 0 8px 24px rgba( 34, 33, 32, 0.25 );
	opacity: 0;
	pointer-events: none;
	transform: translate( -50%, 12px );
	transition: opacity 0.25s, transform 0.25s;
}

.cct-acc-toast.is-visible {
	opacity: 1;
	transform: translate( -50%, 0 );
}

.cct-acc-toast[data-type="error"] {
	background: #94372f;
}

/* ── Notices (WooCommerce's own, e.g. "payment method added") ─────── */
.cct-acc .woocommerce-notices-wrapper:empty {
	display: none;
}

.cct-acc .woocommerce-message,
.cct-acc .woocommerce-info,
.cct-acc .woocommerce-error {
	margin: 0 0 24px;
	padding: 14px 18px;
	border: 0;
	border-left: 4px solid var( --cct-acc-accent );
	border-radius: 10px;
	background: var( --cct-acc-surface );
	color: var( --cct-acc-text );
	font-size: 16px;
	list-style: none;
}

.cct-acc .woocommerce-error {
	border-left-color: var( --cct-acc-danger );
}

/* WooCommerce moves focus to a notice so it gets read out; it isn't a
 * control, so no focus ring. */
.cct-acc .woocommerce-message:focus,
.cct-acc .woocommerce-info:focus,
.cct-acc .woocommerce-error:focus {
	outline: none;
}

.cct-acc .woocommerce-message::before,
.cct-acc .woocommerce-info::before,
.cct-acc .woocommerce-error::before {
	display: none;
}

/* ── Logged-out: WooCommerce's login / lost-password forms ───────── */
.cct-acc-login {
	max-width: 460px;
}

/* Log in / create account switch. WooCommerce prints the two forms as
 * side-by-side columns; with the switch present only the chosen one shows
 * (data-cct-auth on the wrapper says which), and the switch replaces the
 * columns' own headings. */
.cct-acc-auth-switch {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	margin-bottom: 16px;
	padding: 4px;
	border-radius: 999px;
	background: var( --cct-acc-surface-alt );
}

.cct-acc .cct-acc-auth-switch button,
.cct-acc .cct-acc-auth-switch button:hover,
.cct-acc .cct-acc-auth-switch button:focus {
	padding: 9px 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var( --cct-acc-text );
	font-family: var( --cct-acc-font-ui );
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	white-space: normal;
	cursor: pointer;
	transition: background-color 0.2s;
}

.cct-acc .cct-acc-auth-switch button[aria-pressed="true"] {
	background: var( --cct-acc-surface );
	font-weight: 600;
}

.cct-acc-login[data-cct-auth] .woocommerce h2,
.cct-acc-login[data-cct-auth="login"] .u-column2,
.cct-acc-login[data-cct-auth="register"] .u-column1 {
	display: none;
}

.cct-acc-login[data-cct-auth] .woocommerce .u-columns > div {
	float: none;
	width: 100%;
}

.cct-acc-login .woocommerce .woocommerce-privacy-policy-text p {
	margin: 0 0 16px;
	color: var( --cct-acc-muted );
	font-size: 14px;
	line-height: 1.5;
}

.cct-acc-login .woocommerce .woocommerce-privacy-policy-text a {
	color: var( --cct-acc-text );
	text-decoration: underline;
	text-decoration-color: var( --cct-acc-accent );
	text-underline-offset: 3px;
}

/* WooCommerce's password strength meter (shown while typing a new password). */
.cct-acc-login .woocommerce .woocommerce-password-strength {
	margin-top: 8px;
	padding: 6px 12px;
	border: 0;
	border-radius: 8px;
	font-family: var( --cct-acc-font-ui );
	font-size: 13px;
	font-weight: 500;
	text-align: left;
}

.cct-acc-login .woocommerce .woocommerce-password-hint {
	display: block;
	margin-top: 8px;
	color: var( --cct-acc-muted );
	font-size: 13px;
	line-height: 1.45;
}

.cct-acc-login .woocommerce h2 {
	margin: 0 0 16px;
	color: var( --cct-acc-text );
	font-family: var( --cct-acc-font-text );
	font-size: 22px;
	font-style: italic;
	font-weight: 400;
}

.cct-acc-login .woocommerce form.login,
.cct-acc-login .woocommerce form.register,
.cct-acc-login .woocommerce form.lost_reset_password {
	margin: 0;
	padding: var( --cct-acc-card-padding );
	border: 0;
	border-radius: var( --cct-acc-radius );
	background: var( --cct-acc-surface );
}

.cct-acc-login .woocommerce form .form-row,
.cct-acc-login .woocommerce form .form-row-first,
.cct-acc-login .woocommerce form .form-row-last {
	float: none;
	width: 100%;
	margin: 0 0 16px;
	padding: 0;
}

.cct-acc-login .woocommerce form > p:not( .form-row ) {
	margin: 0 0 16px;
}

.cct-acc-login .woocommerce form .form-row label {
	margin-bottom: 6px;
	font-family: var( --cct-acc-font-ui );
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.cct-acc-login .woocommerce form .form-row .required {
	color: var( --cct-acc-accent );
}

.cct-acc-login .woocommerce form .form-row input.input-text {
	min-height: 48px;
	padding: 10px 14px;
	border: 2px solid var( --cct-acc-border );
	border-radius: var( --cct-acc-field-radius );
	background: var( --cct-acc-field-bg );
	color: var( --cct-acc-field-color );
	font-family: var( --cct-acc-font-text );
	font-size: 16px;
}

.cct-acc-login .woocommerce form .form-row input.input-text:focus {
	border-color: var( --cct-acc-field-focus );
	outline: none;
}

.cct-acc-login .woocommerce form .password-input {
	display: block;
}

.cct-acc-login .woocommerce form .show-password-input,
.cct-acc-login .woocommerce form .show-password-input:hover,
.cct-acc-login .woocommerce form .show-password-input:focus {
	top: 50%;
	right: 12px;
	padding: 0;
	border: 0;
	background: none;
	color: var( --cct-acc-text );
	transform: translateY( -50% );
}

.cct-acc-login .woocommerce form .form-row label.woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	font-family: var( --cct-acc-font-text );
	font-size: 16px;
	font-weight: 400;
}

.cct-acc-login .woocommerce form .woocommerce-form__label-for-checkbox input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var( --cct-acc-accent );
}

.cct-acc-login .woocommerce button.button,
.cct-acc-login .woocommerce button.button:disabled[disabled] {
	display: block;
	float: none;
	width: 100%;
	margin: 0;
	padding: 12px 24px;
	border: 2px solid var( --cct-acc-btn-bg );
	border-radius: var( --cct-acc-btn-radius );
	background: var( --cct-acc-btn-bg );
	color: var( --cct-acc-btn-color );
	font-family: var( --cct-acc-font-text );
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.cct-acc-login .woocommerce button.button:hover,
.cct-acc-login .woocommerce button.button:focus {
	border-color: var( --cct-acc-btn-hover-bg );
	background: var( --cct-acc-btn-hover-bg );
	color: var( --cct-acc-btn-hover-color );
}

.cct-acc-login .woocommerce .lost_password {
	margin: 16px 0 0;
	font-size: 15px;
}

.cct-acc-login .woocommerce .lost_password a {
	color: var( --cct-acc-text );
	text-decoration: underline;
	text-decoration-color: var( --cct-acc-accent );
	text-underline-offset: 4px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media screen and ( max-width: 767px ) {
	.cct-acc {
		--cct-acc-card-padding: 18px;
	}

	.cct-acc .cct-acc-title {
		font-size: 27px;
	}

	.cct-acc-head {
		margin-bottom: 20px;
	}

	/* Menu: a single row of pills that scrolls sideways. */
	.cct-acc-menu {
		--cct-acc-card-padding: 0;
		background: none;
	}

	.cct-acc-menu-user {
		display: none;
	}

	.cct-acc-menu-list {
		flex-direction: row;
		gap: 8px;
		padding: 2px 0;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.cct-acc-menu-list::-webkit-scrollbar {
		display: none;
	}

	.cct-acc .cct-acc-menu-link {
		gap: 8px;
		padding: 8px 14px;
		border: 1px solid transparent;
		border-radius: 999px;
		background: var( --cct-acc-surface-alt );
		white-space: nowrap;
	}

	.cct-acc .cct-acc-menu-link.is-active {
		border-color: var( --cct-acc-accent );
		background: var( --cct-acc-surface );
	}

	.cct-acc-menu-logout-item {
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
	}

	.cct-acc .cct-acc-menu-logout {
		background: none;
	}

	.cct-acc-order-head {
		gap: 10px 24px;
	}

	.cct-acc-order-head .cct-acc-badge {
		order: -2;
		margin-left: 0;
	}

	/* Badge on its own line above the order number/date/total. */
	.cct-acc-order-head::before {
		content: "";
		order: -1;
		flex-basis: 100%;
		height: 0;
		margin-top: -10px;
	}

	.cct-acc-order-actions {
		width: 100%;
		margin-left: 0;
	}

	.cct-acc-order-actions .cct-acc-btn {
		flex: 1;
	}

	.cct-acc-thumb {
		width: 52px;
		height: 52px;
	}

	.cct-acc-fields {
		grid-template-columns: minmax( 0, 1fr );
	}

	.cct-acc #add_payment_method #wc-stripe-upe-form {
		max-width: none;
	}

	.cct-acc-form-actions .cct-acc-btn {
		flex: 1;
	}

	.cct-acc-paycard .cct-acc-card-actions {
		width: 100%;
		margin-left: 0;
		padding-top: 12px;
		border-top: 1px solid var( --cct-acc-border );
	}

	.cct-acc-dialog-head {
		padding: 20px 20px 0;
	}

	.cct-acc-dialog .cct-acc-form {
		padding: 16px 20px 20px;
	}

	.cct-acc-dialog .cct-acc-form-actions {
		flex-direction: column-reverse;
	}
}
