.coffee-hero {
  background:
    radial-gradient(circle at top right, rgba(100, 181, 246, 0.34), transparent 28%),
    radial-gradient(circle at 16% 16%, rgba(245, 158, 11, 0.16), transparent 24%),
    linear-gradient(135deg, #08111f 0%, #101f3a 52%, #16294a 100%);
}

.coffee-hero-grid,
.coffee-payment-grid,
.coffee-embed-grid,
.coffee-provider-grid {
  display: grid;
  gap: 28px;
}

.coffee-hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.coffee-eyebrow,
.coffee-panel-label {
  color: #9ed2ff;
}

.coffee-hero-copy .lead {
  max-width: 720px;
}

.coffee-hero-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(6, 13, 26, 0.52);
  box-shadow: 0 28px 70px rgba(2, 8, 23, 0.34);
}

.coffee-hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -48px -80px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.36), transparent 66%);
  pointer-events: none;
}

.coffee-hero-panel-head {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.coffee-hero-panel h2 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: clamp(1.45rem, 2.7vw, 2rem);
}

.coffee-proof-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: #dbe7ff;
}

.coffee-proof-list li {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.coffee-proof-badges {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.coffee-proof-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(158, 210, 255, 0.16);
  color: #eaf4ff;
  font-size: 0.86rem;
  font-weight: 700;
}

.coffee-payment-grid {
  grid-template-columns: 0.92fr 1.08fr;
  align-items: start;
}

.coffee-payment-grid-bridge-focus {
  grid-template-columns: minmax(0, 1fr);
}

.coffee-payment-grid-bridge-focus .coffee-config-card {
  width: 100%;
  max-width: 820px;
}

.coffee-config-card,
.coffee-code-card {
  padding: 28px;
  border: 1px solid #e1eaf6;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--card-shadow);
}

.coffee-intro-copy {
  margin-bottom: 24px;
}

.coffee-form {
  display: grid;
  gap: 18px;
}

.coffee-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.coffee-fieldset legend {
  margin-bottom: 10px;
  font-weight: 700;
  color: #0f1f38;
}

.coffee-chip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.coffee-chip {
  min-height: 52px;
  padding: 0 12px;
  border: 1px solid #d7e4f5;
  border-radius: 16px;
  background: #ffffff;
  color: #17304e;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.coffee-chip:hover,
.coffee-chip:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: #93b9f8;
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.12);
}

.coffee-chip.is-selected {
  border-color: #1d4ed8;
  background: linear-gradient(180deg, #eff5ff, #dce9ff);
  color: #12336f;
}

.coffee-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.coffee-form-grid .form-field span {
  color: #17304e;
}

.coffee-form-grid .form-field input {
  background: #ffffff;
  color: #132033;
  border: 1px solid #d7e4f5;
  box-shadow: inset 0 1px 0 rgba(11, 18, 32, 0.03);
}

.coffee-form-grid .form-field input::placeholder {
  color: #7084a3;
}

.coffee-form-grid .form-field input:focus {
  border-color: rgba(29, 78, 216, 0.7);
}

.coffee-summary-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: #0f1f38;
  color: #e8eefc;
}

.coffee-summary-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.08rem;
}

.coffee-summary-label {
  display: block;
  color: #9ec0ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coffee-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.coffee-payment-grid-bridge-focus .coffee-actions .btn {
  flex: 1 1 220px;
}

.coffee-btn-ghost {
  background: #ffffff;
  color: #17304e;
  border-color: #d7e4f5;
}

.coffee-form-note {
  margin: 0;
  color: #4f6480;
  font-size: 0.95rem;
}

.coffee-checkout-column {
  display: grid;
  gap: 14px;
}

.coffee-banner {
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 0.95rem;
}

.coffee-banner-info {
  background: #eef5ff;
  border-color: #cddffc;
  color: #21416e;
}

.coffee-banner-warning {
  background: #fff7e8;
  border-color: #f6d798;
  color: #7f5710;
}

.coffee-banner-success {
  background: #edfdf3;
  border-color: #bfe8cc;
  color: #17643a;
}

