:root {
  --cg-blue: #2d337f;
  --cg-blue-dark: #171b55;
  --cg-gold: #d4af37;
  --cg-gold-soft: #f7efd3;
  --cg-ink: #1f2347;
  --cg-muted: rgba(31, 35, 71, .68);
  --cg-border: rgba(45, 51, 127, .14);
  --cg-panel: #ffffff;
  --cg-page: #f8f6f0;
  --cg-shadow: 0 18px 45px rgba(31, 35, 71, .10);
  --cg-focus: 0 0 0 4px rgba(212, 175, 55, .22);
}

body.checkout-index-index,
body.customer-account-create,
body.customer-account-login {
  color: var(--cg-ink);
}

body.checkout-index-index .page-main,
body.customer-account-create .page-main,
body.customer-account-login .page-main {
  background:
    radial-gradient(circle at 10% 0%, rgba(212, 175, 55, .14), transparent 28%),
    linear-gradient(180deg, #fffdf7 0%, #f8f6f0 100%);
}

.cg-account-benefit-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(248, 242, 222, .92));
  border: 1px solid rgba(212, 175, 55, .36);
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(31, 35, 71, .09);
  color: var(--cg-ink);
  margin: 0 0 22px;
  overflow: hidden;
  padding: 20px 22px;
  position: relative;
}

.cg-account-benefit-card:before {
  background: linear-gradient(180deg, var(--cg-gold), rgba(212, 175, 55, .35));
  bottom: 18px;
  content: "";
  left: 0;
  position: absolute;
  top: 18px;
  width: 4px;
}

