.tip-page .tip-section {
  min-height: 68vh;
  border-top: 1px solid rgba(214, 160, 90, .10);
  border-bottom: 1px solid rgba(214, 160, 90, .18);
  color: var(--cream-light, #f7f1e7);
  background:
    radial-gradient(circle at 78% 12%, rgba(112, 62, 20, .17), transparent 32rem),
    radial-gradient(circle at 16% 78%, rgba(53, 20, 70, .17), transparent 34rem),
    linear-gradient(135deg, rgba(9, 7, 6, .94), rgba(24, 15, 12, .90) 60%, rgba(9, 7, 6, .94)) !important;
  box-shadow: inset 0 18px 50px rgba(0, 0, 0, .16), inset 0 -18px 50px rgba(0, 0, 0, .20);
  backdrop-filter: blur(2px);
}

.tip-page .tip-section::before {
  display: none;
}

.tip-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: center;
}

.tip-intro {
  max-width: 680px;
}

.tip-intro h1 {
  margin: 0 0 22px;
  color: var(--cream-warm, #f3dfc2);
  font-size: clamp(2.55rem, 4.8vw, 4.8rem);
  font-weight: 500;
  line-height: .94;
}

.tip-lead {
  max-width: 640px;
  margin: 0;
  color: rgba(247, 241, 231, .86);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.68;
}

.tip-note-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid rgba(214, 161, 92, .28);
  border-radius: 18px;
  color: var(--cream-light, #f7f1e7);
  background: rgba(33, 27, 21, .66);
  box-shadow: inset 0 1px 0 rgba(247, 241, 231, .035);
}

.tip-note-card > span {
  color: var(--gold-warm, #d6a15c);
  font-size: 1.15rem;
}

.tip-note-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--cream-warm, #f3dfc2);
}

.tip-note-card p,
.tip-small {
  margin: 0;
  color: rgba(247, 241, 231, .72);
  line-height: 1.6;
}

.tip-small {
  margin-top: 20px;
  font-size: .94rem;
}

.tip-card {
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid rgba(214, 161, 92, .42);
  border-radius: 24px;
  color: var(--black-soft, #211b15);
  background: linear-gradient(145deg, var(--cream-light, #f7f1e7), var(--cream-warm, #f3dfc2));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .30);
}

.tip-page .tip-card h2 {
  margin: 0 0 22px;
  color: var(--black-soft, #211b15) !important;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
}

.tip-page .tip-card p.mini-label {
  color: var(--gold-deep, #986127) !important;
}

.tip-card form {
  display: grid;
  gap: 20px;
}

.tip-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tip-amount {
  min-height: 52px;
  border: 1px solid rgba(152, 97, 39, .34);
  border-radius: 14px;
  color: var(--black-soft, #211b15);
  background: rgba(247, 241, 231, .68);
  font: 800 .98rem/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

.tip-amount:hover,
.tip-amount:focus-visible {
  border-color: var(--gold-deep, #986127);
}

.tip-amount.is-selected {
  border-color: var(--gold-deep, #986127);
  color: var(--cream-light, #f7f1e7);
  background: var(--gold-deep, #986127);
}

.tip-card label {
  display: grid;
  gap: 8px;
  color: var(--black-soft, #211b15);
  font: 800 .9rem/1.35 ui-sans-serif, system-ui, sans-serif;
}

.tip-page .tip-card label > span {
  color: var(--black-soft, #211b15) !important;
}

.tip-card label > span small {
  font-weight: 650;
  opacity: .68;
}

.tip-card input,
.tip-card textarea {
  width: 100%;
  border: 1px solid rgba(152, 97, 39, .42);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--black-soft, #211b15);
  background: rgba(247, 241, 231, .86);
  font: 500 1rem/1.45 ui-sans-serif, system-ui, sans-serif;
}

.tip-card input::placeholder,
.tip-card textarea::placeholder {
  color: rgba(33, 27, 21, .56);
  opacity: 1;
}

.tip-card textarea {
  min-height: 124px;
  resize: vertical;
}

.tip-card input:focus,
.tip-card textarea:focus {
  outline: 3px solid rgba(152, 97, 39, .18);
  outline-offset: 2px;
  border-color: var(--gold-deep, #986127);
}

.tip-custom-field small,
.tip-field-note,
.tip-count {
  color: rgba(33, 27, 21, .68);
  font: 650 .78rem/1.4 ui-sans-serif, system-ui, sans-serif;
}

.tip-money-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}

.tip-money-input > span {
  color: var(--gold-deep, #986127);
  font-size: 1.1rem;
  font-weight: 800;
}

.tip-payment-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.tip-page .tip-card .tip-payment-actions .checkout-pay-button {
  position: relative;
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  min-width: 0;
  min-height: 66px;
  padding: 9px 14px !important;
  border-radius: 16px !important;
  font-family: ui-sans-serif, system-ui, sans-serif;
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    background .16s ease,
    border-color .16s ease;
}

.tip-page .tip-card .tip-payment-actions .checkout-pay-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.tip-page .tip-card .tip-payment-actions .checkout-pay-copy {
  position: static !important;
  right: auto !important;
  left: auto !important;
  grid-column: 2;
  display: grid;
  gap: 2px;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.tip-page .tip-card .tip-payment-actions .checkout-pay-line {
  display: block;
  width: 100%;
  justify-content: center;
  line-height: 1.1;
  text-align: center;
}

.tip-page .tip-card .tip-payment-actions .checkout-pay-line:first-child {
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
  opacity: .82;
}

.tip-page .tip-card .tip-payment-actions .checkout-pay-line--secondary {
  margin-top: 1px;
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: .01em;
}

.tip-page .tip-card .tip-payment-actions .checkout-payment-logo {
  position: static !important;
  inset: auto !important;
  align-self: center;
  max-height: 25px;
  object-fit: contain;
}

.tip-page .tip-card [data-payment-provider="stripe"] .checkout-payment-logo {
  grid-column: 1;
  justify-self: start;
  width: 52px;
}

.tip-page .tip-card [data-payment-provider="paypal"] .checkout-payment-logo {
  grid-column: 3;
  justify-self: end;
  width: 28px;
}

.tip-page .tip-card .tip-payment-actions .checkout-pay-button:focus-visible {
  outline: 3px solid rgba(152, 97, 39, .24);
  outline-offset: 3px;
}

/* Match the configurator payment controls exactly, even though this card is
   nested inside a section-dark surface. */
.tip-page .tip-card .checkout-pay-button.button-primary:not(:disabled) {
  color: white !important;
  border-color: transparent !important;
  background: var(--accent-deep, #875a24) !important;
  box-shadow: 0 9px 24px rgba(105, 72, 90, .18);
}

.tip-page .tip-card .checkout-pay-button.button-primary:not(:disabled):hover {
  background: var(--accent-dark, #533746) !important;
}

.tip-page .tip-card .checkout-paypal-button:not(:disabled) {
  color: #111820 !important;
  border-color: transparent !important;
  background: #ffc439 !important;
  box-shadow: 0 12px 25px rgba(0, 0, 0, .2);
}

.tip-page .tip-card .checkout-paypal-button:not(:disabled):hover {
  background: #ffcf5c !important;
}

.tip-page .tip-card .checkout-pay-button:disabled {
  cursor: not-allowed;
  opacity: 1;
  border: 1px solid rgba(218, 170, 94, .2);
  color: #d8c4a5 !important;
  background: linear-gradient(135deg, rgba(101, 68, 41, .58), rgba(68, 48, 39, .68)) !important;
  box-shadow: none;
  filter: saturate(.55);
}

.tip-page .tip-card .tip-status {
  min-height: 1.4em;
  margin: 0;
  color: rgba(33, 27, 21, .72) !important;
  font: 700 .86rem/1.5 ui-sans-serif, system-ui, sans-serif;
}

.tip-page .tip-card .tip-status.is-error {
  color: #8a3328 !important;
}

.tip-result {
  text-align: center;
}

.tip-result-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid rgba(152, 97, 39, .42);
  border-radius: 50%;
  color: var(--gold-deep, #986127);
  background: rgba(247, 241, 231, .55);
  font-size: 1.45rem;
}

.tip-page .tip-card .tip-result p:not(.mini-label):not(.tip-result-amount) {
  margin: 0 0 18px;
  color: rgba(33, 27, 21, .74) !important;
  line-height: 1.65;
}

.tip-page .tip-card .tip-result-amount {
  margin: 0 0 24px;
  color: var(--gold-deep, #986127) !important;
  font: 800 1.2rem/1.3 ui-sans-serif, system-ui, sans-serif;
}

.tip-page .tip-card .tip-result .button-primary {
  color: var(--cream-light, #f7f1e7) !important;
  border-color: var(--gold-deep, #986127) !important;
  background: var(--gold-deep, #986127) !important;
}

@media (max-width: 800px) {
  .tip-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .tip-intro h1 {
    font-size: clamp(2.25rem, 10vw, 3.7rem);
  }
}

@media (max-width: 520px) {
  .tip-amount-grid,
  .tip-payment-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tip-page .tip-card .tip-payment-actions .checkout-pay-button {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    min-height: 62px;
    padding-inline: 10px !important;
  }

  .tip-page .tip-card [data-payment-provider="stripe"] .checkout-payment-logo {
    width: 46px;
  }

  .tip-page .tip-card [data-payment-provider="paypal"] .checkout-payment-logo {
    width: 25px;
  }
}