.coffee-banner-error {
  background: #fff0f0;
  border-color: #efc4c4;
  color: #8f2e2e;
}

.coffee-checkout-shell {
  overflow: hidden;
  border: 1px solid #d9e6f5;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: 0 28px 64px rgba(15, 31, 56, 0.14);
}

.coffee-shell-topbar {
  display: flex;
  gap: 8px;
  padding: 16px 18px 0;
}

.coffee-shell-topbar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d7e4f5;
}

.coffee-shell-topbar span:first-child {
  background: #f59e0b;
}

.coffee-shell-topbar span:nth-child(2) {
  background: #60a5fa;
}

.coffee-shell-topbar span:nth-child(3) {
  background: #34d399;
}

.coffee-shell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #e4edf8;
}

.coffee-shell-head h3 {
  margin-bottom: 0;
  color: #0f1f38;
}

.coffee-shell-label {
  display: block;
  margin-bottom: 6px;
  color: #597395;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coffee-shell-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ebf4ff;
  color: #1d4ed8;
  font-size: 0.84rem;
  font-weight: 800;
}

.coffee-checkout-placeholder,
.coffee-result {
  padding: 28px 24px 32px;
}

.coffee-checkout-placeholder {
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 540px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(234, 244, 255, 0.72), rgba(255, 255, 255, 0.96)),
    repeating-linear-gradient(
      -45deg,
      rgba(148, 184, 255, 0.14) 0,
      rgba(148, 184, 255, 0.14) 16px,
      rgba(255, 255, 255, 0.72) 16px,
      rgba(255, 255, 255, 0.72) 32px
    );
}

.coffee-checkout-placeholder strong {
  color: #0f1f38;
  font-size: 1.1rem;
}

.coffee-checkout-placeholder p {
  max-width: 32rem;
  margin: 0;
  color: #4f6480;
}

.coffee-checkout-frame {
  min-height: 680px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.coffee-result {
  border-top: 1px solid #e4edf8;
  background: #f8fbff;
}

.coffee-express-wrap {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #d9e6f5;
  border-radius: 18px;
  background: #ffffff;
}

.coffee-express-label {
  display: block;
  margin-bottom: 12px;
  color: #597395;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coffee-payment-form {
  display: grid;
  gap: 16px;
}

.coffee-payment-element {
  padding: 18px;
  border: 1px solid #d9e6f5;
  border-radius: 18px;
  background: #ffffff;
}

.coffee-payment-error {
  padding: 14px 16px;
  border: 1px solid #efc4c4;
  border-radius: 16px;
  background: #fff0f0;
  color: #8f2e2e;
  font-size: 0.95rem;
}

.coffee-submit-button {
  width: 100%;
}

.coffee-payment-note {
  margin: 0;
  color: #4f6480;
  font-size: 0.93rem;
}

.coffee-result-card {
  padding: 18px;
  border: 1px solid #d9e6f5;
  border-radius: 18px;
  background: #ffffff;
}

.coffee-result-card h4 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #0f1f38;
}

.coffee-result-card p:last-child {
  margin-bottom: 0;
}

.coffee-result-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.coffee-result-meta span {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #597395;
}

.coffee-result-meta strong {
  display: block;
  margin-top: 6px;
  color: #0f1f38;
  overflow-wrap: anywhere;
}

.coffee-detail-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coffee-detail-cards .card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.coffee-provider-grid {
  grid-template-columns: 1.04fr 0.96fr;
  align-items: stretch;
}

.coffee-provider-card {
  padding: 28px;
  border: 1px solid #e1eaf6;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--card-shadow);
}

.coffee-provider-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.coffee-provider-brand .eyebrow {
  margin-bottom: 0;
}

.coffee-provider-logo {
  display: block;
  width: auto;
  max-width: 160px;
  height: 34px;
  object-fit: contain;
}

.coffee-provider-summary {
  margin-bottom: 18px;
}

