/* ==========================================================================
   EVERFOX — My Account Styles
   Single source of truth for /my-account/ page.
   Colors: ef.colors.css  |  Radius: --everfox-radius / --everfox-radius-lg
   ========================================================================== */

/* ==========================================================================
   EF Dropdown — reusable collapsible card (EPT visual parity)
   Usage: .ef-dropdown > .ef-dropdown__header + .ef-dropdown__body > .ef-dropdown__body-inner
   States: default = closed, .is-open = expanded
   Width: inherits from parent
   ========================================================================== */

/* --- Shell --- */
.ef-dropdown {
	border: 1px solid var(--EF-Color-Border-Light);
	border-radius: var(--everfox-radius);
	background: var(--EF-Color-Surface);
}

/* --- Header --- */
.ef-dropdown__header {
	display: flex;
	width: 100%;
	min-height: 45px;
	padding: 4px 12px;
	align-items: center;
	gap: 8px;
	font-family: inherit;
	font-size: inherit;
	text-align: left;
	color: inherit;
	cursor: pointer;
	background: var(--EF-Color-Surface-2);
	transition: background 0.15s;
}

/* --- Header (open) --- */
.ef-dropdown.is-open .ef-dropdown__header {
	border-bottom: 1px solid var(--EF-Color-Border-Light);
}

/* --- Icon --- */
.ef-dropdown__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
}

/* --- Title --- */
.ef-dropdown__title {
	font-size: 14px;
	font-weight: 400;
	color: var(--EF-Color-Text);
}

/* --- Summary (hidden when open) --- */
.ef-dropdown__summary {
	flex: 1 1 0%;
	overflow: hidden;
	font-size: 13px;
	text-align: right;
	white-space: nowrap;
	color: var(--EF-Color-Text-Muted);
}

.ef-dropdown.is-open .ef-dropdown__summary {
	display: none;
}

/* --- Chevron (right-aligned, rotates) --- */
.ef-dropdown__chevron {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	margin-left: auto;
	color: var(--EF-Color-Text-Muted);
	transform: rotate(-90deg);
	transition: transform 0.2s;
}

.ef-dropdown.is-open .ef-dropdown__chevron {
	transform: rotate(0deg);
}

/* --- Body (hidden when closed) --- */
.ef-dropdown__body {
	display: none;
}

.ef-dropdown.is-open .ef-dropdown__body {
	display: block;
}

/* --- Body-inner --- */
.ef-dropdown__body-inner {
	padding: 16px 6px;
}

/* ========================================================================== */

/* ---------- Hide page title on My Account ---------- */
.woocommerce-account .entry-hero .entry-header .entry-title { display: none; }

/* ---------- Layout: sidebar + content ---------- */

.woocommerce-account .entry-content > .woocommerce {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 20px;
	max-width: var(--global-content-width, 1430px);
	margin: 0 auto;
}

/* Kill theme clearfix pseudo-elements — they become grid items */
.woocommerce-account .entry-content > .woocommerce::before,
.woocommerce-account .entry-content > .woocommerce::after {
	content: none;
	display: none;
}

.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: 100%;
	min-width: 0;
	padding: 0;
	margin: 0;
}

/* ---------- User Info Block ---------- */

.ef-account-user {
	display: none;
}


/* ---------- Navigation ---------- */

.ef-account-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ef-account-nav li {
	margin: 0;
}

.ef-account-nav li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 24px;
	font-size: 14px;
	color: var(--EF-Color-Text-2);
	text-decoration: none;
	border-left: 3px solid transparent;
	transition: all 0.15s ease;
}

.ef-account-nav li a:hover {
	color: var(--EF-Color-Text);
	background: var(--EF-Color-Surface-2);
}

.ef-account-nav li.is-active a,
.ef-account-nav li.woocommerce-MyAccount-navigation-link--dashboard.is-active a {
	color: var(--EF-Color-Primary);
	font-weight: 500;
	border-left-color: var(--EF-Color-Primary);
	background: var(--EF-Color-Surface-2);
}

.ef-account-nav__icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

/* ---------- Accordion Sections ---------- */

.ef-account-sections {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* --- Shell --- */
.ef-account-section {
	border: 1px solid var(--EF-Color-Border-Light);
	border-radius: var(--everfox-radius);
	background: var(--EF-Color-Surface);
}
.ef-account-section[data-section="bonus"] {
	margin: 16px 0;
}

/* --- Header --- */
.ef-account-section__header {
	display: flex;
	width: 100%;
	padding: 10px 10px 10px 20px;
	align-items: center;
	gap: 10px;
	font-family: inherit;
	font-size: inherit;
	text-align: left;
	color: inherit;
	cursor: pointer;
	background: var(--EF-Color-Surface-2);
	transition: background 0.15s;
}

/* --- Header (open) --- */
.ef-account-section.is-open .ef-account-section__header {
	border-bottom: 1px solid var(--EF-Color-Border-Light);
}

/* --- Icon --- */
.ef-account-section__icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

/* --- Title --- */
.ef-account-section__title {
	font-size: 14px;
	font-weight: 400;
	color: var(--EF-Color-Text);
}

/* --- Summary (hidden when open) --- */
.ef-account-section__summary {
	flex: 1 1 0%;
	overflow: hidden;
	font-size: 13px;
	text-align: right;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--EF-Color-Text-Muted);
}

.ef-account-section.is-open .ef-account-section__summary {
	display: none;
}

/* --- Chevron (right-aligned, rotates right→down) --- */
.ef-account-section__chevron {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	margin-left: auto;
	color: var(--EF-Color-Text-Muted);
	transform: rotate(-90deg);
	transition: transform 0.2s;
}

.ef-account-section.is-open .ef-account-section__chevron {
	transform: rotate(0deg);
}

/* --- Body --- */
.ef-account-section__body {
	padding: 16px;
}

.ef-account-section__body[hidden] {
	display: none;
}

/* Shipping type selector styles removed — now in v2 */

/* ---------- Address Display (text + Змінити button) ---------- */

.ef-address-display {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.ef-address-display[hidden] {
	display: none;
}

.ef-address-display__content {
	flex: 1;
}

.ef-address-display__line {
	font-size: 14px;
	color: var(--EF-Color-Text);
	line-height: 1.3;
}

.ef-address-display__line + .ef-address-display__line {
	margin-top: 12px;
}

.ef-address-display__line strong {
	font-weight: 600;
}

.ef-address-form-wrapper[hidden] {
	display: none;
}

.ef-shipping-fields {
	margin-bottom: 0;
}

.ef-shipping-fields[hidden] {
	display: none;
}

.ef-shipping-fields .ef-account-form__row {
	max-width: none;
}

/* ---------- Forms ---------- */

.ef-account-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
	max-width: 560px;
}

.ef-account-form__row--single {
	grid-template-columns: 1fr;
	max-width: 280px;
}

.ef-account-form__field {
	min-width: 0;
}

.ef-account-form__field--full {
	grid-column: 1 / -1;
}

.ef-account-form__field label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--EF-Color-Text-2);
	margin-bottom: 5px;
	padding-left: 6px;
}

/* Inputs */
.ef-account-form__field input[type="text"],
.ef-account-form__field input[type="tel"],
.ef-account-form__field input[type="email"],
.ef-account-form__field input[type="password"],
.ef-account-form__field input[type="date"] {
	width: 100%;
	height: 40px;
	padding: 0 14px;
	font-size: 14px;
	font-family: inherit;
	color: var(--EF-Color-Text);
	background: var(--EF-Color-Surface);
	border: 1px solid var(--EF-Color-Border-Medium);
	border-radius: var(--everfox-radius);
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;

}

.ef-account-form__field input:focus {
	box-shadow: 0 0 0 3px var(--EF-Color-Focus-Ring);
}

/* Date input — site-themed */
.ef-account-form__field input[type="date"] {
	accent-color: var(--EF-Color-Primary);
}

.ef-account-form__field input[type="date"]::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.15s ease;
}

.ef-account-form__field input[type="date"]::-webkit-calendar-picker-indicator:hover {
	opacity: 0.8;
}

/* Date wrap — mobile placeholder overlay */
.ef-date-wrap {
	position: relative;
}

.ef-date-wrap input[type="date"] {
	position: relative;
	z-index: 1;
}

@media (max-width: 768px) {
	/* On mobile, type=date shows empty — overlay placeholder text */
	.ef-date-wrap.is-empty::after {
		content: "дд.мм.рррр";
		position: absolute;
		top: 50%;
		left: 14px;
		transform: translateY(-50%);
		font-size: 14px;
		color: var(--EF-Color-Text-Muted);
		pointer-events: none;
		z-index: 2;
	}
	/* Hide native date text when showing custom placeholder */
	.ef-date-wrap.is-empty input[type="date"] {
		color: transparent;
	}
	.ef-date-wrap.is-empty input[type="date"]::-webkit-datetime-edit {
		color: transparent;
	}

	/* When value is set, hide overlay (z-index trick not needed, class removed) */
	.ef-date-wrap:not(.is-empty)::after {
		display: none;
	}
}

