/* Customer account pages (Arise assets/customer/**: sign-in, sign-up, password, user centre, order
   list and detail, address form), resolved with Swanz's settings. Lines are solid black
   (color_entry_line #000); accent #BFB09A. Mobile = below 750px unless noted. */

/* This file loads only on account and order-tracking pages, so the tokens can sit on :root. */
:root {
	--swanz-accent: var(--wp--preset--color--button);
	--swanz-line: #000;
	--swanz-muted: rgba(0, 0, 0, 0.6);
	--swanz-faint: rgba(0, 0, 0, 0.4);
	--swanz-error: #f04949;
	--swanz-ring: rgba(0, 0, 0, 0.55);
}

/* ---------- sign-in style pages: one 430px column ---------- */
.swanz-auth { width: 430px; max-width: 100%; margin: 120px auto; }
.swanz-auth.is-account { margin-top: 80px; }
.swanz-auth__title { margin: 0 0 32px; font-family: var(--wp--preset--font-family--title); font-size: 24px; font-weight: 700; line-height: 1.4; text-align: center; text-transform: uppercase; }
.swanz-auth__tips { margin: 0 0 16px; font-size: 12px; line-height: 20px; text-align: center; }
.swanz-auth__message { margin: 0 0 16px; font-size: 12px; line-height: 16px; text-align: center; }
.swanz-auth__note,
.swanz-auth__hint,
.swanz-auth .woocommerce-privacy-policy-text { margin: 16px 0 0; font-size: 12px; line-height: 1.5; color: var(--swanz-muted); }
.swanz-auth .woocommerce-privacy-policy-text p { margin: 0; }
.swanz-auth .woocommerce-privacy-policy-text a,
.swanz-auth__links a,
.swanz-auth__back a,
.swanz-account__logout a,
.swanz-account__logout.is-desktop,
.swanz-uc__link { color: var(--swanz-accent); text-decoration: underline; text-underline-offset: 3px; }
.swanz-auth__form { margin: 0; }
.swanz-auth__form > * + * { margin-top: 16px; }
.swanz-auth__row { display: flex; gap: 20px; }
.swanz-auth__row > .swanz-field { flex: 1 1 0; min-width: 0; margin: 0; }
.swanz-auth__group { margin: 32px 0 0; padding: 0; border: 0; }
.swanz-auth__legend { margin: 0; padding: 0; font-weight: 700; }
.swanz-auth__group .swanz-auth__hint { margin-top: 4px; }
.swanz-auth__group > .swanz-field { margin-top: 16px; }

/* Errors from WooCommerce, in the slot above the button (Arise .customer__error). */
.swanz-auth__error { margin: 8px 0 0; padding: 0; color: var(--swanz-error); font-size: 12px; line-height: 16px; list-style: none; }
.swanz-auth__error li + li { margin-top: 4px; }
.swanz-auth__error a { color: inherit; text-decoration: underline; }

