.aqc-presenter {
  --aqc-ink: #293027;
  --aqc-muted: #72786f;
  --aqc-line: rgba(49, 58, 46, .12);
  --aqc-canvas: #f7f5f0;
  --aqc-surface: #fff;
  --aqc-primary: #aa6045;
  --aqc-primary-dark: #8f4e38;
  --aqc-green: #576b50;
  --aqc-danger: #a43b35;
}

body.aqc-is-open > .woocommerce-notices-wrapper,
body.aqc-is-open > .woocommerce-error,
body.aqc-is-open > .woocommerce-message,
body.aqc-is-open > .woocommerce-info { display: none !important; }

.aqc-loading { display: grid; min-height: 240px; place-content: center; justify-items: center; gap: 13px; color: var(--aqc-muted); text-align: center; }
.aqc-spinner { width: 34px; height: 34px; border: 3px solid rgba(87, 107, 80, .16); border-top-color: var(--aqc-green); border-radius: 50%; animation: aqc-spin .8s linear infinite; }
@keyframes aqc-spin { to { transform: rotate(360deg); } }

.aqc-skeleton { display: grid; gap: 13px; padding: 4px 0; }
.aqc-skeleton > *,
.aqc-skeleton__cart > *,
.aqc-skeleton__payment > *,
.aqc-skeleton__total > * { position: relative; overflow: hidden; border-radius: 11px; background: #eceeea; }
.aqc-skeleton > *::after,
.aqc-skeleton__cart > *::after,
.aqc-skeleton__payment > *::after,
.aqc-skeleton__total > *::after { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent); content: ''; transform: translateX(-100%); animation: aqc-shimmer 1.3s ease-in-out infinite; }
.aqc-skeleton__title { width: 42%; height: 25px; }
.aqc-skeleton__line { width: 68%; height: 12px; }
.aqc-skeleton__field { height: 54px; margin-top: 8px; }
.aqc-skeleton__hint { width: 55%; height: 10px; }
.aqc-skeleton__button { height: 52px; margin-top: 4px; }
.aqc-skeleton__cart { display: grid; grid-template-columns: 62px minmax(0, 1fr) 86px; gap: 11px; min-height: 82px; padding: 11px; border: 1px solid var(--aqc-line); border-radius: 15px; }
.aqc-skeleton__thumb { min-height: 58px; }
.aqc-skeleton__copy { height: 14px; align-self: center; }
.aqc-skeleton__price { height: 12px; align-self: center; }
.aqc-skeleton__payment { display: grid; gap: 9px; }
.aqc-skeleton__payment span { height: 58px; }
.aqc-skeleton__total { display: flex; justify-content: space-between; gap: 20px; margin-top: 5px; }
.aqc-skeleton__total span { width: 32%; height: 15px; }
@keyframes aqc-shimmer { to { transform: translateX(100%); } }

.aqc-summary { display: grid; gap: 18px; }
.aqc-summary__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.aqc-summary__items { display: grid; gap: 10px; }
.aqc-summary-item { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--aqc-line); border-radius: 14px; background: var(--aqc-surface); }
.aqc-summary-item img { display: block; width: 68px; height: 54px; border-radius: 10px; object-fit: cover; }
.aqc-summary-item__body { min-width: 0; }
.aqc-summary-item__body strong { overflow: hidden; font-size: 14px; line-height: 1.65; text-overflow: ellipsis; white-space: nowrap; }
.aqc-summary-item__price { display: grid; justify-items: end; gap: 3px; color: var(--aqc-muted); font-size: 11px; white-space: nowrap; }
.aqc-summary-item__price b { color: var(--aqc-green); font-size: 13px; }
.aqc-summary-item__price .woocommerce-Price-amount { color: inherit; font: inherit; }
.aqc-summary__total { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 16px; border-radius: 14px; background: rgba(87, 107, 80, .08); }
.aqc-summary__total span { color: var(--aqc-muted); font-size: 13px; }
.aqc-summary__total strong { color: var(--aqc-green); font-size: 17px; }