/* Old account select styles removed — now uses v2 shared styles (.ef-shipping-fields) */

/* Select2 dropdown styles (.ef-np-dropdown) removed — now in v2 */

/* ---------- Inline form layout (Personal, Contacts) ---------- */

[data-section="contacts"] .ef-account-form {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 0 16px;
	align-items: end;
}
[data-section="personal"] .ef-account-form {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 8px 16px;
	align-items: end;
	max-width: none;
}

[data-section="personal"] .ef-account-form .ef-account-form__field {
	margin: 0;
}

/* Ім'я — col 1 row 1 */
[data-section="personal"] .ef-account-form .ef-account-form__field:nth-child(1) {
	grid-column: 1;
	grid-row: 1;
}

/* Прізвище — col 1 row 2 */
[data-section="personal"] .ef-account-form .ef-account-form__field:nth-child(2) {
	grid-column: 1;
	grid-row: 2;
}

/* Дата народження — col 2 row 1 */
[data-section="personal"] .ef-account-form .ef-account-form__field:nth-child(3) {
	grid-column: 2;
	grid-row: 1;
}

/* Зберегти — col 3 row 1 */
[data-section="personal"] .ef-account-form .ef-account-form__actions {
	grid-column: 3;
	grid-row: 1;
	margin-top: 0;
}


[data-section="contacts"] .ef-account-form .ef-account-form__actions {
	margin-top: 0;
}

[data-section="personal"] .ef-account-form .ef-account-form__actions,
[data-section="contacts"] .ef-account-form .ef-account-form__actions {
	flex-wrap: wrap;
}
[data-section="personal"] .ef-account-form .ef-account-form__status,
[data-section="contacts"] .ef-account-form .ef-account-form__status {
	width: 100%;
	text-align: right;
	margin-top: 4px;
}

/* ---------- Password form — grid layout ---------- */
/* Row 1: current | new | button
   Row 2:         | confirm          */

.ef-account-form--password {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	grid-template-rows: auto auto;
	gap: 8px 16px;
	align-items: end;
	max-width: none;
}

.ef-account-form--password .ef-account-form__field {
	margin: 0;
}

/* current password */
.ef-account-form--password .ef-account-form__field:has(#ef-current-password) {
	grid-column: 1;
	grid-row: 1;
}

/* new password */
.ef-account-form--password .ef-account-form__field:has(#ef-new-password) {
	grid-column: 2;
	grid-row: 1;
}

/* button */
.ef-account-form--password .ef-account-form__actions {
	grid-column: 3;
	grid-row: 1;
	margin-top: 0;
}

/* confirm password */
.ef-account-form--password .ef-account-form__field:has(#ef-confirm-password) {
	grid-column: 2;
	grid-row: 2;
}

.ef-account-form__hint {
	font-size: 14px;
	color: var(--EF-Color-Olive, #5F7A00);
	margin: 0 0 12px;
	line-height: 1.4;
}

/* ---------- Actions ---------- */

.ef-account-form__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-top: 20px;
	position: relative;
}
.ef-account-form__actions .ef-account-btn + .ef-account-btn {
	margin-left: 20px;
}

/* .ef-account-btn — overrides only (base from .ef-button in everfox-v2.css) */
.ef-account-btn {
	text-decoration: none;
}

/* Status span — now hidden, tooltip is used instead */
.ef-account-form__status {
	display: none;
}

/* ---------- Account tooltip variants ---------- */
.ef-info-tooltip--account.ef-info-tooltip--error {
	background: var(--EF-Color-Danger);
}
.ef-info-tooltip--account.ef-info-tooltip--error::after {
	border-top-color: var(--EF-Color-Danger);
}
.ef-info-tooltip--account.ef-info-tooltip--error.ef-info-tooltip--below::after {
	border-top-color: transparent;
	border-bottom-color: var(--EF-Color-Danger);
}
.ef-info-tooltip--account.ef-info-tooltip--info {
	background: var(--EF-Color-Primary);
}
.ef-info-tooltip--account.ef-info-tooltip--info::after {
	border-top-color: var(--EF-Color-Primary);
}
.ef-info-tooltip--account.ef-info-tooltip--info.ef-info-tooltip--below::after {
	border-top-color: transparent;
	border-bottom-color: var(--EF-Color-Primary);
}

.ef-info-tooltip--account.ef-info-tooltip--success {
	background: #2e7d32;
}
.ef-info-tooltip--account.ef-info-tooltip--success::after {
	border-top-color: #2e7d32;
}
.ef-info-tooltip--account.ef-info-tooltip--success.ef-info-tooltip--below::after {
	border-top-color: transparent;
	border-bottom-color: #2e7d32;
}

/* .ef-account-btn--outline — overrides only (base from .ef-button--outline) */

/* ---------- Empty state ---------- */

.ef-account-empty {
	text-align: center;
	padding: 20px 0;
}

.ef-account-empty p {
	font-size: 14px;
	color: var(--EF-Color-Text-Muted);
	margin: 0;
}

/* ---------- Order Cards (Collapsible) ---------- */

.ef-orders {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* --- Shell --- */
.ef-order-card {
	border: 1px solid var(--EF-Color-Border-Light);
	border-radius: var(--everfox-radius);
	background: var(--EF-Color-Surface);
	overflow: hidden;
}

/* --- Header --- */
.ef-order-card__header {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 14px 20px;
	font-family: inherit;
	text-align: left;
	font-size: 14px;
	color: var(--EF-Color-Text);
	cursor: pointer;
	background: var(--EF-Color-Surface-2);
	transition: background 0.15s ease;
}

/* --- Header (open) --- */
.ef-order-card.is-open .ef-order-card__header {
	border-bottom: 1px solid var(--EF-Color-Border-Light);
}

.ef-order-card__number {
	width: 115px;
	font-weight: 600;
	flex-shrink: 0;
}

.ef-order-card__sep {
	margin: 0 -4px;
	color: var(--EF-Color-Text-Muted);
	flex-shrink: 0;
}

.ef-order-card__date {
	width: 90px;
	flex-shrink: 0;
	color: var(--EF-Color-Text-2);
}

.ef-order-card__total {
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	margin-left: auto;
	margin-right: 15px;
	color: var(--EF-Color-Olive);
}

.ef-order-card__total .woocommerce-Price-currencySymbol {
	font-weight: 400;
	margin-left: 2px;
}

.ef-order-card__total .old-total-price {
	font-size: 13px;
	font-weight: 400;
	color: var(--EF-Color-Text-Muted);
	text-decoration: line-through;
	text-decoration: line-through;
	margin-right: 6px;
}

.ef-order-card__total .new-total-price {
	color: var(--EF-Color-Olive);
}

/* Chevron */
.ef-order-card__chevron {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	color: var(--EF-Color-Text-Muted);
	transform: rotate(-90deg);
	transition: transform 0.2s;
}

.ef-order-card.is-open .ef-order-card__chevron {
	transform: rotate(0deg);
}

/* Hide total price in header when card is open */
.ef-order-card.is-open .ef-order-card__total {
	visibility: hidden;
}

/* Body (hidden by default) */
.ef-order-card__body[hidden] {
	display: none;
}

/* ── Order Stepper (dots + line, inside details) ── */

.ef-order-card__detail--stepper {
	align-items: flex-start;
	max-width: 100%;
}

@media (max-width: 480px) {
	.ef-order-card__detail--stepper {
		max-width: 100%;
	}
}

.ef-stepper {
	display: flex;
	align-items: flex-start;
	width: 100%;
	max-width: 340px;
	gap: 6px;
}

@media (max-width: 480px) {
	.ef-stepper {
		max-width: 100%;
	}
}

.ef-stepper__step {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	position: relative;
	min-width: 0;
}

/* Connector: spans from dot right edge across gap to next dot left edge */
.ef-stepper__step:not(:last-child) .ef-stepper__connector {
	position: absolute;
	top: 9px;
	left: calc(50% + 10px);
	width: calc(100% + 6px - 20px);
	height: 2px;
	background: var(--EF-Color-Border-Light);
}

/* Connector states */
.ef-stepper__connector--completed {
	background: var(--EF-Color-Primary-Soft) !important;
}

/* Dot with number */
.ef-stepper__number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	text-indent: -0.5px;
}

/* upcoming */
.ef-stepper__step--upcoming .ef-stepper__number {
	background: var(--EF-Color-Surface);
	border: 2px solid var(--EF-Color-Border-Light);
	color: var(--EF-Color-Text-Muted);
}

/* active — double ring: white gap + violet outline, clips the connector line */
.ef-stepper__step--active .ef-stepper__number {
	background: var(--EF-Color-Primary);
	border: 2px solid var(--EF-Color-Primary);
	color: #fff;
	box-shadow: 0 0 0 2px var(--EF-Color-Surface), 0 0 0 4px #9B6DDB;
}