/* Floating-label field: 48px box, 1px ring (2px on hover), label rises when filled or focused. */
.swanz-auth__field { position: relative; margin: 0; }
.swanz-auth__field .password-input { position: relative; display: block; }
.swanz-auth__field input { width: 100%; height: 48px; padding: 24px 44px 8px 16px; border: 1px solid var(--swanz-ring); border-radius: 0; background: #fff; color: #000; font: inherit; font-size: 14px; line-height: 1.15; }
.swanz-auth__field:not(.is-password) input { padding-right: 16px; }
.swanz-auth__field input:hover { box-shadow: 0 0 0 1px var(--swanz-ring); }
.swanz-auth__field input:focus { outline: none; box-shadow: 0 0 0 1px var(--swanz-ring); }
.swanz-auth__field input:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.swanz-auth__field input::placeholder { color: transparent; }
.swanz-auth__field label { position: absolute; top: 24px; left: 16px; max-width: calc(100% - 60px); overflow: hidden; color: var(--swanz-muted); font-size: 14px; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; transform: translateY(-50%); transform-origin: left top; transition: transform 0.3s ease; }
.swanz-auth__field input:focus + label,
.swanz-auth__field input:not(:placeholder-shown) + label { transform: translateY(-100%) scale(0.8); }
.swanz-auth__field .woocommerce-invalid input,
.swanz-auth__field input[aria-invalid="true"] { border-color: rgba(240, 73, 73, 0.55); }

/* WooCommerce's show-password button (added by its script) as Arise's 16px eye. */
.swanz-auth .show-password-input { position: absolute; top: 12px; right: 10px; width: 28px; height: 24px; padding: 0; border: 0; background: rgba(0, 0, 0, 0.6); cursor: pointer; -webkit-mask: var(--swanz-eye) center / 16px no-repeat; mask: var(--swanz-eye) center / 16px no-repeat; }
.swanz-auth .show-password-input { --swanz-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8z'/%3E%3Ccircle cx='8' cy='8' r='2'/%3E%3Cpath d='M2 14L14 2'/%3E%3C/svg%3E"); }
.swanz-auth .show-password-input.display-password { --swanz-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8z'/%3E%3Ccircle cx='8' cy='8' r='2'/%3E%3C/svg%3E"); }
.swanz-auth .show-password-input:focus-visible { outline: 2px solid #000; outline-offset: 1px; }

/* WooCommerce's password strength meter, under the field. */
.woocommerce-password-strength { margin-top: 6px; font-size: 12px; line-height: 1.4; }
.woocommerce-password-strength.short,
.woocommerce-password-strength.bad { color: var(--swanz-error); }
.woocommerce-password-strength.good { color: #974323; }
.woocommerce-password-strength.strong { color: #2e7d32; }
.woocommerce-password-hint { display: block; margin-top: 4px; color: var(--swanz-muted); font-size: 12px; line-height: 1.4; }

/* Arise .sl-btn: full width, 13.8px bold capitals with wide spacing. */
.swanz-auth__submit { display: flex; width: 100%; padding: 13px 23px; font-size: 13.8125px; font-weight: 700; letter-spacing: 0.3em; line-height: 1.6; text-transform: uppercase; }
.swanz-auth__submit:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.swanz-button--ghost { background: transparent; border-color: var(--wp--preset--color--button); color: var(--wp--preset--color--button); }

.swanz-auth__links { display: flex; justify-content: space-between; margin-top: 16px; }
.swanz-auth__back { margin: 16px 0 0; text-align: center; }
.swanz-auth.is-account .swanz-auth__back { margin: 28px 0 46px; }

@media (max-width: 749.98px) {
	.swanz-auth { width: 100%; padding: 0 20px; }
}

/* ---------- user centre: tabs, cards ---------- */
.woocommerce-account main .woocommerce { max-width: none; }
.swanz-account.has-tabs { width: 100%; margin: 40px auto 80px; }
.swanz-account__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; border-bottom: 1px solid var(--swanz-line); }
.swanz-account__tabs { display: flex; gap: 40px; overflow-x: auto; scrollbar-width: none; }
.swanz-account__tabs::-webkit-scrollbar { display: none; }
.swanz-account__tab { flex: none; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--swanz-faint); font-size: 20px; font-weight: 700; line-height: 60px; text-decoration: none; white-space: nowrap; }
.swanz-account__tab.is-active { border-bottom-color: #000; color: #000; }
.swanz-account__tab:hover { color: #000; }
.swanz-account__logout { font-size: 14px; }
.swanz-account__logout.is-mobile { display: none; margin: 20px 0 0; text-align: center; }

@media (min-width: 960px) {
	.swanz-account.has-tabs { max-width: 1244px; padding: 0 32px; }
}
@media (max-width: 959.98px) {
	.swanz-account.has-tabs { margin-top: 20px; padding: 0 20px; }
}
@media (max-width: 767.98px) {
	.swanz-account__nav { margin-bottom: 20px; }
	.swanz-account__tabs { gap: 24px; }
	.swanz-account__tab { border-bottom-width: 1px; font-size: 12px; line-height: 32px; }
	.swanz-account__logout.is-desktop { display: none; }
	.swanz-account__logout.is-mobile { display: block; }
}

/* Notices WooCommerce prints itself on account pages (block-theme markup), e.g. "Confirm your email
   address to check for past orders": a plain grey line with the action as a link, not its blue box. */
.swanz-account .wc-block-components-notice-banner { display: flex; align-items: center; margin: 0 0 20px; padding: 12px 16px; border: 0; border-radius: 0; background: rgba(0, 0, 0, 0.04); color: #000; font-size: 14px; line-height: 1.5; }
.swanz-account .wc-block-components-notice-banner > svg { display: none; }
.swanz-account .wc-block-components-notice-banner__content { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; width: 100%; }
.swanz-account .wc-block-components-notice-banner__content .button { order: 2; padding: 0; border: 0; background: none; color: var(--swanz-accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.swanz-account .wc-block-components-notice-banner.is-error { background: rgba(240, 73, 73, 0.05); color: var(--swanz-error); }

/* WooCommerce messages on the account pages (e.g. "Account details changed successfully."). */
.swanz-account__content > .swanz-auth__message { margin-bottom: 20px; }
.swanz-account__content > .swanz-auth__error { margin: 0 0 20px; text-align: center; }

.swanz-uc { display: flex; align-items: flex-start; gap: 20px; }
.swanz-uc__col { display: grid; flex: 1 1 0; gap: 20px; min-width: 0; }
.swanz-box { border: 1px solid var(--swanz-line); padding: 0 40px 24px; font-size: 14px; line-height: 1.4; }
.swanz-box__head { display: flex; align-items: center; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--swanz-line); }
.swanz-box__title { flex: 1 1 auto; margin: 0; font-family: var(--wp--preset--font-family--body); font-size: 20px; font-weight: 700; line-height: 1.4; }
.swanz-box__edit { display: inline-flex; color: #000; }
.swanz-box__body { margin: 0; padding: 24px 0 16px; }
.swanz-uc__list { display: grid; gap: 16px; }
.swanz-uc__item dt { margin: 0 0 4px; color: var(--swanz-muted); }
.swanz-uc__item dd { margin: 0; word-break: break-word; }
.swanz-uc__link { display: inline-flex; align-items: center; gap: 5px; line-height: 1; }

@media (max-width: 767.98px) {
	.swanz-uc { flex-direction: column; align-items: stretch; }
	.swanz-box { padding: 0 16px 16px; }
	.swanz-box__head { padding: 16px 0 20px; }
	.swanz-box__title { font-size: 16px; }
	.swanz-box__edit .swanz-account-icon { width: 20px; height: 20px; }
	.swanz-box__body { padding: 20px 0 0; }
	.swanz-uc__item dt { font-size: 12px; }
}

/* Address card */
.swanz-addresses { margin: 0; padding: 0; list-style: none; }
.swanz-address { padding: 24px 0; }
.swanz-address:first-child { padding-top: 0; }
.swanz-address:last-child { padding-bottom: 0; }
.swanz-address + .swanz-address { border-top: 1px solid var(--swanz-line); }
.swanz-address__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.swanz-address__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; margin: 0; }
/* Arise's "Default" tag (here the address type); light grey instead of Arise's 50% black box. */
.swanz-address__badge { padding: 2px 5px; background: rgba(0, 0, 0, 0.06); font-size: 12px; font-weight: 700; line-height: 1.4; }
.swanz-address__name { display: -webkit-box; overflow: hidden; font-size: 16px; font-weight: 700; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.swanz-address__edit { display: inline-flex; flex: none; color: #000; }
.swanz-address__phone { margin: 13px 0 8px; }
.swanz-address__detail { display: -webkit-box; margin: 0; overflow: hidden; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.swanz-address-empty { margin-top: 8px; text-align: center; }
.swanz-address-empty .swanz-account-icon { opacity: 0.3; }
.swanz-address-empty p { margin: 20px 0; font-size: 16px; font-weight: 500; line-height: 1.4; }
.swanz-address-empty__button { gap: 4px; min-height: 36px; padding: 0 12px; font-size: 13.8125px; font-weight: 700; text-transform: uppercase; }
.swanz-address-page { max-width: 780px; margin: 60px auto; padding: 0 20px; }
@media (max-width: 749.98px) {
	.swanz-address { padding: 20px 0; }
	.swanz-address__phone { margin: 8px 0; }
	.swanz-address-empty__button { width: 100%; }
}

/* ---------- address form (and the order-withdrawal form, which uses the same WooCommerce fields) ---------- */
.swanz-address-form { max-width: 780px; margin: 91px auto; padding: 0 20px; }
.swanz-address-form__title { margin: 0; font-family: var(--wp--preset--font-family--body); font-size: 24px; font-weight: 700; line-height: 1.4; text-align: center; text-transform: uppercase; }
.swanz-address-form__form { margin-top: 32px; }
.swanz-address-form__fields { display: flex; flex-wrap: wrap; margin: 0 -10px; }
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row { position: relative; flex: 0 0 100%; max-width: 100%; margin: 16px 0 0; padding: 0 10px; }
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row-first,
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row-last { flex-basis: 50%; max-width: 50%; }
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row[style*="display: none"],
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row:has(> .woocommerce-input-wrapper > input[type="hidden"]) { display: none; }
.swanz-address-form .woocommerce-input-wrapper { display: block; }
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row label { position: absolute; top: 24px; left: 27px; z-index: 1; max-width: calc(100% - 64px); overflow: hidden; color: var(--swanz-muted); font-size: 14px; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; transform: translateY(-50%); transform-origin: left top; transition: transform 0.3s ease; }
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row label .required { color: inherit; text-decoration: none; border: 0; }
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row label .optional { font-weight: 400; }
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row:has(input:focus, input:not(:placeholder-shown), textarea:focus, textarea:not(:placeholder-shown), select) label { transform: translateY(-100%) scale(0.8); }
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row input.input-text,
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row textarea,
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row select { width: 100%; height: 48px; padding: 24px 16px 8px; border: 1px solid var(--swanz-ring); border-radius: 0; background: #fff; color: #000; font: inherit; font-size: 14px; line-height: 1.15; }
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row textarea { height: auto; min-height: 96px; padding-top: 28px; }
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row select { padding-right: 40px; appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%23000' stroke-linecap='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") right 16px center / 10px 6px no-repeat; }
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row input::placeholder { color: transparent; }
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row input:hover,
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row select:hover,
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row input:focus,
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row select:focus { outline: none; box-shadow: 0 0 0 1px var(--swanz-ring); }
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row input:focus-visible,
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row select:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row.woocommerce-invalid input,
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row.woocommerce-invalid select { border-color: rgba(240, 73, 73, 0.55); }
:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row .description { display: block; margin-top: 6px; color: var(--swanz-muted); font-size: 12px; }
.swanz-address-form__footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.swanz-address-form__button { width: 104px; padding: 8px; font-size: 13.8125px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.swanz-address-form .swanz-auth__error { margin-top: 16px; }
@media (max-width: 749.98px) {
	.swanz-address-form { margin: 40px auto; }
	.swanz-address-form__fields { margin: 0 -5px; }
	:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row { padding: 0 5px; }
	:is(.swanz-address-form, .woocommerce-order-withdrawal-content) .form-row label { left: 21px; }
	.swanz-address-form__footer { flex-direction: column-reverse; gap: 16px; }
	.swanz-address-form__button { width: 100%; }
}

/* ---------- order list: one card per order ---------- */
.swanz-orders { max-width: 1180px; margin: 0 auto; padding: 0; list-style: none; }
.swanz-orders__item { position: relative; padding: 20px 0; border-bottom: 1px solid var(--swanz-line); background: #fff; font-size: 14px; font-weight: 400; line-height: 17px; transition: background 0.2s ease; }
.swanz-orders__item:first-child { padding-top: 0; }
.swanz-orders__item:last-child { border-bottom: 0; }
.swanz-orders__item:hover { background: rgba(0, 0, 0, 0.03); }
.swanz-orders__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.swanz-orders__meta { margin: 0; }
.swanz-orders__number { margin-right: 12px; color: #000; font-weight: 700; line-height: 22px; text-decoration: none; }
/* The number link covers the whole card, so the card opens the order; actions sit above it. */
.swanz-orders__number::after { content: ""; position: absolute; inset: 0; }
.swanz-orders__number:focus-visible { outline: none; }
.swanz-orders__number:focus-visible::after { outline: 2px solid #000; outline-offset: -2px; }
.swanz-orders__date { color: var(--swanz-muted); }
.swanz-orders__cancelled { font-weight: 700; opacity: 0.4; }
.swanz-orders__body { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.swanz-orders__info { display: flex; flex: 0 0 43%; align-items: center; gap: 24px; min-width: 0; }
.swanz-orders__image { display: grid; flex: none; place-items: center; width: 88px; height: 88px; overflow: hidden; background: rgba(0, 0, 0, 0.05); }
.swanz-orders__image img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.swanz-orders__count { margin: 0; }
.swanz-orders__total { margin: 8px 0 0; font-weight: 700; line-height: 22px; }
.swanz-orders__total strong { margin-left: 8px; }
.swanz-orders__status { display: grid; flex: 1 1 auto; gap: 8px; }
.swanz-orders__status p { display: flex; align-items: center; gap: 6px; margin: 0; }
.swanz-orders__status .swanz-account-icon { color: var(--swanz-faint); }
.swanz-order-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 16px; }
.swanz-order-actions__again { padding: 6.5px 18.5px; font-size: 14px; font-weight: 700; letter-spacing: normal; }
.swanz-order-actions__link { color: #000; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.swanz-orders__pages { display: flex; justify-content: center; gap: 24px; margin-top: 30px; }
.swanz-orders__pages a { color: #000; text-decoration: underline; text-underline-offset: 4px; }

.swanz-orders-empty { padding: 128px 0 200px; text-align: center; }
.swanz-orders-empty__title { margin: 0 0 32px; font-size: 24px; line-height: 26px; }
.swanz-orders-empty__button { min-width: 160px; max-width: 440px; padding: 14px 24px; font-size: 16px; font-weight: 700; }

@media (max-width: 750px) {
	/* White cards on light grey (Arise's 40% black background looks unintended). */
	.swanz-account.is-orders { padding: 0; }
	.swanz-account.is-orders .swanz-account__nav { margin: 0 20px; }
	.swanz-account.is-orders .swanz-account__content { padding: 12px 0; background: rgba(0, 0, 0, 0.05); }
	.swanz-orders__item { margin-bottom: 12px; padding: 20px; border-bottom: 0; }
	.swanz-orders__item:first-child { padding-top: 20px; }
	.swanz-orders__head { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 12px; }
	.swanz-orders__number { line-height: 16px; }
	.swanz-orders__date { display: block; margin-top: 12px; font-size: 12px; line-height: 14px; }
	.swanz-orders__body { flex-direction: column; align-items: stretch; gap: 20px; }
	.swanz-orders__info { flex-basis: auto; gap: 12px; }
	.swanz-orders__image { width: 60px; height: 60px; }
	.swanz-order-actions.is-list { justify-content: stretch; }
	.swanz-order-actions.is-list .swanz-order-actions__again { flex: 1 1 100%; }
	.swanz-orders-empty { padding-top: 96px; background: #fff; }
	.swanz-orders-empty__title { margin-bottom: 16px; }
	.swanz-orders-empty__button { min-width: 120px; max-width: 320px; font-size: 14px; }
	.swanz-account.is-orders .swanz-account__logout.is-mobile { padding-bottom: 20px; }
}

/* ---------- order detail ---------- */
.swanz-account.is-view-order { max-width: 1264px; margin: 0 auto; padding: 40px 32px 32px; }
.swanz-order__crumbs { display: flex; align-items: center; gap: 6px; font-size: 16px; line-height: 22px; }
.swanz-order__crumb { color: #000; opacity: 0.6; text-decoration: none; }
.swanz-order__back { display: none; align-items: center; gap: 4px; color: #000; font-size: 20px; font-weight: 700; text-decoration: none; }
.swanz-order { margin-top: 20px; padding: 80px 100px; border: 1px solid var(--swanz-line); font-size: 14px; line-height: 20px; }
.swanz-order__status { display: flex; align-items: center; gap: 12px; margin-bottom: 60px; }
.swanz-order__number { margin: 0; font-family: var(--wp--preset--font-family--body); font-size: 20px; font-weight: 700; line-height: 28px; }
.swanz-order__date { color: var(--swanz-muted); }
.swanz-order__cancelled { color: var(--swanz-faint); }
.swanz-order__state { font-weight: 700; }
.swanz-order-tracking .swanz-order { margin: 40px 0 0; }
.swanz-order__section { padding-bottom: 60px; }
.swanz-order-confirmation__tracking { margin-top: 40px; padding-bottom: 0; }
.swanz-order__title { margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--swanz-line); font-family: var(--wp--preset--font-family--body); font-size: 20px; font-weight: 700; line-height: 28px; }
.swanz-order__info { display: grid; gap: 12px; }
.swanz-order__info p,
.swanz-order__text { margin: 0; }
.swanz-order__text a { color: inherit; text-decoration: underline; }
.swanz-order__goods { margin-bottom: 30px; padding: 24px; border-radius: 6px; background: rgba(0, 0, 0, 0.03); }
.swanz-order__goods-title { margin: 0 0 20px; font-family: var(--wp--preset--font-family--body); font-size: 20px; font-weight: 700; line-height: 28px; }
.swanz-order__list { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.swanz-order__good { position: relative; min-height: 80px; padding-left: 100px; }
.swanz-order__good-image { position: absolute; top: 0; left: 0; width: 80px; height: 80px; overflow: hidden; background: rgba(0, 0, 0, 0.05); }
.swanz-order__good-image img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.swanz-order__good-name { display: -webkit-box; margin: 0 0 8px; overflow: hidden; font-size: 16px; font-weight: 400; line-height: 22px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.swanz-order__good-name a { color: inherit; text-decoration: none; }
.swanz-order__good-meta { margin-bottom: 8px; opacity: 0.6; }
.swanz-order__good-meta .wc-item-meta { margin: 0; }
.swanz-order__good-price { margin: 0; font-size: 16px; font-weight: 700; line-height: 18px; text-align: right; }
.swanz-order__good-note { margin-top: 8px; font-size: 12px; }
.swanz-order__summary { margin: 0 0 60px 50%; }
.swanz-order__totals { margin: 0; }
.swanz-order__totals > div { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.swanz-order__totals dt { margin: 0; opacity: 0.6; }
.swanz-order__totals dd { margin: 0; text-align: right; }
.swanz-order__totals .is-total { margin: 4px 0 0; padding-top: 20px; border-top: 1px solid var(--swanz-line); font-size: 16px; font-weight: 700; line-height: 22px; }
.swanz-order__totals .is-total dt { opacity: 1; }
.swanz-order__totals small,
.swanz-order__totals .includes_tax { display: block; color: var(--swanz-muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.swanz-order-actions.is-detail { flex-direction: column; align-items: stretch; margin-top: 40px; }
.swanz-order-actions.is-detail .swanz-order-actions__again { width: 100%; padding: 12px; line-height: 20px; }
.swanz-order__rows { margin: 0; }
.swanz-order__rows > div { display: flex; margin-bottom: 18px; }
.swanz-order__rows dt { flex: 0 0 180px; margin: 0; padding-right: 40px; opacity: 0.6; }
.swanz-order__rows dd { flex: 1 1 auto; margin: 0; }
.swanz-order__notes { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.swanz-order__notes time { display: block; color: var(--swanz-muted); font-size: 12px; }
.swanz-order__notes p { margin: 4px 0 0; }

@media (max-width: 960px) {
	.swanz-order__crumbs { display: none; }
	.swanz-order__back { display: inline-flex; }
	.swanz-order { padding: 40px; }
	.swanz-order__status { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 40px; }
}
@media (max-width: 750px) {
	.swanz-account.is-view-order { padding: 0 0 20px; }
	.swanz-order__back { width: 100%; height: 44px; padding-left: 20px; border-bottom: 1px solid var(--swanz-line); font-size: 16px; }
	.swanz-order { margin-top: 0; padding: 20px 0 0; border: 0; }
	.swanz-order__status,
	.swanz-order__section,
	.swanz-order__summary { padding-right: 20px; padding-left: 20px; }
	.swanz-order__section { padding-bottom: 40px; }
	.swanz-order__number { font-size: 16px; }
	.swanz-order__goods { margin: 0 0 24px; padding: 20px; border-radius: 0; }
	.swanz-order__good { min-height: 64px; padding-left: 76px; }
	.swanz-order__good-image { width: 64px; height: 64px; }
	.swanz-order__good-name,
	.swanz-order__good-price { font-size: 14px; }
	.swanz-order__good-meta { font-size: 12px; }
	.swanz-order__summary { margin: 0 0 40px; }
	.swanz-order__rows > div { flex-direction: column; gap: 8px; margin-bottom: 20px; }
	.swanz-order__rows dt { flex-basis: auto; padding: 0; }
}

/* ---------- order withdrawal (EU right to withdraw; WooCommerce's form, Arise's look) ---------- */
.woocommerce-order-withdrawal-content { max-width: 640px; margin: 80px auto; padding: 0 20px; font-size: 14px; line-height: 1.5; }
.woocommerce-order-withdrawal-content__intro { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.woocommerce-order-withdrawal-content__note { display: block; margin: 0 0 8px; color: var(--swanz-muted); }
.woocommerce-order-withdrawal-content__steps { display: flex; gap: 24px; margin: 24px 0 8px; padding: 0 0 12px; border-bottom: 1px solid #000; list-style: none; counter-reset: swanz-step; }
.woocommerce-order-withdrawal-content__step { color: var(--swanz-muted); counter-increment: swanz-step; }
.woocommerce-order-withdrawal-content__step::before { content: counter(swanz-step) ". "; }
.woocommerce-order-withdrawal-content__step--current { color: #000; font-weight: 700; }
.woocommerce-OrderWithdrawalForm { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.woocommerce-OrderWithdrawalForm > * { flex: 0 0 100%; padding: 0 10px; }
.woocommerce-OrderWithdrawalForm > .clear { display: none; }
.woocommerce-order-withdrawal-content .form-row-first,
.woocommerce-order-withdrawal-content .form-row-last { flex-basis: 50%; }
.woocommerce-order-withdrawal-content__radio-field { margin: 16px 0 0; padding: 12px 16px 14px; border: 1px solid var(--swanz-ring); }
.woocommerce-order-withdrawal-content .woocommerce-order-withdrawal-content__radio-field legend { padding: 0 4px; font-weight: 700; }
/* The radio labels are plain labels, not floating ones. */
.woocommerce-order-withdrawal-content .form-row .woocommerce-order-withdrawal-content__radio-label { position: static; display: inline-flex; align-items: center; gap: 8px; max-width: none; margin: 8px 24px 0 0; color: #000; font-size: 14px; white-space: normal; pointer-events: auto; cursor: pointer; transform: none; }
.woocommerce-order-withdrawal-content__radio-label input { accent-color: var(--wp--preset--color--button); }
.woocommerce-order-withdrawal-content__field-error { display: block; margin-top: 6px; color: var(--swanz-error); font-size: 12px; }
.woocommerce-order-withdrawal-content .form-row textarea { min-height: 120px; }
.woocommerce-order-withdrawal-content__review { margin: 16px 0; }
.woocommerce-order-withdrawal-content__review-row { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.woocommerce-order-withdrawal-content__review-row dt { flex: 0 0 180px; color: var(--swanz-muted); }
.woocommerce-order-withdrawal-content__review-row dd { margin: 0; }
.woocommerce-order-withdrawal-content__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.woocommerce-order-withdrawal-content .button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 23px; border: 1px solid var(--wp--preset--color--button); border-radius: 0; background: var(--wp--preset--color--button); color: #fff; font: inherit; font-size: 13.8125px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; cursor: pointer; }
.woocommerce-order-withdrawal-content .button.woocommerce-order-withdrawal-content__button--secondary { background: transparent; color: var(--wp--preset--color--button); }
.woocommerce-order-withdrawal-content a { color: var(--swanz-accent); text-decoration: underline; }
@media (max-width: 749.98px) {
	.woocommerce-order-withdrawal-content { margin: 40px auto; }
	.woocommerce-order-withdrawal-content .form-row-first,
	.woocommerce-order-withdrawal-content .form-row-last { flex-basis: 100%; max-width: 100%; }
	.woocommerce-order-withdrawal-content__review-row { flex-direction: column; gap: 4px; }
	.woocommerce-order-withdrawal-content__review-row dt { flex-basis: auto; }
	.woocommerce-order-withdrawal-content .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.swanz-auth__field label,
	.swanz-address-form .form-row label,
	.swanz-orders__item { transition: none; }
}