.aqc-primary-action { display: inline-flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; padding: 11px 18px; border: 0; border-radius: 14px; background: var(--aqc-primary); color: #fff !important; font: inherit; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; transition: background-color .18s ease, transform .18s ease; }
.aqc-primary-action:hover { background: var(--aqc-primary-dark); }
.aqc-primary-action:active { transform: scale(.99); }
.aqc-primary-action:focus-visible { outline: 3px solid rgba(170, 96, 69, .28); outline-offset: 2px; }

.aqc-auth-host { max-width: 520px; margin: 0 auto; }

.aqc-checkout-host .aqc-checkout { width: 100%; min-width: 0; }
.aqc-checkout-host .aqc-checkout__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.aqc-checkout-host .aqc-checkout--two-column .aqc-checkout__layout { grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); align-items: start; }
.aqc-checkout-host .aqc-checkout__main { display: grid; min-width: 0; gap: 14px; }
.aqc-checkout-host .aqc-checkout__section,
.aqc-checkout-host .aqc-checkout__summary { min-width: 0; padding: 16px; border: 1px solid var(--aqc-line); border-radius: 16px; background: var(--aqc-surface); }
.aqc-checkout-host .aqc-checkout__section-title { margin: 0 0 13px; color: var(--aqc-ink); font-size: 14px; font-weight: 800; line-height: 1.6; }
.aqc-checkout-host .aqc-checkout__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.aqc-checkout-host .aqc-checkout--stacked .aqc-checkout__summary { display: none; }
.aqc-checkout-host .aqc-checkout__summary { position: sticky; top: 18px; }
.aqc-checkout-host .aqc-checkout__summary-content .woocommerce-checkout-payment,
.aqc-checkout-host .aqc-checkout__order-review > .woocommerce-checkout-review-order-table { display: none !important; }
.aqc-checkout-host .aqc-checkout__summary table { width: 100%; border-collapse: collapse; }
.aqc-checkout-host .aqc-checkout__summary th,
.aqc-checkout-host .aqc-checkout__summary td { padding: 9px 0; border: 0; border-bottom: 1px solid var(--aqc-line); font-size: 12px; text-align: right; }
.aqc-checkout-host .aqc-checkout__summary td { text-align: left; }
.aqc-checkout-host .aqc-checkout__summary .order-total th,
.aqc-checkout-host .aqc-checkout__summary .order-total td { padding-top: 13px; border-bottom: 0; font-size: 14px; }
.aqc-checkout-host .aqc-checkout__feedback { margin: 0 0 12px; padding: 10px 12px; border-radius: 11px; background: #fff3f1; color: var(--aqc-danger); font-size: 12px; font-weight: 600; line-height: 1.8; }
.aqc-checkout-host .aqc-checkout__feedback[hidden] { display: none; }
.aqc-checkout-host .woocommerce-error,
.aqc-checkout-host .woocommerce-info,
.aqc-checkout-host .woocommerce-message { margin: 0 0 12px !important; padding: 11px 14px !important; border: 0; border-radius: 10px; font-size: 12px; }

.aqc-error,
.aqc-enrolled { display: grid; min-height: 260px; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; }
.aqc-error > span,
.aqc-enrolled__icon { display: grid; width: 52px; height: 52px; border-radius: 50%; place-items: center; background: rgba(164, 59, 53, .1); color: var(--aqc-danger); font-size: 24px; font-weight: 900; }
.aqc-enrolled__icon { background: rgba(87, 107, 80, .12); color: var(--aqc-green); }
.aqc-error h3,
.aqc-enrolled h3 { margin: 4px 0 0; font-size: 17px; }
.aqc-error p,
.aqc-enrolled p { max-width: 44ch; margin: 0; color: var(--aqc-muted); font-size: 13px; line-height: 1.8; }
.aqc-error__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.aqc-error__actions button { min-height: 42px; padding: 8px 14px; border: 1px solid var(--aqc-line); border-radius: 11px; background: #fff; color: var(--aqc-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.aqc-error__actions button:first-child { border-color: transparent; background: var(--aqc-primary); color: #fff; }
.aqc-debug { margin-top: 16px; padding: 8px 10px; border: 1px dashed #8c8f94; border-radius: 8px; direction: ltr; font: 11px/1.5 ui-monospace, monospace; text-align: left; }
.aqc-debug pre { overflow: auto; white-space: pre-wrap; }

@media (max-width: 680px) {
  .aqc-checkout-host .aqc-checkout--two-column .aqc-checkout__layout,
  .aqc-checkout-host .aqc-checkout__fields { grid-template-columns: 1fr; }
  .aqc-checkout-host .aqc-checkout__summary { display: none; }
  .aqc-skeleton__cart { grid-template-columns: 54px minmax(0, 1fr); }
  .aqc-skeleton__price { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .aqc-spinner { animation-duration: 1.8s; }
  .aqc-skeleton > *::after,
  .aqc-skeleton__cart > *::after,
  .aqc-skeleton__payment > *::after,
  .aqc-skeleton__total > *::after { animation: none; }
  .aqc-primary-action { transition: none; }
}