/* completed */
.ef-stepper__step--completed .ef-stepper__number {
	background: var(--EF-Color-Primary-Soft);
	border: 2px solid var(--EF-Color-Primary-Soft);
	color: #fff;
}

/* Label */
.ef-stepper__label {
	margin-top: 8px;
	font-size: 9px;
	line-height: 1.5;
	text-align: center;
}

.ef-stepper__step--upcoming .ef-stepper__label {
	color: var(--EF-Color-Text-Muted);
}

.ef-stepper__step--active .ef-stepper__label {
	color: var(--EF-Color-Primary);
	font-weight: 500;
}

.ef-stepper__step--completed .ef-stepper__label {
	color: var(--EF-Color-Primary-Soft);
}

/* ── Stepper: Mobile ── */
@media (max-width: 600px) {
	.ef-stepper__number {
		width: 16px;
		height: 16px;
		font-size: 9px;
	}

	.ef-stepper__step:not(:last-child) .ef-stepper__connector {
		top: 7px;
		left: calc(50% + 8px);
		width: calc(100% + 6px - 16px);
	}

	.ef-stepper__step--active .ef-stepper__number {
		box-shadow: 0 0 0 2px var(--EF-Color-Surface), 0 0 0 3.5px #9B6DDB;
	}
}

/* Items container */
.ef-order-card__items {
	padding: 10px 10px 0 10px;
}

/* --- Order item cards: only order-specific overrides --- */

.ef-order-card__items .everfox-popup-cart-item {
	padding: 5px 0 5px;
}

.ef-order-card__items .everfox-popup-main {
	padding-bottom: 20px;
}

.ef-order-card__items .lumise-more-photos-btn {
	display: block;
	margin-top: 5px;
}
.ef-order-card__items .lumise-view-design-link {
	font-size: 12px;
	color: var(--EF-Color-Link);
}

/* Order-specific: price in same row as name */
.ef-order-card__items .everfox-popup-name {
	justify-content: space-between;
	gap: 10px;
}
.ef-order-card__items .everfox-popup-name a,
.ef-order-card__items .everfox-popup-name > span {
	flex: 1;
	min-width: 0;
	-webkit-line-clamp: 2;
}

/* Urgent item — aligned under info column */
.ef-order-card__items .everfox-order-urgent-item .everfox-popup-main {
	padding-bottom: 0;
	margin: 0;
}
.ef-order-card__items .everfox-order-urgent-item .everfox-popup-name > span {
	font-size: 13px;
	font-weight: 500;
	color: var(--EF-Color-Text);
	min-height: 25px;
}
.ef-order-card__items .everfox-order-urgent-item .everfox-popup-price > span {
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	min-height: 25px;
}

/* Fix price display in order items — reset inherited -webkit-box from .everfox-popup-name span */
.ef-order-card__items .everfox-popup-price,
.ef-order-card__items .everfox-popup-price span,
.ef-order-card__items .everfox-popup-price del,
.ef-order-card__items .everfox-popup-price ins,
.ef-order-card__items .everfox-popup-price bdi {
	display: inline;
	overflow: visible;
	-webkit-line-clamp: unset;
	-webkit-box-orient: unset;
	white-space: nowrap;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: normal;
}
.ef-order-card__items .everfox-popup-price {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	align-items: flex-end;
	min-width: 45px;
}
.ef-order-card__items .everfox-popup-price del {
	text-decoration: none;
	font-size: 11px;
	font-weight: 300;
	line-height: 1.2;
	color: var(--EF-Color-Price-Old);
}
.ef-order-card__items .everfox-popup-price ins {
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: var(--EF-Color-Olive);
}
.ef-order-card__items .everfox-popup-price > span {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--EF-Color-Olive);
}
.ef-order-card__items .everfox-popup-price .woocommerce-Price-currencySymbol {
	font-weight: 400;
}

/* Last order item — no bottom border */
.ef-order-card__items .everfox-popup-cart-item:last-child {
	border-bottom: none;
	margin: 0 0 10px;
	padding: 5px 0 0;
}
.ef-order-card__items .everfox-order-urgent-item:last-child {
	margin: 0;
}

/* Options inside col-info — reset inherited margins */
.ef-order-card__items .everfox-popup-options {
	margin: 0;
	height: auto;
	overflow: visible;
}