.cg-account-benefit-card__eyebrow {
  color: var(--cg-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.cg-account-benefit-card strong {
  color: var(--cg-blue-dark);
  display: block;
  font-size: 20px;
  letter-spacing: -.01em;
  line-height: 1.25;
  margin: 0 0 8px;
}

.cg-account-benefit-card p {
  color: var(--cg-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.cg-account-benefit-card a:not(.action) {
  color: var(--cg-blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cg-account-benefit-card__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px !important;
}

.cg-account-benefit-card .action.primary,
.cg-account-benefit-card .action.secondary {
  align-items: center;
  border-radius: 999px !important;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px !important;
  text-decoration: none !important;
}

.cg-account-benefit-card .action.primary {
  background: var(--cg-blue) !important;
  border: 1px solid var(--cg-blue) !important;
  color: #fff !important;
}

.cg-account-benefit-card .action.primary:hover {
  background: var(--cg-blue-dark) !important;
}

.cg-account-benefit-card .action.secondary {
  background: #fff !important;
  border: 1px solid rgba(45, 51, 127, .18) !important;
  color: var(--cg-blue) !important;
}

body.checkout-index-index .checkout-container {
  --cg-checkout-gap: 22px;
}

body.checkout-index-index .opc-wrapper {
  background: transparent;
}

body.checkout-index-index .checkout-shipping-address,
body.checkout-index-index .checkout-shipping-method,
body.checkout-index-index .checkout-payment-method {
  background: var(--cg-panel);
  border: 1px solid var(--cg-border);
  border-radius: 24px;
  box-shadow: var(--cg-shadow);
  margin-bottom: 24px;
  overflow: hidden;
  padding: 24px;
}

body.checkout-index-index .step-title {
  color: var(--cg-blue-dark) !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 8px !important;
  padding-bottom: 0 !important;
}

body.checkout-index-index .cg-step-note {
  color: var(--cg-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 18px;
}

body.checkout-index-index .form.form-login,
body.checkout-index-index #co-shipping-form,
body.customer-account-create .form-create-account,
body.customer-account-login .block-customer-login {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(45, 51, 127, .12);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(31, 35, 71, .07);
  padding: 22px;
}

body.checkout-index-index #customer-email-fieldset {
  margin-bottom: 0;
}

body.checkout-index-index #shipping-new-address-form.fieldset.address {
  display: grid;
  gap: 16px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

body.checkout-index-index #shipping-new-address-form .field.street,
body.checkout-index-index #shipping-new-address-form .field[name="shippingAddress.company"] {
  grid-column: 1 / -1;
}

body.checkout-index-index .field,
body.customer-account-create .field,
body.customer-account-login .field {
  margin-bottom: 0;
}

body.checkout-index-index .field .label,
body.customer-account-create .field .label,
body.customer-account-login .field .label {
  color: var(--cg-blue-dark) !important;
  display: block;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .055em;
  margin: 0 0 7px !important;
  text-transform: uppercase;
}

body.checkout-index-index input.input-text,
body.checkout-index-index select.select,
body.checkout-index-index textarea.input-text,
body.customer-account-create input.input-text,
body.customer-account-create select.select,
body.customer-account-create textarea.input-text,
body.customer-account-login input.input-text {
  background: #fff !important;
  border: 1px solid rgba(45, 51, 127, .18) !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 0 rgba(31, 35, 71, .03) inset;
  color: var(--cg-ink) !important;
  font-size: 15px !important;
  height: 50px !important;
  line-height: 50px !important;
  padding: 0 14px !important;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
  width: 100%;
}

body.checkout-index-index textarea.input-text,
body.customer-account-create textarea.input-text {
  height: auto !important;
  line-height: 1.5 !important;
  min-height: 110px;
  padding-top: 12px !important;
}

body.checkout-index-index input.input-text:focus,
body.checkout-index-index select.select:focus,
body.checkout-index-index textarea.input-text:focus,
body.customer-account-create input.input-text:focus,
body.customer-account-create select.select:focus,
body.customer-account-create textarea.input-text:focus,
body.customer-account-login input.input-text:focus {
  border-color: var(--cg-gold) !important;
  box-shadow: var(--cg-focus) !important;
  outline: 0 !important;
}

body.checkout-index-index .field-tooltip .field-tooltip-action {
  border-color: rgba(45, 51, 127, .20);
}

body.checkout-index-index .field-tooltip-content {
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(31, 35, 71, .14);
}

body.checkout-index-index .note,
body.customer-account-create .note,
body.customer-account-login .note {
  color: rgba(31, 35, 71, .62);
  display: block;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 7px;
}

/* Amasty Social Login: premium styling without editing vendor files */
body.checkout-index-index div[class*="amsl-socials"],
body.customer-account-create div[class*="amsl-socials"],
body.customer-account-login div[class*="amsl-socials"] {
  background: linear-gradient(135deg, #ffffff, #fbf8ee) !important;
  border: 1px solid rgba(45, 51, 127, .14) !important;
  border-radius: 22px !important;
  box-shadow: 0 16px 36px rgba(31, 35, 71, .08) !important;
  box-sizing: border-box !important;
  clear: both !important;
  color: var(--cg-ink) !important;
  display: block !important;
  float: none !important;
  margin: 18px 0 22px !important;
  max-width: 560px !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 18px !important;
  position: relative !important;
  text-align: left !important;
  transform: none !important;
  width: 100% !important;
  z-index: 1 !important;
}

body.customer-account-create div[class*="amsl-socials"],
body.customer-account-login div[class*="amsl-socials"] {
  margin-left: auto !important;
  margin-right: auto !important;
}

body.checkout-index-index div[class*="amsl-socials"] .amsl-separator,
body.customer-account-create div[class*="amsl-socials"] .amsl-separator,
body.customer-account-login div[class*="amsl-socials"] .amsl-separator {
  display: none !important;
}

body.checkout-index-index div[class*="amsl-socials"] .amsl-social-wrapper,
body.checkout-index-index div[class*="amsl-socials"] .amsl-social-login,
body.customer-account-create div[class*="amsl-socials"] .amsl-social-wrapper,
body.customer-account-create div[class*="amsl-socials"] .amsl-social-login,
body.customer-account-login div[class*="amsl-socials"] .amsl-social-wrapper,
body.customer-account-login div[class*="amsl-socials"] .amsl-social-login {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  float: none !important;
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  position: static !important;
  width: 100% !important;
}

body.checkout-index-index div[class*="amsl-socials"] .amsl-title,
body.customer-account-create div[class*="amsl-socials"] .amsl-title,
body.customer-account-login div[class*="amsl-socials"] .amsl-title {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--cg-blue-dark) !important;
  display: block !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  height: auto !important;
  letter-spacing: -.01em;
  line-height: 1.25 !important;
  margin: 0 0 6px !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  position: static !important;
  text-align: left !important;
  transform: none !important;
  width: auto !important;
}

body.checkout-index-index div[class*="amsl-socials"] .amsl-title.-short,
body.customer-account-create div[class*="amsl-socials"] .amsl-title.-short,
body.customer-account-login div[class*="amsl-socials"] .amsl-title.-short {
  display: none !important;
}

body.checkout-index-index .cg-social-note,
body.customer-account-create .cg-social-note,
body.customer-account-login .cg-social-note {
  color: var(--cg-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 14px;
}

body.checkout-index-index div[class*="amsl-socials"] .amsl-buttons,
body.customer-account-create div[class*="amsl-socials"] .amsl-buttons,
body.customer-account-login div[class*="amsl-socials"] .amsl-buttons {
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: 1fr !important;
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  width: 100% !important;
}

body.checkout-index-index div[class*="amsl-socials"] .amsl-button-wrapper,
body.customer-account-create div[class*="amsl-socials"] .amsl-button-wrapper,
body.customer-account-login div[class*="amsl-socials"] .amsl-button-wrapper {
  display: block !important;
  float: none !important;
  height: auto !important;
  margin: 0 !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

body.checkout-index-index div[class*="amsl-socials"] .amsl-button,
body.customer-account-create div[class*="amsl-socials"] .amsl-button,
body.customer-account-login div[class*="amsl-socials"] .amsl-button {
  align-items: center !important;
  background: #fff !important;
  border: 1px solid rgba(45, 51, 127, .16) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 20px rgba(31, 35, 71, .07) !important;
  box-sizing: border-box !important;
  color: var(--cg-ink) !important;
  display: flex !important;
  float: none !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  gap: 12px !important;
  height: auto !important;
  justify-content: flex-start !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  min-height: 52px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding: 0 16px !important;
  position: relative !important;
  text-align: left !important;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease !important;
  width: 100% !important;
}

body.checkout-index-index div[class*="amsl-socials"] .amsl-button:hover,
body.customer-account-create div[class*="amsl-socials"] .amsl-button:hover,
body.customer-account-login div[class*="amsl-socials"] .amsl-button:hover {
  border-color: rgba(212, 175, 55, .66) !important;
  box-shadow: 0 12px 26px rgba(31, 35, 71, .12) !important;
  transform: translateY(-1px);
}

body.checkout-index-index div[class*="amsl-socials"] .amsl-button.-apple,
body.customer-account-create div[class*="amsl-socials"] .amsl-button.-apple,
body.customer-account-login div[class*="amsl-socials"] .amsl-button.-apple {
  background: #111827 !important;
  border-color: #111827 !important;
  color: #fff !important;
}

body.checkout-index-index div[class*="amsl-socials"] .amsl-button .amsl-social-icon,
body.customer-account-create div[class*="amsl-socials"] .amsl-button .amsl-social-icon,
body.customer-account-login div[class*="amsl-socials"] .amsl-button .amsl-social-icon {
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  display: block !important;
  flex: 0 0 28px !important;
  height: 28px !important;
  margin: 0 !important;
  min-width: 28px !important;
  position: static !important;
  transform: none !important;
  width: 28px !important;
}

body.checkout-index-index div[class*="amsl-socials"] .amsl-button .amsl-text,
body.customer-account-create div[class*="amsl-socials"] .amsl-button .amsl-text,
body.customer-account-login div[class*="amsl-socials"] .amsl-button .amsl-text {
  color: inherit !important;
  display: block !important;
  flex: 1 1 auto !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  opacity: 1 !important;
  padding: 0 !important;
  position: static !important;
  text-align: left !important;
  white-space: normal !important;
  width: auto !important;
}

body.customer-account-create .form-create-account {
  margin: 0 auto 34px;
  max-width: 760px;
}

body.customer-account-create .form-create-account .fieldset {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
}

body.customer-account-create .form-create-account .legend {
  border: 0;
  color: var(--cg-blue-dark);
  display: block;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 0 0 18px;
  padding: 0;
}

body.customer-account-create .form-create-account .actions-toolbar,
body.customer-account-login .actions-toolbar {
  margin-top: 20px;
}

body.customer-account-create .action.primary,
body.customer-account-login .action.primary,
body.checkout-index-index .button.action.continue.primary {
  background: var(--cg-blue) !important;
  border: 1px solid var(--cg-blue) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 26px rgba(45, 51, 127, .18) !important;
  color: #fff !important;
  font-weight: 900 !important;
  min-height: 46px;
  padding: 0 22px !important;
}

body.customer-account-create .action.primary:hover,
body.customer-account-login .action.primary:hover,
body.checkout-index-index .button.action.continue.primary:hover {
  background: var(--cg-blue-dark) !important;
  border-color: var(--cg-blue-dark) !important;
}

/* Shipping-rate placeholder when UPS has not received a complete destination yet */
.cg-shipping-address-prompt {
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(45, 51, 127, .06), rgba(212, 175, 55, .12));
  border: 1px solid rgba(45, 51, 127, .12);
  border-radius: 16px;
  color: var(--cg-ink);
  display: flex;
  gap: 12px;
  line-height: 1.55;
  margin: 0 0 16px;
  padding: 16px;
}

.cg-shipping-address-prompt:before {
  align-items: center;
  background: var(--cg-blue);
  border-radius: 999px;
  color: #fff;
  content: "1";
  display: inline-flex;
  flex: 0 0 26px;
  font-size: 13px;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  margin-top: 1px;
  width: 26px;
}

.cg-shipping-address-prompt strong {
  color: var(--cg-blue-dark);
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

.cg-shipping-address-prompt span {
  color: var(--cg-muted);
  display: block;
  font-size: 14px;
}

#checkout-shipping-method-load.cg-waiting-for-address .table-checkout-shipping-method {
  display: none !important;
}

body.cg-shipping-waiting #shipping-method-buttons-container {
  display: none !important;
}

@media (max-width: 767px) {
  body.checkout-index-index .checkout-shipping-address,
  body.checkout-index-index .checkout-shipping-method,
  body.checkout-index-index .checkout-payment-method,
  body.checkout-index-index #co-shipping-form,
  body.checkout-index-index .form.form-login,
  body.customer-account-create .form-create-account,
  body.customer-account-login .block-customer-login {
    border-radius: 18px;
    padding: 18px;
  }

  body.checkout-index-index #shipping-new-address-form.fieldset.address {
    grid-template-columns: 1fr;
  }

  .cg-account-benefit-card strong,
  body.checkout-index-index .step-title {
    font-size: 20px !important;
  }

  .cg-account-benefit-card__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cg-account-benefit-card .action.primary,
  .cg-account-benefit-card .action.secondary {
    width: 100%;
  }
}
