.header__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: transparent;
  flex-shrink: 0;
}

.header__cart:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.header__cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: none;
}

.header__cart.has-items {
  border-color: #fff;
}

body.is-cart-open {
  overflow: hidden;
}

.ama-cart[hidden] { display: none; }

.ama-cart {
  position: fixed;
  inset: 0;
  z-index: 430;
}

.ama-cart__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
}

.ama-cart__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  padding: calc(var(--ama-header-h) + 0.5rem) 1.35rem 1.5rem;
  overflow: auto;
}

.ama-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.ama-cart__title {
  font-family: var(--ama-serif);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #111;
}

.ama-cart__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ama-cart__note {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 1.2rem;
}

.ama-cart__list {
  display: grid;
  gap: 1rem;
  flex: 1;
}

.ama-cart__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.85rem;
  align-items: center;
}

.ama-cart__item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: #fff;
}

.ama-cart__item h3 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0 0 0.25rem;
}

.ama-cart__item p {
  font-size: 0.8rem;
  color: #444;
  margin: 0 0 0.4rem;
}

.ama-cart__remove {
  padding: 0;
  border: 0;
  background: none;
  color: #888;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ama-cart__foot {
  display: grid;
  gap: 0.7rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 1.2rem;
}

.ama-cart__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.ama-cart__tax {
  font-size: 0.7rem;
  color: #888;
}

.ama-look__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.25rem 0 1.15rem;
}

.ama-look__actions .ama-btn {
  align-self: flex-start;
}

.ama-check {
  padding: calc(var(--ama-header-h) + 2.4rem) 0 5rem;
  background: #fff;
}

.ama-check__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  width: min(1100px, 94vw);
  margin-inline: auto;
}

.ama-check__eyebrow {
  display: block;
  margin-bottom: 0.45rem;
}

.ama-check h1 {
  font-family: var(--ama-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: 0.01em;
  text-transform: none;
  color: #111;
  margin-bottom: 1.5rem;
}

.ama-check label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.ama-check input,
.ama-check select,
.ama-check textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #fff;
  color: #111;
  font: inherit;
  text-transform: none;
  letter-spacing: 0.02em;
}

.ama-check textarea { min-height: 6rem; resize: vertical; }

.ama-check__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ama-check__methods {
  display: grid;
  gap: 0.55rem;
  margin: 0.4rem 0 1rem;
}

.ama-check__method {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.ama-check__method:has(input:checked) {
  border-color: #111;
  background: #fafafa;
}

.ama-check__method input {
  width: auto;
  padding: 0;
  accent-color: #111;
}

.ama-pay {
  margin: 0 0 1.15rem;
  padding: 1rem 1rem 0.35rem;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #fafafa;
}

.ama-pay[hidden] { display: none; }

.ama-pay .ama-check__split {
  grid-template-columns: 1fr 1fr;
}

.ama-pay__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  margin: 0 0 1rem;
  padding: 0 1rem;
  background: #111;
  color: #fff;
}

.ama-pay__chip {
  width: 34px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(135deg, #d4af37 0%, #f3e5ab 45%, #b8860b 100%);
}

.ama-pay__brands {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.82;
}

.ama-check__hint {
  font-size: 0.78rem;
  color: #666;
  margin: 0 0 1.1rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.ama-check__error {
  color: #8a1f1f;
  font-size: 0.78rem;
  margin: 0 0 0.8rem;
}

.ama-check__box {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--ama-header-h) + 1rem);
}

.ama-check__box h2 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
}

.ama-check__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.ama-check__item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.ama-check__item h3 {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.25rem;
}

.ama-check__totals {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.78rem;
}

.ama-check__totals div {
  display: flex;
  justify-content: space-between;
}

.ama-check__totals strong { font-size: 0.95rem; }

.ama-check__empty,
.ama-check__done {
  max-width: 36rem;
}

.ama-check__done h2 {
  font-family: var(--ama-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-transform: none;
  letter-spacing: 0.01em;
  margin: 0.4rem 0 0.8rem;
}

.ama-check__done p {
  color: #555;
  margin-bottom: 1.2rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.ama-check__id {
  font-weight: 600;
  letter-spacing: 0.12em;
}

@media (max-width: 860px) {
  .ama-check__grid,
  .ama-check__split {
    grid-template-columns: 1fr;
  }
  .ama-check__box { position: static; }
}