.coffee-provider-card-dark {
  background: linear-gradient(180deg, #0f1f38 0%, #142849 100%);
  border-color: rgba(11, 18, 32, 0.04);
  color: #dfeaff;
}

.coffee-provider-card-dark h3 {
  margin-top: 10px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.coffee-provider-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coffee-provider-list li {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #dbe7ff;
}

.coffee-provider-note {
  margin: 18px 0 0;
  color: #4f6480;
  font-size: 0.95rem;
}

.coffee-fyntek-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.coffee-fyntek-bridge-actions .btn {
  width: 100%;
}

.coffee-fyntek-apple-pay-wrap {
  width: 100%;
}

apple-pay-button {
  display: block;
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  --apple-pay-button-width: 100%;
  --apple-pay-button-height: 48px;
  --apple-pay-button-border-radius: 16px;
}

.coffee-fyntek-shell {
  margin-top: 22px;
  position: relative;
}

.coffee-fyntek-loading {
  display: grid;
  gap: 12px;
  place-items: center;
  min-height: 260px;
  padding: 28px 24px 32px;
  text-align: center;
  border-top: 1px solid #e4edf8;
  position: relative;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(234, 244, 255, 0.72), rgba(255, 255, 255, 0.96)),
    repeating-linear-gradient(
      -45deg,
      rgba(148, 184, 255, 0.14) 0,
      rgba(148, 184, 255, 0.14) 16px,
      rgba(255, 255, 255, 0.72) 16px,
      rgba(255, 255, 255, 0.72) 32px
    );
}

.coffee-fyntek-loading strong {
  color: #0f1f38;
  font-size: 1.08rem;
}

.coffee-fyntek-loading p {
  max-width: 32rem;
  margin: 0;
  color: #4f6480;
}

.coffee-fyntek-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(37, 99, 235, 0.14);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: coffee-spin 0.9s linear infinite;
}

.coffee-fyntek-frame-wrap {
  padding: 0 18px 18px;
}

.coffee-fyntek-frame-wrap.is-polling {
  position: absolute;
  inset: 84px 18px 18px;
  z-index: 1;
  padding: 0;
  opacity: 0.01;
  pointer-events: none;
}

.coffee-fyntek-frame {
  width: 100%;
  min-height: 720px;
  border: 1px solid #d9e6f5;
  border-radius: 18px;
  background: #ffffff;
}

.coffee-fyntek-bridge-frame {
  min-height: 920px;
}

@keyframes coffee-spin {
  to {
    transform: rotate(360deg);
  }
}

.coffee-embed-grid {
  grid-template-columns: 1fr 0.96fr;
  align-items: start;
}

.coffee-ready-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.coffee-ready-list li {
  position: relative;
  padding-left: 22px;
  color: #27405f;
}

.coffee-ready-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1d4ed8;
}

.coffee-code-card {
  background: linear-gradient(180deg, #0f1f38 0%, #142849 100%);
  border-color: rgba(11, 18, 32, 0.04);
  color: #dfeaff;
}

.coffee-code-block {
  overflow-x: auto;
  margin: 12px 0 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(7, 13, 25, 0.72);
  color: #9ed2ff;
  font-size: 0.9rem;
  line-height: 1.5;
}

.coffee-code-block code {
  font-family: Consolas, Monaco, "Courier New", monospace;
}

.coffee-code-note {
  margin: 0;
  color: #bfd7ff;
}

.coffee-cta {
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 22%),
    linear-gradient(180deg, #0d1730, #08111f);
}

.coffee-disabled {
  opacity: 0.58;
  pointer-events: none;
}

@media (max-width: 980px) {
  .coffee-hero-grid,
  .coffee-payment-grid,
  .coffee-embed-grid,
  .coffee-provider-grid,
  .coffee-detail-cards,
  .coffee-form-grid {
    grid-template-columns: 1fr;
  }

  .coffee-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coffee-provider-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .coffee-summary-card,
  .coffee-result-meta {
    grid-template-columns: 1fr;
  }

  .coffee-checkout-frame {
    min-height: 520px;
  }

  .coffee-fyntek-frame {
    min-height: 560px;
  }

  .coffee-fyntek-bridge-frame {
      min-height: 720px;
    }
  }
