/* DEVZ premium payment selector.
   Provider-hosted payment fields remain untouched; this file styles only DEVZ-owned UI. */

body:not(.inner-page) #quoteForm .payment-panel.payment-panel-premium {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: clamp(18px, 3vw, 28px) !important;
  border: 1px solid #d8e0e4 !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(195, 151, 48, .10), transparent 34%),
    linear-gradient(145deg, #fbfcfc 0%, #f1f5f6 100%) !important;
  box-shadow: 0 20px 52px rgba(18, 39, 55, .10), inset 0 1px 0 rgba(255,255,255,.95) !important;
}

body:not(.inner-page) #quoteForm .payment-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

body:not(.inner-page) #quoteForm .payment-kicker {
  display: block;
  margin-bottom: 5px;
  color: #9a741d !important;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.2;
  text-transform: uppercase;
}

body:not(.inner-page) #quoteForm .payment-panel-heading h3 {
  margin: 0;
  color: #132d40 !important;
  font-family: inherit;
  font-size: clamp(1.08rem, 2.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

body:not(.inner-page) #quoteForm .payment-security-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(154,116,29,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  color: #6c551c !important;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}

body:not(.inner-page) #quoteForm .payment-panel-intro,
body:not(.inner-page) #quoteForm .payment-safety-note,
body:not(.inner-page) #quoteForm .payment-wallet-note {
  color: #496372 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body:not(.inner-page) #quoteForm .payment-panel-intro {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: .84rem;
  line-height: 1.6;
}

body:not(.inner-page) #quoteForm .payment-recovery-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 18px;
  color: #29495b !important;
  font-size: .78rem;
  line-height: 1.45;
}

body:not(.inner-page) #quoteForm .payment-recovery-consent input {
  flex: 0 0 auto;
  margin-top: 2px;
}

/* Internal bootstrap control: payment choices below are the customer-facing controls. */
body:not(.inner-page) #quoteForm .payment-bootstrap-action {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body:not(.inner-page) #quoteForm .payment-method-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

body:not(.inner-page) #quoteForm .payment-method-card {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: flex !important;
  min-width: 0;
  min-height: 88px;
  margin: 0 !important;
  padding: 13px 12px 12px !important;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 5px;
  border: 1px solid #d7e0e4 !important;
  border-radius: 15px !important;
  background: rgba(255,255,255,.94) !important;
  color: #142f42 !important;
  box-shadow: 0 8px 22px rgba(22,48,65,.07) !important;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body:not(.inner-page) #quoteForm .payment-method-card:hover {
  transform: translateY(-2px);
  border-color: #b89a51 !important;
  box-shadow: 0 12px 28px rgba(22,48,65,.12) !important;
}

body:not(.inner-page) #quoteForm .payment-method-card:focus-visible {
  outline: 3px solid rgba(178,137,40,.32) !important;
  outline-offset: 3px;
}

body:not(.inner-page) #quoteForm .payment-method-card.is-selected {
  border-color: #a98025 !important;
  background: #fffdf7 !important;
  box-shadow: 0 0 0 1px rgba(169,128,37,.18), 0 12px 28px rgba(22,48,65,.11) !important;
}

body:not(.inner-page) #quoteForm .payment-method-type {
  color: #71838e !important;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

body:not(.inner-page) #quoteForm .payment-method-name {
  display: block;
  color: #142f42 !important;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  white-space: nowrap;
}

body:not(.inner-page) #quoteForm .visa-name {
  color: #173b72 !important;
  letter-spacing: .01em;
}

body:not(.inner-page) #quoteForm .mastercard-name {
  color: #1f2933 !important;
  font-size: .92rem;
}

body:not(.inner-page) #quoteForm .google-pay-name {
  font-weight: 700;
}

body:not(.inner-page) #quoteForm .payment-method-action {
  color: #637985 !important;
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.2;
}

body:not(.inner-page) #quoteForm .payment-method-card .apple-pay-mark {
  display: block;
  width: auto !important;
  height: 30px !important;
  max-width: 100%;
  aspect-ratio: 165.52107 / 105.9651;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}

body:not(.inner-page) #quoteForm .embedded-checkout {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #d9e1e5;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