/* Order totals summary */
.ef-order-card__totals {
	display: flex;
	padding: 10px 10px 0;
	flex-direction: column;
	background: var(--EF-Color-Surface-2, #f5f7f9);
}
.ef-order-card__totals-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 8px;
}
.ef-order-card__totals-label {
	font-size: 13px;
	font-weight: 400;
	color: var(--EF-Color-Text-2, #535B65);
}
.ef-order-card__totals-value {
	font-size: 14px;
	font-weight: 500;
	color: var(--EF-Color-Olive);
}
.ef-order-card__totals-value .woocommerce-Price-currencySymbol {
	font-weight: 400;
}
.ef-order-card__totals-row--total {
	font-weight: 500;
	padding: 0 0 10px;
}
.ef-order-card__totals-row--total .ef-order-card__totals-label {
	font-size: 15px;
	font-weight: 500;
	color: var(--EF-Color-Text);
}
.ef-order-card__totals-row--total .old-total-price {
	display: inline-block;
	font-size: 13px;
	font-weight: 400;
	color: var(--EF-Color-Price-Old);
	text-decoration: line-through;
}
.ef-order-card__totals-row--total .new-total-price {
	display: inline-block;
	font-size: 15px;
	font-weight: 500;
	color: var(--EF-Color-Olive);
}
.ef-order-card__totals-code {
	font-weight: 400;
	color: var(--EF-Color-Text);
}

/* Details section */
.ef-order-card__details {
	padding: 15px 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ef-order-card__detail {
	display: flex;
	gap: 10px;
	font-size: 13px;
	line-height: 1.7;
	padding-bottom: 10px;
}

.ef-order-card__detail-label {
	flex-shrink: 0;
	width: 75px;
	color: var(--EF-Color-Text-Muted);
}

.ef-order-card__detail-value {
	color: var(--EF-Color-Text);
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.7;
}
/* Multiline values: each row 1 line + ellipsis */
.ef-order-card__detail-value--multiline {
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
}
.ef-order-card__detail-row {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 2 lines + ellipsis (comment) */
.ef-order-card__detail-value--clamp2 {
	white-space: normal;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* Address: city 1 line + ellipsis, address/warehouse 2 lines + ellipsis */
.ef-order-card__detail--address .ef-order-card__detail-value {
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
}
.ef-order-card__addr-city {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ef-order-card__addr-line {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Free shipping badge */
.ef-order-card__free-shipping {
	background: var(--EF-Color-Accent-Soft, #F2F7D9);
	border-left: 3px solid var(--EF-Color-Olive, #5F7A00);
	padding: 8px 10px;
	margin: 0 -10px 0 -10px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--EF-Color-Text, #1F2631);
}
.ef-order-card__free-shipping svg {
	vertical-align: -1px;
	margin-right: 5px;
}

/* Actions */
.ef-order-card__actions {
	display: flex;
	gap: 12px;
	padding: 16px 20px;
	border-top: 1px solid var(--EF-Color-Border-Light);
	justify-content: flex-end;
}
.ef-order-card__actions .ef-account-btn {
	min-width: 220px;
	text-align: center;
}

/* ---------- Empty orders ---------- */

.ef-orders-empty {
	text-align: center;
	padding: 60px 20px;
}

.ef-orders-empty svg {
	color: var(--EF-Color-Text-Muted);
	margin-bottom: 16px;
}

.ef-orders-empty p {
	font-size: 15px;
	color: var(--EF-Color-Text-2);
	margin: 0 0 20px;
}

/* ---------- Pagination (uses .ef-reviews-pagination from everfox-v2.css) ---------- */

.ef-orders .ef-reviews-pagination {
	padding: 10px 0;
}

.ef-bonus-pagination.ef-reviews-pagination {
	padding: 0;
	margin-top: 10px;
}

/* ---------- Tablet sidebar (680–1023px) ---------- */

@media (max-width: 1023px) and (min-width: 680px) {
	.woocommerce-account .entry-content > .woocommerce {
		grid-template-columns: 200px 1fr;
	}

	/* Override theme 70%/80% width rules */
	.woocommerce-account .woocommerce-MyAccount-content {
		width: 100% !important;
	}

	.ef-account-form__row {
		max-width: none;
	}
}

/* ---------- Horizontal tabs (< 680px) ---------- */

@media (max-width: 679px) {
	.woocommerce-account .entry-content > .woocommerce {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	/* Override theme 70%/80% width rules */
	.woocommerce-account .woocommerce-MyAccount-content {
		width: 100% !important;
	}

	.ef-account-nav {
		display: flex;
		align-items: center;
		margin: 0 0 12px 0;
	}

	.ef-account-nav ul {
		display: flex;
		width: 100%;
		margin: 0;
		border-bottom: 1px solid var(--EF-Color-Border-Light);
	}

	.ef-account-nav li {
		flex: 1;
	}

	.ef-account-nav li a {
		justify-content: center;
		white-space: nowrap;
		border-left: none;
		border-bottom: 3px solid transparent;
		margin-bottom: -1px;
		padding: 12px 6px;
		gap: 6px;
		min-width: 180px;
	}

	.ef-account-nav li.is-active a,
	.ef-account-nav li.woocommerce-MyAccount-navigation-link--dashboard.is-active a {
		border-left-color: transparent;
		border-bottom-color: var(--EF-Color-Primary);
	}

	.ef-account-form__row {
		max-width: none;
	}
}

/* ---------- Mobile (< 768px) ---------- */

@media (max-width: 768px) {
	.ef-account-section__body {
		padding: 8px;
	}

	.ef-account-form__row {
		grid-template-columns: 1fr;
	}

	/* Contacts: two fields in a row, button full width below */
	[data-section="contacts"] .ef-account-form {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	[data-section="contacts"] .ef-account-form .ef-account-form__actions {
		grid-column: 1 / -1;
		margin-top: 4px;
	}

	/* Personal: 2 columns, Ім'я|Дата on row 1, Прізвище on row 2, button full width row 3 */
	[data-section="personal"] .ef-account-form {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	[data-section="personal"] .ef-account-form .ef-account-form__field:nth-child(1) {
		grid-column: 1;
		grid-row: 1;
	}

	[data-section="personal"] .ef-account-form .ef-account-form__field:nth-child(2) {
		grid-column: 1;
		grid-row: 2;
	}

	[data-section="personal"] .ef-account-form .ef-account-form__field:nth-child(3) {
		grid-column: 2;
		grid-row: 1;
	}

	[data-section="personal"] .ef-account-form .ef-account-form__actions {
		grid-column: 1 / -1;
		grid-row: 3;
	}

	/* Password: 2 columns, current|new on row 1, _|confirm on row 2, button full width row 3 */
	.ef-account-form--password {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.ef-account-form--password .ef-account-form__field:has(#ef-current-password) {
		grid-column: 1;
		grid-row: 1;
	}

	.ef-account-form--password .ef-account-form__field:has(#ef-new-password) {
		grid-column: 2;
		grid-row: 1;
	}

	.ef-account-form--password .ef-account-form__field:has(#ef-confirm-password) {
		grid-column: 2;
		grid-row: 2;
	}

	.ef-account-form--password .ef-account-form__actions {
		grid-column: 1 / -1;
		grid-row: 3;
	}

	.ef-account-form__field input[type="text"],
	.ef-account-form__field input[type="tel"],
	.ef-account-form__field input[type="email"],
	.ef-account-form__field input[type="password"],
	.ef-account-form__field input[type="date"] {
		padding: 0 12px;
	}

	.ef-account-btn {
		min-width: 0;
		width: 100%;
		margin-right: 0;
	}

	.ef-address-display {
		flex-direction: column;
		gap: 12px;
	}

	.ef-order-card__header {
		display: grid;
		grid-template-columns: auto 1fr auto;
		grid-template-rows: auto auto;
		align-items: center;
		gap: 8px;
		padding: 8px 12px;
	}

	.ef-order-card__number {
		grid-row: 1;
		grid-column: 1;
	}

	.ef-order-card__date {
		grid-row: 1;
		grid-column: 2;
		width: 75px;
	}

	.ef-order-card__chevron {
		grid-row: 1;
		grid-column: 3;
		justify-self: end;
	}

	.ef-order-card__status {
		grid-row: 2;
		grid-column: 1 / -1;
		justify-self: start;
	}

	.ef-order-card__total {
		grid-row: 2;
		grid-column: 3;
		justify-self: end;
		margin-left: 0;
		margin-right: 0;
	}

	.ef-order-card__actions {
		padding: 12px;
		flex-direction: column;
	}

}

/* ---------- Small mobile (< 481px) ---------- */

@media (max-width: 480px) {
	.ef-account-form__field label {
		padding-left: 10px;
	}
	.ef-account-form__field input[type="text"],
	.ef-account-form__field input[type="tel"],
	.ef-account-form__field input[type="email"],
	.ef-account-form__field input[type="password"],
	.ef-account-form__field input[type="date"] {
		padding: 0 10px;
	}
	.ef-account-form__actions {
		flex-wrap: wrap;
		gap: 16px 0;
	}
	.ef-account-btn {
		width: 100%;
	}
	.ef-account-form__actions .ef-address-cancel-btn,
	.ef-account-form__actions .ef-address-cancel-btn + .ef-account-btn {
		margin-left: 0;
	}
	.ef-order-card__header {
		gap: 4px 8px;
		padding: 12px 8px;
	}
	/* All form grids → single column */
	[data-section="personal"] .ef-account-form,
	[data-section="contacts"] .ef-account-form,
	.ef-account-form--password {
		grid-template-columns: 1fr;
	}
	[data-section="personal"] .ef-account-form .ef-account-form__field:nth-child(1),
	[data-section="personal"] .ef-account-form .ef-account-form__field:nth-child(2),
	[data-section="personal"] .ef-account-form .ef-account-form__field:nth-child(3) {
		grid-column: auto;
		grid-row: auto;
	}
	[data-section="personal"] .ef-account-form .ef-account-form__actions {
		grid-column: auto;
		grid-row: auto;
	}
	.ef-account-form--password .ef-account-form__field,
	.ef-account-form--password .ef-account-form__actions {
		grid-column: auto;
		grid-row: auto;
	}
	.ef-account-form--password .ef-account-form__field:has(#ef-current-password) { grid-column: auto; grid-row: auto; order: 1; }
	.ef-account-form--password .ef-account-form__field:has(#ef-new-password) { grid-column: auto; grid-row: auto; order: 2; }
	.ef-account-form--password .ef-account-form__field:has(#ef-confirm-password) { grid-column: auto; grid-row: auto; order: 3; }
	.ef-account-form--password .ef-account-form__actions { grid-column: auto; grid-row: auto; order: 4; }
}

/* ---------- Bonus Dashboard (My Account) ---------- */

.ef-bonus-dashboard {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* --- Top: Balance + Actions grid --- */
.ef-bonus-top {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 16px;
	align-items: stretch;
}

/* --- Balance card --- */
.ef-bonus-balance-card {
	padding: 20px 16px;
	background: color-mix(in srgb, var(--EF-Color-Olive) 5%, transparent);
	border: 1px solid color-mix(in srgb, var(--EF-Color-Accent) 30%, transparent);
	border-radius: var(--everfox-radius);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.ef-bonus-balance-amount {
	font-size: 36px;
	font-weight: 700;
	color: var(--EF-Color-Olive);
	line-height: 1.1;
}

.ef-bonus-balance-label {
	font-size: 12px;
	color: var(--EF-Color-Text);
	margin-top: 4px;
}

.ef-bonus-balance-note {
	font-size: 12px;
	color: var(--EF-Color-Text-Muted);
	margin-top: 6px;
}

/* --- Action cards --- */
.ef-bonus-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ef-bonus-action-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--EF-Color-Border-Light);
	border-radius: var(--everfox-radius);
	background: var(--EF-Color-Surface);
}

.ef-bonus-action-card__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--EF-Color-Primary) 6%, transparent);
	color: var(--EF-Color-Primary);
}

.ef-bonus-action-card__text {
	flex: 1;
	min-width: 0;
}

.ef-bonus-action-card__title {
	font-size: 14px;
	font-weight: 500;
	color: var(--EF-Color-Text);
}

.ef-bonus-action-card__desc {
	font-size: 12px;
	color: var(--EF-Color-Text-Muted);
	margin-top: 2px;
	line-height: 1.4;
}

.ef-bonus-action-card__accent {
	color: var(--EF-Color-Olive);
	font-weight: 500;
}

.ef-bonus-action-card__hint {
	color: var(--EF-Color-Text-Muted);
}

.ef-bonus-action-card__hint strong {
	font-weight: 500;
	color: var(--EF-Color-Text);
}

/* --- History section (collapsible) --- */
.ef-bonus-history {
	border: 1px solid var(--EF-Color-Border-Light);
	border-radius: var(--everfox-radius);
}

.ef-bonus-history__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 12px 16px;
	border: none;
	background: none;
	cursor: pointer;
	color: var(--EF-Color-Text);
}

.ef-bonus-history__title {
	font-size: 13px;
	font-weight: 500;
	color: var(--EF-Color-Text-2);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ef-bonus-history__chevron {
	transition: transform 0.2s;
	color: var(--EF-Color-Text-Muted);
}

.ef-bonus-history__toggle[aria-expanded="true"] .ef-bonus-history__chevron {
	transform: rotate(180deg);
}

.ef-bonus-history__body {
	padding: 0 16px 16px;
}

/* --- Operations list --- */
.ef-bonus-ops {
	display: flex;
	flex-direction: column;
}

/* --- Single operation row --- */
.ef-bonus-op {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--EF-Color-Border-Light);
}

.ef-bonus-op:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.ef-bonus-op:first-child {
	padding-top: 0;
}

.ef-bonus-op__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	margin-top: 1px;
}

.ef-bonus-op--credit .ef-bonus-op__icon {
	background: color-mix(in srgb, var(--EF-Color-Olive) 10%, transparent);
	color: var(--EF-Color-Olive);
}

.ef-bonus-op--debit .ef-bonus-op__icon {
	background: color-mix(in srgb, var(--EF-Color-Danger) 8%, transparent);
	color: var(--EF-Color-Danger);
}

.ef-bonus-op--expired .ef-bonus-op__icon {
	background: var(--EF-Color-Surface-2);
	color: var(--EF-Color-Text-Muted);
}

.ef-bonus-op__body {
	flex: 1;
	min-width: 0;
}

.ef-bonus-op__top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}

.ef-bonus-op__label {
	font-size: 13px;
	font-weight: 400;
	color: var(--EF-Color-Text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ef-bonus-op--expired .ef-bonus-op__label {
	color: var(--EF-Color-Text-Muted);
}

.ef-bonus-op__amount {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	flex-shrink: 0;
}

.ef-bonus-op--credit .ef-bonus-op__amount {
	color: var(--EF-Color-Olive);
}

.ef-bonus-op--debit .ef-bonus-op__amount {
	color: var(--EF-Color-Danger);
}

.ef-bonus-op--expired .ef-bonus-op__amount {
	color: var(--EF-Color-Text-Muted);
	text-decoration: line-through;
}

.ef-bonus-op__bottom {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
}

.ef-bonus-op__date {
	font-size: 12px;
	color: var(--EF-Color-Text-Muted);
}

.ef-bonus-op__expiry {
	font-size: 11px;
	color: var(--EF-Color-Text-Muted);
}

.ef-bonus-op__tag {
	display: inline-block;
	font-size: 11px;
	padding: 1px 6px;
	border-radius: 8px;
}

.ef-bonus-op__tag--expired {
	background: color-mix(in srgb, var(--EF-Color-Danger) 8%, transparent);
	color: var(--EF-Color-Danger);
}

.ef-bonus-empty {
	font-size: 13px;
	color: var(--EF-Color-Text-Muted);
	padding: 4px 0;
	line-height: 1.5;
}

/* --- FAQ block --- */
.ef-bonus-faq {
	border: 1px solid var(--EF-Color-Border-Light);
	border-radius: var(--everfox-radius);
	padding: 16px;
}

.ef-bonus-faq__title {
	font-size: 13px;
	font-weight: 500;
	color: var(--EF-Color-Text-2);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 12px;
}

.ef-bonus-faq__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ef-bonus-faq__item {
	padding-bottom: 10px;
	border-bottom: 1px solid var(--EF-Color-Border-Light);
}

.ef-bonus-faq__item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.ef-bonus-faq__q {
	font-size: 13px;
	font-weight: 500;
	color: var(--EF-Color-Text);
	margin-bottom: 3px;
}

.ef-bonus-faq__a {
	font-size: 12px;
	color: var(--EF-Color-Text-Muted);
	line-height: 1.5;
}

.ef-bonus-faq__btn {
	margin-top: 14px;
}

/* --- Tablet: action cards stack buttons --- */
@media (max-width: 1023px) {
	.ef-bonus-action-card {
		flex-wrap: wrap;
		gap: 8px;
	}

	.ef-bonus-action-card .ef-account-btn {
		width: 100%;
		text-align: center;
	}
}

/* --- Mobile: stack balance + actions --- */
@media (max-width: 767px) {
	.ef-bonus-top {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   EF Page Auth — Inline login/register on /my-account/ for logged-out users
   ========================================================================== */

/* Logged-out: single column (no sidebar nav) */
body.woocommerce-account:not(.logged-in) .entry-content > .woocommerce {
	grid-template-columns: 1fr;
	max-width: 430px;
	margin: 0 auto;
	min-height: 460px;
}
body.woocommerce-account:not(.logged-in) .entry-hero {
	display: none;
}
.woocommerce-account .ef-page-auth .ef-login-modal {
	position: static;
	width: auto;
	max-width: none;
	transform: none;
	box-shadow: none;
	border: 1px solid var(--EF-Color-Border-Light);
	border-radius: 12px;
	align-self: start;
}
.woocommerce-account .ef-page-auth .ef-login-header {
	justify-content: center;
	background: var(--EF-Color-Surface-2, #f5f7f9);
}
.ef-page-auth .ef-login-header__title {
	font-size: 20px;
	font-weight: 400;
	margin: auto;
}
.woocommerce-account .ef-page-auth .ef-login-close {
	display: none;
}
@media (max-width: 480px) {
	.woocommerce-account .ef-page-auth {
		max-width: 100%;
	}
}
.woocommerce-account .ef-page-auth .ef-login-reg {
	text-align: center;
	font-size: 14px;
	margin: 5px 0 0;
}
.woocommerce-account .ef-page-auth [data-view="register"] .ef-login-reg {
	margin: 15px 0 10px;
}


/* ---------- Admin panel link ---------- */

/* Admin panel tab — accent background, hidden 680px+ */
.ef-account-nav .woocommerce-MyAccount-navigation-link--admin-panel a {
	background: var(--EF-Color-Accent-Soft, #F2F7D9);
	margin-bottom: 10px;
	border-left-color: #6E8F00;
}
.ef-account-nav .woocommerce-MyAccount-navigation-link--admin-panel a:hover {
	background: #E8F0C0;
}
@media (max-width: 679px) {
	.ef-account-nav .woocommerce-MyAccount-navigation-link--admin-panel { display: none; }
}

/* Mobile content admin link — hidden by default, shown <680px */
.ef-admin-link-mobile { display: none; }

@media (max-width: 679px) {
	.ef-admin-link-mobile {
		display: flex;
		width: 100%;
		padding: 10px 10px 10px 20px;
		align-items: center;
		gap: 10px;
		font-family: inherit;
		font-size: inherit;
		font-weight: 500;
		text-align: left;
		text-decoration: none;
		color: inherit;
		cursor: pointer;
		border: 1px solid var(--EF-Color-Border-Light);
		border-radius: var(--everfox-radius);
		background: var(--EF-Color-Accent-Soft, #F2F7D9);
		transition: background 0.15s;
	}
	.ef-admin-link-mobile:hover {
		background: #E8F0C0;
	}
}

/* ---------- Narrow mobile: user above nav (< 581px) ---------- */

@media (max-width: 580px) {
	.ef-account-nav {
		flex-wrap: wrap;
	}

	.ef-account-nav ul {
		width: 100%;
	}

	.ef-account-nav li {
		flex: 1;
	}

	.ef-account-nav li a {
		width: 100%;
		min-width: 0;
	}
}

/* ============================================================
   Thank You Page
   ============================================================ */

.woocommerce-order-received .site-main > .content-wrap {
	margin: 0;
	padding: 0 0 20px;
}

/* Order-received login form — center (only when ef-page-auth is present) */
.woocommerce-order-received .woocommerce:has(> .ef-page-auth) > .woocommerce-info {
	margin: 20px auto 0;
	background: none;
	border: none;
	padding: 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--EF-Color-Text);
	text-align: center;
}
.woocommerce-order-received .woocommerce:has(> .ef-page-auth) > .woocommerce-info::before {
	display: none;
}
.woocommerce-order-received .woocommerce > .ef-page-auth {
	max-width: 430px;
	margin: 0 auto;
}

/* --- Stepper on thank-you (standalone, no detail-label) --- */
.ef-stepper--thankyou {
	max-width: 100%;
	margin: 12px 0 0;
	padding: 0 10px;
}

/* --- Order overview (3 rows: number, date, total) --- */
.ef-thankyou-overview {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 15px 0 0;
	font-size: 14px;
	line-height: 1.3;
}
.ef-thankyou-overview__row {
	display: flex;
	gap: 10px;
}
.ef-thankyou-overview__label {
	color: var(--EF-Color-Text-Muted);
	font-weight: 400;
	min-width: 100px;
}
.ef-thankyou-overview__value {
	color: var(--EF-Color-Text);
	font-weight: 400;
}
.ef-thankyou-overview__number {
	font-weight: 500;
}
.woocommerce-thankyou-order-received {
	font-size: 16px;
	font-weight: 500;
}
.ef-thankyou-overview__total {
	color: var(--EF-Color-Olive);
	font-weight: 500;
}
.ef-thankyou-overview__total .woocommerce-Price-currencySymbol {
	font-weight: 400;
}

/* --- Thank You layout: 2 columns --- */
.ef-thankyou-layout {
	display: flex;
	gap: 20px;
	margin-top: 16px;
}
.ef-thankyou-layout__left {
	flex: 1 1 0;
	min-width: 0;
}
.ef-thankyou-layout__right {
	flex: 1 1 0;
	min-width: 0;
}
.ef-thankyou-layout__left .ef-thankyou-account {
	margin-top: 16px;
}
@media (max-width: 768px) {
	.ef-thankyou-layout {
		flex-direction: column;
	}
	.ef-thankyou-layout__left,
	.ef-thankyou-layout__right {
		flex: 1 1 100%;
		max-width: 100%;
	}
}

/* --- Order card (always open, no header/toggle) --- */
.ef-thankyou-order {}
.ef-thankyou-order .ef-order-card__body {
	border: 1px solid var(--EF-Color-Border-Light);
	border-radius: var(--everfox-radius);
	overflow: hidden;
	background: var(--EF-Color-Surface, #fff);
}
.ef-order-card__title {
	margin: 12px 10px 10px;
	font-size: 18px;
	line-height: 1.5;
	font-weight: 400;
	color: var(--EF-Color-Text);
	letter-spacing: 0.5px;
}

/* Thankyou-only: consistent horizontal padding 10px (<480) / 15px (≥480) */
.ef-thankyou-order .ef-order-card__items {
	padding: 10px 10px 0;
}
.ef-thankyou-order .ef-order-card__totals {
	padding: 10px 10px 0;
}
.ef-thankyou-order .ef-order-card__details {
	padding: 15px 10px;
}
.ef-thankyou-order .ef-order-card__free-shipping {
	margin-left: -10px;
	margin-right: -10px;
	padding: 8px 10px;
}
@media (min-width: 480px) {
	.ef-order-card__title {
		margin: 15px 15px 10px;
	}
	.ef-thankyou-order .ef-order-card__items {
		padding: 10px 15px 0;
	}
	.ef-thankyou-order .ef-order-card__totals {
		padding: 10px 15px 0;
	}
	.ef-thankyou-order .ef-order-card__details {
		padding: 15px 15px;
	}
	.ef-thankyou-order .ef-order-card__free-shipping {
		margin-left: -15px;
		margin-right: -15px;
		padding: 8px 15px;
	}
}

/* --- Review button under card --- */
.ef-thankyou-order__actions {
	display: flex;
	justify-content: flex-end;
	padding: 16px 0 0;
}
.ef-thankyou-order__actions .ef-account-btn {
	min-width: 220px;
}

/* ═══════════════════════════════════════════════════
   THANK-YOU PAGE — new blocks (v2)
   ═══════════════════════════════════════════════════ */

/* --- Success block --- */
.ef-thankyou-success {
	margin-bottom: 20px;
	padding: 0 10px;
}
.ef-thankyou-success__heading {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--EF-Color-Text);
	margin: 0 0 12px;
}
/* Hide the default WC order-received text (now empty via filter) */
.woocommerce-thankyou-order-received:empty {
	display: none;
}

/* --- "Що далі?" block --- */
.ef-thankyou-what-next {
	background: var(--EF-Color-Accent-Soft, #F2F7D9);
	border-left: 3px solid var(--EF-Color-Olive, #5F7A00);
	padding: 15px;
	margin: 20px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--EF-Color-Text);
	font-weight: 300;
}
.ef-thankyou-what-next__title {
	font-size: 17px;
	font-weight: 500;
	color: var(--EF-Color-Text);
	margin: 0 0 10px;
}
.ef-thankyou-what-next p {
	margin: 0 0 5px;
}
.ef-thankyou-what-next p:last-child {
	margin-bottom: 0;
}

/* --- Auth block --- */
.ef-thankyou-auth {
	background: var(--EF-Color-Surface-2, #f5f7f9);
	border-radius: 3px;
	padding: 15px;
	margin: 20px 0 0;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 300;
}
.ef-thankyou-auth__heading {
	font-size: 14px;
	font-weight: 500;
	color: var(--EF-Color-Text);
	margin: 0 0 5px;
}
.ef-thankyou-auth__desc {
	color: var(--EF-Color-Text-2);
	margin: 0 0 10px;
}
.ef-thankyou-auth__methods {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

/* Thank-you page buttons (smaller than account buttons) */
/* .ef-ty-btn — overrides only (base from .ef-button in everfox-v2.css) */
.ef-ty-btn {
	height: 30px;
	min-width: 170px;
	margin-bottom: 5px;
}
@media (max-width: 480px) {
	.ef-ty-btn {
		width: 100%;
		min-width: 0;
	}
}

/* OTP — reuse checkout phone-auth styles */
.ef-thankyou-auth .ef-phone-auth__col {
	gap: 9px;
}
.ef-thankyou-auth .ef-phone-auth__otp {
	display: flex;
	gap: 6px;
}
.ef-thankyou-auth .ef-otp-digit {
	width: 42px;
	height: 48px;
	text-align: center;
	font-size: 20px;
	font-weight: 600;
	border: 1.5px solid var(--EF-Color-Border-Medium, #DFE1E3);
	border-radius: var(--everfox-radius, 3px);
	background: var(--EF-Color-Surface, #fff);
	outline: none;
	transition: border-color 0.15s;
}
.ef-thankyou-auth .ef-otp-digit:focus {
	border-color: var(--EF-Color-Primary, #55368A);
	box-shadow: 0 0 0 3px var(--EF-Color-Focus-Ring);
}
.ef-thankyou-auth__error {
	color: #d32f2f;
	font-size: 13px;
	margin: 6px 0 0;
}

/* Password form */
.ef-thankyou-auth__password {
	margin-top: 10px;
}
.ef-thankyou-auth__password-field {
	display: flex;
	gap: 10px;
}
.ef-thankyou-auth__password-field .ef-input-wrap {
	flex: 1;
	display: flex;
	height: 50px;
	align-items: flex-end;
	border-bottom: 1px solid var(--EF-Color-Border-Medium);
	position: relative;
	transition: border-color 0.2s;
}
.ef-thankyou-auth__password-field .ef-input-wrap:focus-within {
	border-bottom-width: 2px;
	border-color: var(--EF-Color-Primary);
}
.ef-thankyou-auth__password-field .ef-input-wrap svg {
	width: 15px;
	height: 15px;
	margin: 0 0 3px 2px;
	flex-shrink: 0;
	color: var(--EF-Color-Text);
}
.ef-thankyou-auth__password-field .ef-input-wrap input {
	width: 100%;
	border: none;
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
	color: var(--EF-Color-Text);
	background: transparent;
	outline: none;
	margin-left: 6px;
}
.ef-thankyou-auth__forgot {
	display: inline-block;
	margin-top: 5px;
	font-size: 13px;
}
.ef-thankyou-auth__success p {
	margin: 0;
	color: var(--EF-Color-Primary);
}

/* --- Payment block --- */
.ef-thankyou-payment {
	background: var(--EF-Color-Surface-2, #f5f7f9);
	border-radius: 3px;
	padding: 15px;
	margin: 20px 0 0;
}
.ef-thankyou-payment__methods {
	font-size: 14px;
	color: var(--EF-Color-Text-2);
	margin: 0 0 12px;
	line-height: 1.5;
}
.ef-thankyou-payment__btn {
	width: 100%;
	text-align: center;
}

/* --- Feedback block --- */
.ef-thankyou-feedback {
	margin: 20px 0 0;
	padding: 0;
	background: none;
}
/* All feedback states — shared padding and background */
.ef-thankyou-feedback > [data-state] {
	background: var(--EF-Color-Surface-2, #f5f7f9);
	border-radius: var(--everfox-radius, 3px);
	padding: 15px 15px 15px 18px;
}

/* --- Feedback progress bar (3D style matching free-shipping bar) --- */
.ef-feedback-progress {
	position: relative;
	margin: 0 0 16px;
	--fsb-fill: var(--EF-Color-Primary);
	--fsb-hi-a: .26;
	--fsb-deep-a: .30;
	--fsb-topline-a: .40;
}
.ef-feedback-progress__text {
	position: absolute;
	right: 0;
	top: calc(100% + 2px);
	font-size: 11px;
	font-weight: 400;
	color: var(--EF-Color-Text-Muted);
}
.ef-feedback-progress__bar {
	height: 5px;
	width: 100%;
	border-radius: 999px;
	background: var(--EF-Color-Border-Light);
	overflow: hidden;
}
.ef-feedback-progress__fill {
	height: 100%;
	max-width: 100%;
	border-radius: 999px;
	position: relative;
	background:
		linear-gradient(to bottom, rgba(255,255,255, var(--fsb-hi-a)), rgba(255,255,255,0) 52%),
		linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,0,0, var(--fsb-deep-a))),
		linear-gradient(var(--fsb-fill), var(--fsb-fill));
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,.18),
		inset 0 -1px 0 rgba(0,0,0,.28),
		inset 0 0 0 1px rgba(255,255,255,.10);
	transition: width .25s ease, background-color .15s ease;
}
.ef-feedback-progress__fill::before {
	content: "";
	position: absolute;
	left: 2px;
	right: 2px;
	top: 0;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(to bottom, rgba(255,255,255, var(--fsb-topline-a)), rgba(255,255,255,0));
	pointer-events: none;
	opacity: .50;
}
/* Green complete state removed — progress bar stays purple */

/* --- Feedback chips (replaces checkboxes list) --- */
.ef-feedback-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
}
.ef-feedback-chip {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}
.ef-feedback-chip .ef-feedback-check-input {
	display: none;
}
.ef-feedback-chip__text {
	display: inline-block;
	padding: 6px 14px;
	border: 1.5px solid var(--EF-Color-Border-Light, #EBEDEF);
	border-radius: 20px;
	font-size: 13px;
	font-weight: 400;
	color: var(--EF-Color-Text);
	background: var(--EF-Color-Surface, #fff);
	transition: all 0.15s;
	user-select: none;
}
.ef-feedback-chip__text:hover {
	border-color: var(--EF-Color-Primary);
	color: var(--EF-Color-Primary);
}
.ef-feedback-check-input:checked + .ef-feedback-chip__text {
	background: var(--EF-Color-Primary);
	border-color: var(--EF-Color-Primary);
	color: #fff;
	font-weight: 500;
}

/* Tone colors for chips */
.ef-feedback-chip--pos .ef-feedback-chip__text {
	border-color: #c0d98a;
	background: #ECFCCB;
	color: #5F7A00;
}
.ef-feedback-chip--pos .ef-feedback-chip__text:hover {
	border-color: #5F7A00;
}
.ef-feedback-chip--pos .ef-feedback-check-input:checked + .ef-feedback-chip__text {
	background: #5F7A00;
	border-color: #5F7A00;
	color: #fff;
}

.ef-feedback-chip--neg .ef-feedback-chip__text {
	border-color: #fcd6a0;
	background: #FFF4E5;
	color: #c2600a;
}
.ef-feedback-chip--neg .ef-feedback-chip__text:hover {
	border-color: #c2600a;
}
.ef-feedback-chip--neg .ef-feedback-check-input:checked + .ef-feedback-chip__text {
	background: #c2600a;
	border-color: #c2600a;
	color: #fff;
}
.ef-feedback-title {
	font-size: 17px;
	font-weight: 500;
	color: var(--EF-Color-Text);
	margin: 0 0 15px;
}
.ef-feedback-step {
	font-size: 12px;
	color: var(--EF-Color-Text-Muted);
	margin: 0 0 6px;
	font-weight: 400;
}
.ef-feedback-desc {
	font-size: 14px;
	color: var(--EF-Color-Text);
	margin: 0 0 10px;
	line-height: 1.2;
	font-weight: 300;
}
.ef-feedback-bonus {
	font-size: 13px;
	color: var(--EF-Color-Olive, #5F7A00);
	font-weight: 500;
	margin: 0 0 15px;
	line-height: 1.2;
}
.ef-feedback-subtitle {
	font-size: 14px;
	color: var(--EF-Color-Olive, #5F7A00);
	font-weight: 500;
	margin: 4px 0 0;
}

/* Stars — criteria style */
.ef-feedback-stars {
	display: flex;
	flex-shrink: 0;
	justify-content: space-between;
	max-width: 400px;
	width: 100%;
	margin: 0;
	padding-bottom: 40px;
}
.ef-feedback-star {
	background: none;
}
.ef-feedback-star path {
	fill: #848B95;
}
.ef-feedback-star:hover path,
.ef-feedback-star--hover path {
	fill: var(--EF-Color-Star, #6E8F00);
}
.ef-feedback-star:hover,
.ef-feedback-star--hover {
	transform: scale(1.1);
}
.ef-feedback-star--filled path {
	fill: var(--EF-Color-Star, #6E8F00);
}
.ef-feedback-stars .ef-criteria-star-label {
	display: block;
	color: var(--EF-Color-Text);
	background: none;
	font-size: 12px;
}

/* Old choice styles removed — replaced by .ef-feedback-chip in stepper section */

/* Navigation (back + next) */
.ef-feedback-nav {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
}
/* Textarea */
.ef-feedback-textarea {
	width: 100%;
	padding: 5px 10px;
	border: 1.5px solid var(--EF-Color-Border-Light);
	border-radius: 3px;
	font-size: 13px;
	font-weight: 300;
	letter-spacing: 0.5px;
	resize: vertical;
	min-height: 80px;
	margin: 0;
	outline: none;
	box-sizing: border-box;
}
.ef-feedback-textarea:focus {
	box-shadow: 0 0 0 3px var(--EF-Color-Focus-Ring);
}
.ef-feedback-note {
	font-size: 12px;
	color: var(--EF-Color-Text-Muted);
	margin: 0 0 15px;
}

/* Old head/step styles removed — replaced by .ef-feedback-stepper */

/* --- Hide promo banner on thank-you --- */
.woocommerce-order-received .site-header-upper-wrap {
	display: none;
}
.woocommerce-order-received .ef-order-card__title {
	font-size: 17px;
	font-weight: 500;
}

/* Thankyou auth — skip methods step, show password form immediately */
.woocommerce-order-received .ef-thankyou-auth__methods {
	display: flex;
}
.woocommerce-order-received .ef-thankyou-auth__password {
	margin-top: 10px;
}

/* Password field layout */
.woocommerce-order-received .ef-thankyou-auth__password-field {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	max-width: 330px;
}
.woocommerce-order-received .ef-thankyou-auth__password-field .ef-field-group {
	flex: 1;
	min-width: 220px;
}
.woocommerce-order-received .ef-thankyou-auth__password-field .ef-input-wrap {
	height: 40px;
}
.woocommerce-order-received .ef-thankyou-auth__password-field .ef-input-wrap svg {
	display: none;
}
.woocommerce-order-received .ef-thankyou-auth__password-field .ef-input-wrap input {
	font-size: 15px;
	margin-left: 0;
}
.woocommerce-order-received .ef-thankyou-auth__password-field .ef-ty-btn {
	flex-shrink: 0;
	min-width: 110px;
	height: 30px;
	margin-bottom: 0;
}

/* OTP on thankyou — same area as password */
.woocommerce-order-received #ef-thankyou-auth-otp {
	max-width: 330px;
}

/* Float label */
.woocommerce-order-received .ef-thankyou-auth .ef-float-label {
	left: 0;
	bottom: 5px;
	font-size: 15px;
}
.woocommerce-order-received .ef-thankyou-auth .ef-field-group--float .ef-input-wrap input:focus ~ .ef-float-label .label-char,
.woocommerce-order-received .ef-thankyou-auth .ef-field-group--float .ef-input-wrap input:not(:placeholder-shown) ~ .ef-float-label .label-char {
	transform: translateY(-22px);
}

/* Forgot link */
.woocommerce-order-received .ef-thankyou-auth__forgot {
	margin-top: 6px;
}

/* Mobile: stack vertically */
@media (max-width: 480px) {
	.woocommerce-order-received .ef-thankyou-auth__password-field {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}
	.woocommerce-order-received .ef-thankyou-auth__password-field .ef-ty-btn {
		width: 100%;
		margin-bottom: 0;
	}
}

/* Select2 стилі — в everfox-v2.css (.ef-shipping-fields, .ef-np-dropdown) */

/* ══════════════════════════════════════════
   Warranty Section (inside My Account)
   ══════════════════════════════════════════ */

/* Actions row */
.ef-warranty-account-actions {
	margin-top: 16px;
	display: flex;
	justify-content: flex-end;
	width: 100%;
}

/* Table */
.ef-warranty-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.ef-warranty-table th {
	padding: 8px 0;
	border-bottom: 1px solid var(--EF-Color-Border-Light);
	text-align: center;
	font-weight: 500;
	font-size: 13px;
	color: var(--EF-Color-Text-Muted);
}

.ef-warranty-table td {
	padding: 8px 0;
	border-bottom: 1px solid var(--EF-Color-Border-Light);
	color: var(--EF-Color-Text);
	text-align: center;
}

.ef-warranty-table tbody tr:last-child td {
	border-bottom: none;
}

/* Column widths: fixed except Type which stretches */
.ef-warranty-table__col-id     { width: 80px; }
.ef-warranty-table__col-date   { width: 100px; }
.ef-warranty-table__col-order  { width: 130px; text-align: left; }
.ef-warranty-table__col-type   { /* flexible — takes remaining space */ }
.ef-warranty-table__col-status { width: 120px; }
.ef-warranty-table__col-action { width: 30px; }

/* Detail row — left-aligned content */
.ef-warranty-detail-row td {
	text-align: left;
	padding: 5px 0 20px;
	border-bottom: 1px solid var(--EF-Color-Border-Strong);
}

/* Status badges — unified with order status style */
.ef-warranty-badge {
	display: inline-block;
	min-width: 100px;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	text-align: center;
	box-sizing: border-box;
}

.ef-warranty-badge--new,
.ef-warranty-badge--received {
	background: color-mix(in srgb, var(--EF-Color-Primary) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--EF-Color-Primary) 25%, transparent);
	color: var(--EF-Color-Primary);
}
.ef-warranty-badge--in_progress {
	background: color-mix(in srgb, var(--EF-Color-Warning) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--EF-Color-Warning) 25%, transparent);
	color: var(--EF-Color-Warning);
}
.ef-warranty-badge--needs_clarification {
	background: #ffeae5;
	border: 1px solid #f5b8ab;
	color: #d45a4a;
}
.ef-warranty-badge--resolved {
	background: color-mix(in srgb, var(--EF-Color-Olive) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--EF-Color-Olive) 25%, transparent);
	color: var(--EF-Color-Olive);
}
.ef-warranty-badge--closed {
	background: #f0f1f3;
	border: 1px solid #d4d7dc;
	color: #535B65;
}

/* View button (chevron toggle) */
.ef-warranty-view-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	border: none;
	background: none;
	cursor: pointer;
	color: var(--EF-Color-Text-Muted);
	transition: transform 0.2s, color 0.2s;
	margin-right: -10px;
}

.ef-warranty-view-btn:hover {
	color: var(--EF-Color-Primary);
}

.ef-warranty-view-btn--active {
	color: var(--EF-Color-Primary);
}

.ef-warranty-view-btn--active .ef-warranty-chevron {
	transform: rotate(180deg);
}

.ef-warranty-chevron {
	transition: transform 0.2s;
}

/* Empty state */
.ef-warranty-empty {
	padding: 16px 0;
	color: var(--EF-Color-Text-Muted);
}

/* Order page section */
.ef-warranty-order-section {
	margin-top: 24px;
}

.ef-warranty-order-section__title {
	font-size: 16px;
	margin: 0 0 8px;
}

.ef-warranty-order-ticket {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 0;
	font-size: 14px;
}

.ef-warranty-order-ticket .ef-warranty-view-btn {
	margin-left: auto;
}

.ef-warranty-order-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 12px;
	flex-wrap: wrap;
}

.ef-warranty-order-actions .ef-account-btn svg {
	margin-right: 6px;
}

/* Inline ticket detail */

.ef-warranty-detail {
	margin: 10px 0;
	border: 1px solid var(--EF-Color-Border-Light);
	padding: 8px 10px 0;
	background: var(--EF-Color-Surface-2);
	border-radius: var(--everfox-radius);
}
.ef-warranty-detail .ef-order-card__detail-value {
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
}

.ef-warranty-detail--loading {
	display: flex;
	justify-content: center;
	padding: 24px;
}

/* Details section — reuses .ef-order-card__detail pattern */
.ef-warranty-detail__details {
}

.ef-warranty-detail__timeline {
	margin-bottom: 12px;
	position: relative;
	padding-left: 5px;
}

/* Vertical connector line between dots */
.ef-warranty-detail__timeline::before {
	content: '';
	position: absolute;
	left: 9px;
	top: 12px;
	bottom: 12px;
	width: 2px;
	background: var(--EF-Color-Border-Light);
}

.ef-warranty-detail__timeline-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	font-size: 13px;
	position: relative;
	max-width: 300px;
}

.ef-warranty-detail__timeline-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
	padding: 0;
	border: 2px solid transparent;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}

/* Past steps — solid dot, status color */
.ef-warranty-detail__timeline-dot.ef-warranty-badge--new,
.ef-warranty-detail__timeline-dot.ef-warranty-badge--received { background: var(--EF-Color-Primary); border-color: var(--EF-Color-Primary); }
.ef-warranty-detail__timeline-dot.ef-warranty-badge--in_progress { background: var(--EF-Color-Warning); border-color: var(--EF-Color-Warning); }
.ef-warranty-detail__timeline-dot.ef-warranty-badge--needs_clarification { background: #d45a4a; border-color: #d45a4a; }
.ef-warranty-detail__timeline-dot.ef-warranty-badge--resolved { background: var(--EF-Color-Olive); border-color: var(--EF-Color-Olive); }
.ef-warranty-detail__timeline-dot.ef-warranty-badge--closed { background: #c4c8cd; border-color: #c4c8cd; }

/* Active step — double ring like order stepper */
.ef-warranty-detail__timeline-item--active .ef-warranty-detail__timeline-dot {
	box-shadow: 0 0 0 2px var(--EF-Color-Surface), 0 0 0 4px currentColor;
}
.ef-warranty-detail__timeline-item--active .ef-warranty-detail__timeline-dot.ef-warranty-badge--new,
.ef-warranty-detail__timeline-item--active .ef-warranty-detail__timeline-dot.ef-warranty-badge--received { color: var(--EF-Color-Primary); }
.ef-warranty-detail__timeline-item--active .ef-warranty-detail__timeline-dot.ef-warranty-badge--in_progress { color: var(--EF-Color-Warning); }
.ef-warranty-detail__timeline-item--active .ef-warranty-detail__timeline-dot.ef-warranty-badge--needs_clarification { color: #d45a4a; }
.ef-warranty-detail__timeline-item--active .ef-warranty-detail__timeline-dot.ef-warranty-badge--resolved { color: var(--EF-Color-Olive); }
.ef-warranty-detail__timeline-item--active .ef-warranty-detail__timeline-dot.ef-warranty-badge--closed { color: #c4c8cd; }

.ef-warranty-detail__timeline-date {
	color: var(--EF-Color-Text-Muted);
	font-size: 11px;
	margin-left: auto;
	white-space: nowrap;
}

/* Timeline comment — chat bubble */
.ef-warranty-detail__timeline-comment {
	position: relative;
	display: inline-block;
	margin-left: 20px;
	margin-bottom: 4px;
	padding: 5px 10px;
	font-size: 12px;
	line-height: 1.4;
	background: var(--EF-Color-Surface);
	border: 1px solid var(--EF-Color-Border-Light);
	border-radius: 8px 8px 8px 0;
	max-width: 260px;
}

.ef-warranty-detail__timeline-comment::before {
	content: '';
	position: absolute;
	left: -6px;
	bottom: -1px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 0 8px 8px;
	border-color: transparent transparent var(--EF-Color-Border-Light) transparent;
}

.ef-warranty-detail__timeline-comment::after {
	content: '';
	position: absolute;
	left: -4px;
	bottom: 0;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 0 6px 6px;
	border-color: transparent transparent var(--EF-Color-Surface) transparent;
}

.ef-warranty-detail__timeline-comment__label {
	font-size: 10px;
	color: var(--EF-Color-Text-Muted);
	margin-bottom: 1px;
}

.ef-warranty-detail__attachments {
	display: flex;
	gap: 10px;
	font-size: 13px;
	line-height: 1.7;
	padding-bottom: 10px;
}

.ef-warranty-detail__attachments-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ef-warranty-detail__att {
	display: block;
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	border-radius: 3px;
	overflow: hidden;
	border: 1px solid var(--EF-Color-Border-Strong);
}

.ef-warranty-detail__att img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ef-warranty-detail__actions {
}

.ef-warranty-detail__link {
	font-size: 13px;
	text-decoration: underline;
}

.ef-warranty-detail__att--video {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	text-decoration: none;
}

div.ef-warranty-detail-row {
	margin-top: 4px;
}

/* ── Inline timeline (inside account detail row) ── */
.ef-warranty-detail-row td {
	text-align: left;
	padding: 0 0 20px;
}

.ef-timeline--inline {
	margin-top: 10px;
	padding-top: 10px;
	padding-left: 7px;
}


.ef-timeline__reply--inline textarea {
	width: 100%;
	min-height: 60px;
	padding: 10px;
	border: 1px solid var(--EF-Color-Border-Light, #ddd);
	border-radius: 8px;
	font: inherit;
	font-size: 13px;
	resize: vertical;
	box-sizing: border-box;
}

.ef-timeline__reply--inline textarea:focus {
	outline: none;
	border-color: var(--EF-Color-Primary, #55368A);
}

.ef-timeline__reply--inline .ef-timeline__reply-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-top: 8px;
}

.ef-timeline__reply--inline .ef-timeline__reply-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 6px;
}

.ef-inline-reply-clip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 36px;
	padding: 0;
	border: 1px solid var(--EF-Color-Border-Light, #ddd);
	border-radius: 4px;
	background: var(--EF-Color-Surface, #fff);
	cursor: pointer;
	color: var(--EF-Color-Text-Muted, #848B95);
	align-self: center;
}

.ef-inline-reply-clip:hover {
	background: var(--EF-Color-Surface-2, #f5f5f5);
	color: var(--EF-Color-Primary, #55368A);
}

.ef-timeline__reply--inline .ef-timeline__reply-submit {
	padding: 6px 16px;
	font-size: 13px;
	align-self: center;
	white-space: nowrap;
}

/* Mobile */
@media (max-width: 679px) {
	.ef-warranty-table {
		font-size: 13px;
	}
	.ef-warranty-table__col-type { display: none; }
}

@media (max-width: 480px) {
	.ef-warranty-table__col-order { display: none; }
}
