.purchase-option,
.paypal-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 8px;
  align-items: stretch;
}

.store-links .purchase-option > a {
  width: 100%;
  min-height: 64px;
}

.qr-option-button {
  width: 52px;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #cbd6de;
  border-radius: 12px;
  color: #0b2c55;
  background: #f7fafb;
  box-shadow: 0 4px 14px rgba(11, 44, 85, .06);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.purchase-option .qr-option-button { min-height: 64px; }
.qr-option-button:hover { border-color: #087c70; background: #ecf8f5; transform: translateY(-1px); }
.qr-option-button:focus-visible { outline: 3px solid #f6cf62; outline-offset: 3px; }
.qr-option-button svg { width: 23px; height: 23px; }

.qr-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.qr-modal {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: #10243d;
  background: #fff;
  box-shadow: 0 30px 100px rgba(4, 22, 42, .32);
}

.qr-modal::backdrop { background: rgba(4, 22, 42, .66); backdrop-filter: blur(4px); }
.qr-modal-card { position: relative; padding: 28px; }
.qr-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #304b6b;
  background: #eef4f7;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.qr-modal-close:hover { color: #0b2c55; background: #e1edf1; }
.qr-modal-close:focus-visible { outline: 3px solid #f6cf62; outline-offset: 2px; }

.qr-modal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.qr-modal-image-wrap {
  padding: 11px;
  border: 1px solid #dfe7ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(11, 44, 85, .08);
}
.qr-modal-image { width: 100%; height: auto; display: block; }
.qr-modal-kicker {
  display: block;
  margin-bottom: 8px;
  color: #087c70;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.qr-modal-title { margin: 0; color: #0b2c55; font-size: 24px; line-height: 1.15; }
.qr-modal-copy { margin: 11px 0 0; color: #667085; font-size: 14px; line-height: 1.55; }

@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  .purchase-option,
  .paypal-option { grid-template-columns: 1fr; }
  .qr-option-button { display: none; }
}

@media (max-width: 560px) {
  .qr-modal-card { padding: 52px 22px 24px; }
  .qr-modal-layout { grid-template-columns: 1fr; gap: 18px; }
  .qr-modal-image-wrap { width: min(220px, 100%); margin: 0 auto; }
  .qr-modal-copy { text-align: center; }
  .qr-modal-kicker { text-align: center; }
  .qr-modal-title { font-size: 21px; text-align: center; }
}