body:not(.inner-page) #quoteForm .embedded-checkout[hidden],
body:not(.inner-page) #quoteForm .wallet-checkout[hidden],
body:not(.inner-page) #quoteForm .payment-separator[hidden] {
  display: none !important;
}

body:not(.inner-page) #quoteForm .payment-choice-label {
  margin: 0 0 10px;
  color: #17324a !important;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
}

body:not(.inner-page) #quoteForm #expressCheckoutElement {
  min-height: 56px;
}

body:not(.inner-page) #quoteForm .payment-separator {
  margin: 14px 0;
  color: #6d7f89;
  font-size: .72rem;
  text-align: center;
}

body:not(.inner-page) #quoteForm #confirmStripePayment.payment-primary-action {
  min-height: 56px;
  margin-top: 14px;
  border: 1px solid #17324a !important;
  border-radius: 14px !important;
  background: #132d40 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(19,45,64,.16) !important;
}

body:not(.inner-page) #quoteForm #confirmStripePayment.payment-primary-action:hover {
  background: #0c2333 !important;
}

body:not(.inner-page) #quoteForm .payment-safety-note {
  margin: 15px 0 0;
  font-size: .74rem;
  line-height: 1.5;
  text-align: center;
}

body:not(.inner-page) #quoteForm .payment-wallet-note {
  margin: 5px 0 0;
  font-size: .68rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 900px) {
  body:not(.inner-page) #quoteForm .payment-method-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body:not(.inner-page) #quoteForm .payment-panel.payment-panel-premium {
    padding: 18px 14px !important;
    border-radius: 18px !important;
  }
  body:not(.inner-page) #quoteForm .payment-panel-heading {
    align-items: flex-start;
  }
  body:not(.inner-page) #quoteForm .payment-security-pill {
    font-size: .62rem;
    padding-inline: 8px;
  }
  body:not(.inner-page) #quoteForm .payment-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  body:not(.inner-page) #quoteForm .payment-method-card {
    min-height: 86px;
    padding: 12px 11px 11px !important;
    border-radius: 14px !important;
  }
  body:not(.inner-page) #quoteForm .payment-method-card.paypal-choice {
    grid-column: 1 / -1;
  }
  body:not(.inner-page) #quoteForm .embedded-checkout {
    padding: 13px;
    border-radius: 14px;
  }
  body:not(.inner-page) #quoteForm #confirmStripePayment.payment-primary-action {
    display: flex !important;
    grid-template-columns: none !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.inner-page) #quoteForm .payment-method-card {
    transition: none;
  }
  body:not(.inner-page) #quoteForm .payment-method-card:hover {
    transform: none;
  }
}


/* Official payment brand artwork. Never redraw, recolour or distort the marks. */
body:not(.inner-page) #quoteForm .payment-method-card .payment-brand-logo {
  display: block;
  width: auto !important;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}
body:not(.inner-page) #quoteForm .payment-method-card .visa-official-logo {
  width: 92px !important;
  height: auto !important;
  padding: 5px 10px;
  box-sizing: content-box;
}
body:not(.inner-page) #quoteForm .payment-method-card .apple-pay-official-logo {
  width: auto !important;
  height: 34px !important;
  aspect-ratio: 165.52107 / 105.9651;
}
body:not(.inner-page) #quoteForm .mastercard-official-logo {
  position: relative;
  display: block;
  width: 92px;
  height: 45px;
  overflow: hidden;
  flex: 0 0 auto;
}
body:not(.inner-page) #quoteForm .mastercard-official-logo img {
  position: absolute;
  width: 242px !important;
  height: auto !important;
  max-width: none !important;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
/* The Mastercard Brand Center source includes generous canvas whitespace.
   The viewport removes only excess canvas and retains clear space around the official symbol. */
body:not(.inner-page) #quoteForm .payment-method-card.card-network {
  align-items: center !important;
  text-align: center;
}
body:not(.inner-page) #quoteForm .payment-method-card.card-network .payment-method-type,
body:not(.inner-page) #quoteForm .payment-method-card.card-network .payment-method-action {
  align-self: stretch;
  text-align: left;
}
