/* LumenART – purchase experience (Phase 4.6): cart, mini-cart drawer, one-page checkout, thank-you.
   Tokens come from main.css (:root). Minimum tap target 44px, 16px inputs (no iOS zoom), no horizontal overflow, reduced-motion aware. */

/* ---------------------------------------------------------------- shared */
.la-btn--block { width: 100%; }
.la-btn.la-btn--ghost { background: transparent; color: var(--la-dark); border-color: var(--la-dark); }
.la-btn.la-btn--ghost:hover, .la-btn.la-btn--ghost:focus-visible { background: var(--la-dark); color: #fff; border-color: var(--la-dark); }
.la-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.la-btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: la-spin .7s linear infinite; }
@keyframes la-spin { to { transform: rotate(360deg); } }
.la-link { background: none; border: 0; padding: 0; font: inherit; color: var(--la-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.la-link:hover { color: var(--la-accent-strong); }
.la-h2 { font-size: 22px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.la-h3 { font-size: 17px; margin: 20px 0 10px; }
.la-legend { font-weight: 500; color: var(--la-dark); padding: 0; margin: 0 0 10px; font-size: 16px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.la-form-msg { background: #fdecea; border: 1px solid #a4002f; color: #6b0020; padding: 10px 14px; margin: 0 0 12px; }

/* trust line */
.la-trust { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--la-text); }
.la-trust li::before { content: "✓"; color: var(--la-accent-strong); margin-right: 6px; font-weight: 600; }

/* free shipping progress */
.la-fs { margin: 0 0 18px; padding: 14px 16px; background: var(--la-soft); border-radius: 8px; }
.la-fs__text { margin: 0 0 8px; font-size: 15px; color: var(--la-dark); }
.la-fs__min { color: var(--la-text); }
.la-fs__bar { height: 6px; background: #ddd8d1; border-radius: 3px; overflow: hidden; }
.la-fs__bar span { display: block; height: 100%; background: var(--la-accent-strong); border-radius: 3px; transition: width .3s ease; }
.la-fs.is-reached .la-fs__bar span { background: #2e7d32; }
.la-fs__ok { color: #2e7d32; font-weight: 700; }

/* quantity stepper */
.la-qty { display: inline-flex; align-items: stretch; border: 1px solid #8a8580; border-radius: 6px; background: #fff; }
.la-qty__btn { width: 44px; min-height: 44px; background: none; border: 0; font-size: 22px; line-height: 1; color: var(--la-dark); cursor: pointer; }
.la-qty__btn:hover { background: var(--la-soft); }
.la-qty .quantity { margin: 0; }
.la-qty input.qty, .la-qty__input { width: 52px; min-height: 44px; border: 0 !important; border-left: 1px solid #e6e3df !important; border-right: 1px solid #e6e3df !important; border-radius: 0; text-align: center; font: inherit; font-size: 16px; padding: 0; -moz-appearance: textfield; appearance: textfield; background: #fff; }
.la-qty input::-webkit-outer-spin-button, .la-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.la-qty .screen-reader-text { position: absolute !important; }

/* coupon (collapsed) */
.la-coupon > summary, .la-notes > summary, .la-more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--la-dark); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.la-coupon > summary::-webkit-details-marker, .la-notes > summary::-webkit-details-marker, .la-more > summary::-webkit-details-marker { display: none; }
.la-coupon__body { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 0 8px; }
.la-coupon__body .input-text { flex: 1 1 180px; min-height: 48px; border: 1px solid #8a8580; border-radius: 6px; padding: 0 12px; font: inherit; font-size: 16px; width: auto; }
.la-coupon__msg { margin: 0; font-size: 14px; min-height: 0; }
.la-coupon__msg.is-ok { color: #1b5e20; } .la-coupon__msg.is-bad { color: #a4002f; }
.la-empty { text-align: center; padding: 48px 16px; }
.la-empty__title { font-size: 24px; color: var(--la-dark); margin: 0 0 8px; }
.la-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0; margin: 24px 0 0; }
.la-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--la-line); border-radius: 999px; }
.la-chips a:hover { border-color: var(--la-dark); }

/* ---------------------------------------------------------------- purchase-mode header / footer */
.la-header--purchase .la-header__bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.la-purchase-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.la-purchase-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.la-footer--purchase { background: transparent; color: var(--la-text); border-top: 1px solid var(--la-line); margin-top: 48px; padding: 20px 0; font-size: 14px; }
.la-footer--purchase a { color: var(--la-text); margin-left: 16px; text-decoration: underline; text-underline-offset: 3px; }
.la-footer__purchase { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 640px) { .la-hide-sm { display: none; } .la-purchase-nav { gap: 14px; } }

/* ---------------------------------------------------------------- mini-cart drawer */
body.la-lock { overflow: hidden; }
.la-drawer { position: fixed; inset: 0; z-index: 1200; }
.la-drawer[hidden] { display: none; }
.la-drawer__overlay { position: absolute; inset: 0; background: rgba(20,20,20,.5); opacity: 0; transition: opacity .2s ease; }
.la-drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .22s ease; outline: none; box-shadow: -8px 0 32px rgba(0,0,0,.12); }
.la-drawer.is-open .la-drawer__overlay { opacity: 1; }
.la-drawer.is-open .la-drawer__panel { transform: none; }
.la-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--la-line); }
.la-drawer__head h2, .la-drawer__head .la-drawer__title { margin: 0; font-size: 20px; font-weight: 400; }
.la-drawer__added { margin: 0; padding: 10px 20px; background: #eef6ee; color: #1b5e20; font-weight: 500; }
.la-drawer__body { flex: 1; overflow: auto; overscroll-behavior: contain; }
.la-minicart__inner { padding: 8px 20px 20px; display: flex; flex-direction: column; min-height: 100%; }
.la-minicart__inner.is-loading { opacity: .55; transition: opacity .15s; }
.la-mini-items { list-style: none; margin: 0; padding: 0; }
.la-mini-item { display: grid; grid-template-columns: 72px 1fr 44px; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--la-line); align-items: start; }
.la-mini-item__img img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; display: block; }
.la-mini-item__name { display: block; color: var(--la-dark); font-weight: 500; line-height: 1.3; }
.la-mini-item .variation { margin: 2px 0 0; font-size: 13px; color: var(--la-text); }
.la-mini-item .variation dt, .la-mini-item .variation dd { display: inline; margin: 0; } .la-mini-item .variation dd p { display: inline; margin: 0; }
.la-mini-item__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.la-mini-item__price { font-weight: 600; color: var(--la-dark); }
.la-remove { width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--la-text); display: grid; place-items: center; }
.la-remove:hover { color: #a4002f; }
.la-minicart__foot { margin-top: auto; padding-top: 16px; display: grid; gap: 10px; }
.la-minicart__sub { display: flex; justify-content: space-between; margin: 0; font-size: 18px; color: var(--la-dark); }
.la-minicart__note { margin: 0; font-size: 13px; color: var(--la-text); }
.la-minicart__cart { text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
	.la-drawer__panel { top: auto; bottom: 0; height: 92dvh; width: 100%; border-radius: 16px 16px 0 0; transform: translateY(100%); box-shadow: 0 -8px 32px rgba(0,0,0,.18); }
	.la-drawer.is-open .la-drawer__panel { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .la-drawer__panel, .la-drawer__overlay, .la-fs__bar span { transition: none; } .la-btn.is-loading::after { animation-duration: 1.6s; } }

/* ---------------------------------------------------------------- cart page */
.woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 8px 48px; align-items: start; }
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper, .woocommerce-cart .woocommerce > .la-empty { grid-column: 1 / -1; }
.woocommerce-cart .cart-collaterals { position: sticky; top: 96px; }
.woocommerce-cart .cart-collaterals .cart_totals { float: none; width: 100%; }
.woocommerce-cart-form.is-updating .la-cart-items { opacity: .55; transition: opacity .15s; }
.la-cart-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--la-line); }
.la-cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto 44px; gap: 8px 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--la-line); }
.la-cart-item .product-thumbnail img { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; display: block; }
.la-cart-item .product-name a { color: var(--la-dark); font-weight: 500; font-size: 17px; line-height: 1.3; }
.la-cart-item .variation { margin: 4px 0 0; font-size: 14px; color: var(--la-text); }
.la-cart-item .variation dt, .la-cart-item .variation dd { display: inline; margin: 0; } .la-cart-item .variation dd p { display: inline; margin: 0; }
.la-cart-item__meta { margin: 6px 0 0; font-size: 13px; color: var(--la-muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.la-cart-item__unit { margin: 4px 0 0; font-size: 14px; color: var(--la-text); }
.la-cart-item .product-subtotal { font-weight: 600; font-size: 18px; color: var(--la-dark); text-align: right; min-width: 96px; }
.la-cart-item .product-remove a { width: 44px; height: 44px; display: grid; place-items: center; color: var(--la-text); border-radius: 50%; }
.la-cart-item .product-remove a:hover { color: #a4002f; background: var(--la-soft); }
.la-cart-actions { padding: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.la-update { margin-left: auto; }
.woocommerce-js .la-update { display: none; }
.la-totals { background: var(--la-soft); padding: 24px; border-radius: 8px; }
.la-totals .la-h2 { margin-bottom: 12px; }
.la-totals__table { width: 100%; border: 0 !important; border-collapse: collapse; }
.la-totals__table th, .la-totals__table td { border: 0 !important; padding: 8px 0 !important; background: none !important; text-align: left; font-weight: 400; vertical-align: baseline; }
.la-totals__table td { text-align: right; }
.la-totals__table tr.shipping td { text-align: left; padding: 8px 0 12px !important; }
.la-totals__table .order-total th, .la-totals__table .order-total td { padding-top: 16px !important; border-top: 1px solid #d8d3cb !important; }
.la-grand th { font-size: 18px; font-weight: 500; color: var(--la-dark); }
.la-grand__amount { font-size: 26px; font-weight: 600; color: var(--la-dark); display: block; }
.la-grand__vat { display: block; font-size: 13px; color: var(--la-text); font-weight: 400; }
.la-totals .wc-proceed-to-checkout { padding: 8px 0 0; }
.la-totals .checkout-button { min-height: 52px; }
.la-ship__hint, .la-ship__none { font-size: 13px; color: var(--la-text); margin: 8px 0 0; }

/* radio cards (shipping + payment) */
.la-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.la-card { position: relative; border: 1px solid #cfcac2; border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.la-card > input[type="radio"] { position: absolute; left: 16px; top: 20px; width: 20px; height: 20px; margin: 0; accent-color: var(--la-accent-strong); }
.la-card > label { display: block; padding: 16px 16px 16px 52px; cursor: pointer; min-height: 44px; margin: 0; }
.la-card__row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.la-card__title { font-weight: 500; color: var(--la-dark); }
.la-card__price { font-weight: 600; color: var(--la-dark); white-space: nowrap; }
.la-card__desc { display: block; font-size: 14px; color: var(--la-text); margin-top: 2px; }
.la-card__icon img { max-height: 24px; width: auto; vertical-align: middle; }
.la-card:has(> input:checked), .la-card.is-selected { border-color: var(--la-dark); box-shadow: 0 0 0 1px var(--la-dark); }
.la-card:has(> input:focus-visible) { outline: 2px solid var(--la-accent); outline-offset: 2px; }
.la-card .payment_box { padding: 0 16px 16px 52px; font-size: 14px; color: var(--la-text); background: none; margin: 0; }
.la-card .payment_box::before { display: none; }
.la-card .payment_box p { margin: 0 0 8px; }
.la-nopay { padding: 14px 16px; border: 1px dashed #b5b0a8; border-radius: 8px; color: var(--la-dark); background: var(--la-soft); list-style: none; }

/* ---------------------------------------------------------------- checkout */
.woocommerce-checkout main#content > h1, .woocommerce-checkout .entry-title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.la-co { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "main sum"; gap: 0 56px; align-items: start; }
.la-co__main { grid-area: main; min-width: 0; }
.la-sum { grid-area: sum; position: sticky; top: 88px; background: var(--la-soft); border-radius: 8px; }
.la-sum > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; min-height: 56px; font-weight: 500; color: var(--la-dark); }
.la-sum > summary::-webkit-details-marker { display: none; }
.la-sum__total { margin-left: auto; font-weight: 600; }
.la-sum__toggle { font-size: 14px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; color: var(--la-text); }
.la-sum__body { padding: 0 20px 20px; }
.la-sum__edit { margin: 8px 0 0; }
.la-rev__items { list-style: none; margin: 0; padding: 0; }
.la-rev__item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; }
.la-rev__img { position: relative; display: block; width: 56px; height: 56px; }
.la-rev__img img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; display: block; }
.la-rev__qty { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--la-dark); color: #fff; font-size: 12px; display: grid; place-items: center; }
.la-rev__name { font-size: 15px; line-height: 1.3; color: var(--la-dark); }
.la-rev__name .variation { margin: 2px 0 0; font-size: 13px; color: var(--la-text); }
.la-rev__name .variation dt, .la-rev__name .variation dd { display: inline; margin: 0; } .la-rev__name .variation dd p { display: inline; margin: 0; }
.la-rev__price { font-weight: 500; color: var(--la-dark); white-space: nowrap; }
.la-rev__totals { margin: 8px 0 0; border-top: 1px solid #d8d3cb; padding-top: 8px; }
.la-rev__totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.la-rev__totals dt, .la-rev__totals dd { margin: 0; }
.la-rev__totals .cart-discount dd { color: #1b5e20; }
.la-rev__totals .la-grand { align-items: baseline; border-top: 1px solid #d8d3cb; margin-top: 8px; padding-top: 12px; }
.la-rev__totals .la-grand dt { font-size: 18px; color: var(--la-dark); font-weight: 500; }
.la-rev__totals .la-grand dd { text-align: right; }
.la-sec { padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--la-line); }
.la-sec--pay { border-bottom: 0; }
.la-step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--la-dark); color: #fff; font-size: 14px; font-weight: 500; }
.la-login-hint { font-size: 14px; color: var(--la-text); margin: 4px 0 0; }
.la-expect { font-size: 14px; color: var(--la-text); margin: 12px 0 0; }
.la-pickup-note { margin: 16px 0 0; padding: 14px 16px; background: var(--la-soft); border-left: 3px solid var(--la-accent); }
.la-address { margin-top: 8px; }
.la-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.la-country { display: none; }
.la-more, .la-notes { margin: 4px 0 8px; }
.la-tickrow { margin: 14px 0; }
.la-tickrow label { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; cursor: pointer; }
.la-tickrow input[type="checkbox"] { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--la-accent-strong); flex: none; }
.la-seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.la-seg .la-legend { width: 100%; margin-bottom: 4px; }
.la-seg__opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid #cfcac2; border-radius: 999px; cursor: pointer; background: #fff; }
.la-seg__opt input { accent-color: var(--la-accent-strong); width: 18px; height: 18px; margin: 0; }
.la-seg__opt:has(input:checked) { border-color: var(--la-dark); box-shadow: 0 0 0 1px var(--la-dark); }
.la-seg__opt:has(input:focus-visible) { outline: 2px solid var(--la-accent); outline-offset: 2px; }

/* fields */
.la-checkout .form-row { float: none !important; width: 100% !important; margin: 0 0 16px; padding: 0; }
.la-checkout .form-row label { display: block; margin: 0 0 6px; font-weight: 500; color: var(--la-dark); line-height: 1.3; }
.la-checkout .form-row .woocommerce-input-wrapper { display: block; }
.la-checkout input.input-text, .la-checkout select, .la-checkout textarea { width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--la-dark); background: #fff; border: 1px solid #8a8580; border-radius: 6px; }
.la-checkout textarea { min-height: 96px; }
.la-checkout input.input-text:focus, .la-checkout select:focus, .la-checkout textarea:focus { outline: 2px solid var(--la-accent); outline-offset: 1px; border-color: var(--la-dark); }
.la-checkout .form-row.woocommerce-invalid label, .la-checkout .form-row.woocommerce-invalid .required { color: inherit; }
.la-checkout .form-row.woocommerce-invalid input.input-text, .la-checkout .form-row.woocommerce-invalid select, .la-checkout .form-row.woocommerce-validated input.input-text { border-color: #8a8580; box-shadow: none; }
.la-checkout .form-row.has-error input.input-text, .la-checkout .form-row.has-error select, .la-checkout .form-row.has-error textarea { border-color: #a4002f; box-shadow: inset 0 0 0 1px #a4002f; }
.la-checkout .form-row .description { display: block; font-size: 13px; color: var(--la-text); margin-top: 6px; }
.la-req, .la-opt { margin-left: 8px; font-size: 12px; font-weight: 400; letter-spacing: .02em; }
.la-req { color: #8a3a00; } .la-opt { color: var(--la-muted); }
.la-fielderr { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; font-size: 14px; color: #a4002f; line-height: 1.35; }
.la-fielderr__icon { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #a4002f; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.la-errsum { border: 1px solid #a4002f; background: #fdecea; color: #6b0020; padding: 14px 18px; margin: 0 0 20px; border-radius: 6px; }
.la-errsum p { margin: 0 0 6px; } .la-errsum ul { margin: 0; padding-left: 20px; } .la-errsum a { color: #6b0020; text-decoration: underline; }
.la-errsum:focus { outline: 2px solid #a4002f; outline-offset: 2px; }
.woocommerce-NoticeGroup-checkout[hidden] { display: none; }

/* payment + CTA */
.la-payment .la-pay { margin: 0 0 8px; }
.la-place { margin-top: 20px; }
.la-legal { font-size: 14px; color: var(--la-text); margin: 0 0 14px; }
.la-legal .woocommerce-privacy-policy-text p { margin: 0 0 10px; }
.la-legal a { text-decoration: underline; text-underline-offset: 3px; }
.la-paydue { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 12px; font-size: 18px; color: var(--la-dark); }
.la-paydue strong { font-size: 26px; }
.la-place-order { min-height: 56px; font-size: 15px; letter-spacing: .05em; padding: 14px 20px; text-align: center; white-space: normal; line-height: 1.25; }
.la-checkout.processing .la-place-order { opacity: .7; }

/* ---------------------------------------------------------------- thank-you */
.la-ty__hero { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 8px; background: #eef6ee; margin-bottom: 16px; }
.la-ty__hero--bad { background: #fdecea; }
.la-ty__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #2e7d32; color: #fff; font-size: 26px; display: grid; place-items: center; }
.la-ty__hero--bad .la-ty__icon { background: #a4002f; }
.la-ty__title { margin: 0 0 2px; font-size: 24px; }
.la-ty__lead { margin: 0; }
.la-ty__status { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-left: 4px solid #8a8580; background: var(--la-soft); margin-bottom: 20px; }
.la-ty__status--ok { border-color: #2e7d32; } .la-ty__status--wait { border-color: #b9520f; } .la-ty__status--bad { border-color: #a4002f; } .la-ty__status--info { border-color: #1a5fb4; }
.la-ty__sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; margin: 0 0 28px; }
.la-ty__sum dt { font-size: 13px; color: var(--la-text); } .la-ty__sum dd { margin: 2px 0 0; color: var(--la-dark); font-weight: 500; }
.la-steps { list-style: none; counter-reset: s; margin: 0 0 12px; padding: 0; display: grid; gap: 14px; }
.la-steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 0 12px; }
.la-steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--la-dark); color: #fff; display: grid; place-items: center; font-size: 14px; }
.la-steps span { color: var(--la-text); }
.la-ty__acc { margin: 28px 0; padding: 20px; background: var(--la-soft); border-radius: 8px; }
.la-ty__msg--ok { color: #1b5e20; } .la-ty__msg--bad { color: #a4002f; }
.la-ty__retry { display: flex; gap: 8px; flex-wrap: wrap; }
.la-ty__back { margin: 24px 0 0; }
.la-ty .woocommerce-order-details, .la-ty .woocommerce-customer-details { margin-top: 28px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1023px) {
	.woocommerce-cart .woocommerce { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-cart .cart-collaterals { position: static; }
	.la-co { grid-template-columns: minmax(0, 1fr); grid-template-areas: "sum" "main"; }
	.la-sum { position: static; margin-bottom: 24px; }
}
@media (max-width: 640px) {
	.la-cart-item { grid-template-columns: 80px minmax(0, 1fr) auto; grid-template-areas: "img name rm" "img qty sub"; gap: 8px 12px; align-items: start; }
	.la-cart-item .product-thumbnail { grid-area: img; } .la-cart-item .product-thumbnail img { width: 80px; height: 80px; }
	.la-cart-item .product-name { grid-area: name; } .la-cart-item .product-remove { grid-area: rm; }
	.la-cart-item .product-quantity { grid-area: qty; } .la-cart-item .product-subtotal { grid-area: sub; align-self: center; min-width: 0; font-size: 16px; }
	.la-grid { grid-template-columns: 1fr; }
	.la-totals { padding: 18px; }
	.la-ty__sum { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
	.la-sum > summary { cursor: default; pointer-events: none; }
	.la-sum__total, .la-sum__toggle { display: none; }
	/* rendered closed in HTML (mobile-first, no layout shift); on desktop the body is always visible, JS only syncs [open] */
	.la-sum:not([open])::details-content { content-visibility: visible; display: block; }
	.la-sum > summary { min-height: 0; padding-bottom: 4px; font-size: 20px; }
}
@media (max-width: 400px) { .la-card__row { flex-direction: column; gap: 2px; } }

/* overrides of WooCommerce / main.css defaults inside the purchase flow */
.woocommerce-checkout #payment.la-payment { background: transparent; border-radius: 0; }
.woocommerce-checkout #payment.la-payment .place-order { padding: 0; margin: 0; background: transparent; }
.woocommerce-checkout #payment.la-payment ul.payment_methods { border: 0; padding: 0; margin: 0; }
.woocommerce-checkout #payment.la-payment ul.payment_methods li { list-style: none; }
.woocommerce-checkout #payment.la-payment ul.payment_methods li img { float: none; margin: 0 0 0 8px; }

.la-header--purchase .la-logo { display: inline-flex; align-items: center; min-height: 44px; }
.la-totals__table th { font-weight: 400; white-space: nowrap; }
.la-totals__table .order-total th { font-weight: 500; }

/* ---------------------------------------------------------------- Phase 5.2: "Informacje o zakupie" module + calmer product meta */
.la-buyinfo { margin: 26px 0 0; border-top: 1px solid var(--la-line); font-size: 14px; line-height: 1.5; color: var(--la-text); }
.la-buyinfo__title { margin: 16px 0 2px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--la-muted); }
.la-buyinfo__row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; margin: 0; border-bottom: 1px solid var(--la-line); }
.la-bi-icon { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; color: var(--la-muted); }
.la-buyinfo__label { margin: 0; font-weight: 500; color: var(--la-dark); }
.la-buyinfo__note { margin: 2px 0 0; color: var(--la-muted); }
.la-buyinfo__avail.is-stock24 .la-buyinfo__label, .la-buyinfo__avail.is-stock .la-buyinfo__label { color: #2f6b3b; }
.la-buyinfo__avail.is-out .la-buyinfo__label, .la-buyinfo__avail.is-hold .la-buyinfo__label { color: #8a3b12; }
.la-buyinfo details.la-buyinfo__more { display: block; padding: 0 0 14px; }
.la-buyinfo details > summary { min-height: 44px; }
.la-buyinfo details > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; color: var(--la-dark); font-weight: 500; }
.la-buyinfo details > summary::-webkit-details-marker { display: none; }
.la-buyinfo details > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border: solid var(--la-muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .15s; }
.la-buyinfo details[open] > summary::after { transform: rotate(-135deg); }
.la-buyinfo details > summary:focus-visible, .la-buyinfo a:focus-visible, .la-meta__tags summary:focus-visible { outline: 2px solid var(--la-accent); outline-offset: 3px; }
.la-buyinfo__list { list-style: none; margin: 10px 0 0 32px; padding: 0; }
.la-buyinfo__list li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-top: 1px solid var(--la-line); }
.la-buyinfo__list li:first-child { border-top: 0; }
.la-buyinfo__lt small { display: block; color: var(--la-muted); font-size: 12.5px; }
.la-buyinfo__lp { white-space: nowrap; color: var(--la-dark); }
.la-buyinfo__list--plain li { display: block; }
.la-buyinfo__link, .la-buyinfo__text { margin: 8px 0 0 32px; }
.la-buyinfo a { color: var(--la-accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.la-buyinfo__help { border-bottom: 0; }
.woocommerce div.product .la-meta { margin-top: 18px; padding-top: 12px; font-size: 13px; color: var(--la-muted); }
.la-meta__row { margin: 0 0 4px; }
.la-meta__k { color: var(--la-muted); }
.la-meta a { color: var(--la-muted); }
.la-meta__tags { margin: 4px 0 0; }
.la-meta__tags summary { cursor: pointer; display: inline-block; color: var(--la-muted); }
.la-meta__tags p { margin: 4px 0 0; }
@media (max-width: 767px) { .la-buyinfo__list { margin-left: 0; } .la-buyinfo__link, .la-buyinfo__text { margin-left: 0; } }

/* Phase 5.4 – smart CTA: one primary action per variant */
.la-cta-ask-wrap { margin: 12px 0 0; }
.la-cta-ask-wrap[hidden], .la-buyinfo__help[hidden] { display: none; }
.la-cta-ask { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
form.la-cta--ask .woocommerce-variation-add-to-cart { display: none !important; }
.la-buyinfo__avail.is-supplier .la-buyinfo__label { color: #2f6b3b; }
.la-buyinfo__avail.is-quote .la-buyinfo__label, .la-buyinfo__avail.is-ask .la-buyinfo__label { color: var(--la-dark); }
