body.cc-payment-page {
  --cc-dark-chocolate: var(--dark-chocolate, #3d1c11);
  --cc-burnt-orange: var(--burnt-orange, #d75d25);
  --cc-light-stone: var(--light-stone-grey, #ebe8df);
}

body.cc-payment-page .cc-payment-summary-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  clear: both;
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(28px, 3vw, 40px);
}

body.cc-payment-page .cc-payment-summary-header > :is(h1, h2, h3) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
}

body.cc-payment-page .cc-payment-edit-link {
  position: static !important;
  inset: auto !important;
  display: inline-flex;
  box-sizing: border-box;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  float: none !important;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--cc-dark-chocolate);
  border-radius: 999px;
  color: var(--cc-dark-chocolate);
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transform: none !important;
}

body.cc-payment-page .cc-payment-edit-link:hover {
  background: var(--cc-dark-chocolate);
  color: #fff;
}

body.cc-payment-page .cc-payment-edit-link:focus-visible {
  outline: 3px solid var(--cc-burnt-orange);
  outline-offset: 3px;
}

body.cc-payment-page .cc-payment-submit {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  box-sizing: border-box;
  width: min(100%, 360px);
  min-height: 58px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 15px 28px;
  border: 2px solid var(--cc-burnt-orange) !important;
  border-radius: 999px;
  background-color: var(--cc-burnt-orange) !important;
  box-shadow: 0 8px 22px rgb(61 28 17 / 18%);
  color: #fff !important;
  cursor: pointer;
  font: inherit;
  font-size: clamp(17px, 2vw, 19px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: background-color 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease, transform 160ms ease;
}

body.cc-payment-page .cc-payment-submit:hover {
  border-color: var(--cc-dark-chocolate) !important;
  background-color: var(--cc-dark-chocolate) !important;
  box-shadow: 0 10px 26px rgb(61 28 17 / 24%);
  color: #fff !important;
  transform: translateY(-1px);
}

body.cc-payment-page .cc-payment-submit:focus-visible {
  outline: 3px solid var(--cc-dark-chocolate);
  outline-offset: 3px;
}

body.cc-payment-page .cc-payment-submit:active {
  box-shadow: 0 5px 14px rgb(61 28 17 / 18%);
  transform: translateY(0);
}

body.cc-payment-page .cc-payment-submit:disabled,
body.cc-payment-page .cc-payment-submit[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

@media (max-width: 600px) {
  body.cc-payment-page .cc-payment-submit {
    width: 100%;
    min-height: 56px;
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cc-payment-page .cc-payment-submit {
    transition: none;
  }
}
