.payment_box.kp-legacy-checkout-host,
.payment_box.kp-legacy-checkout-host::before,
.wc_payment_method.kp-legacy-checkout-item .payment_box,
.wc_payment_method.kp-legacy-checkout-item .payment_box::before {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.payment_box.kp-legacy-checkout-host {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

.kp-legacy-checkout {
  --kp-input-color: #efefef;
  --kp-border-color: rgba(22, 22, 22, 0.1);
  --kp-muted-color: rgba(22, 22, 22, 0.68);
  --kp-radius-control: 6px;
  --kp-shadow-soft: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(100vw, 610px);
  max-width: 610px;
  height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--kp-surface-color, #ffffff);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  color: var(--kp-text-color);
  font-size: 14px;
  line-height: 1.42857143;
  font-family: "PPRadioGrotesk-Regular", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__shell {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 44px 42px 28px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: none;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.kp-legacy-checkout__shell::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.kp-legacy-checkout__view {
  min-height: 100%;
}

.kp-legacy-checkout__view--checkout,
.kp-legacy-checkout__view--settings {
  display: flex;
  flex-direction: column;
}

.kp-legacy-checkout__view[hidden] {
  display: none !important;
}

.kp-legacy-checkout [hidden] {
  display: none !important;
}

body.admin-bar .kp-legacy-checkout {
  top: 32px;
  height: calc(100vh - 32px);
}

.kp-legacy-checkout__grid,
.kp-legacy-checkout__main,
.kp-legacy-checkout__section,
.kp-legacy-checkout__auth-panel,
.kp-legacy-checkout__payment-card,
.kp-legacy-checkout__address-manage {
  display: block;
}

.kp-legacy-checkout__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--kp-input-color);
}

.kp-legacy-checkout__header--authenticated {
  display: block;
}

.kp-legacy-checkout__brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.kp-legacy-checkout__logo-row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.kp-legacy-checkout__brand-mark {
  width: auto;
  max-height: 42px;
}

.kp-legacy-checkout__header--authenticated .kp-legacy-checkout__brand-mark {
  max-height: 42px;
}

.kp-legacy-checkout__eyebrow,
.kp-legacy-checkout__badge {
  display: none !important;
}

.kp-legacy-checkout__title {
  margin: 0;
  color: var(--kp-text-color);
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  font-family: "PPRadioGrotesk-Ultrabold", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__header-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.kp-legacy-checkout__header-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.kp-legacy-checkout__header--authenticated .kp-legacy-checkout__title {
  font-size: 34px;
  line-height: 1;
}

.kp-legacy-checkout__header-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
}

.kp-legacy-checkout__header--authenticated .kp-legacy-checkout__header-side {
  justify-content: flex-end;
  padding-bottom: 6px;
}

.kp-legacy-checkout__signed-in {
  margin: 0;
  color: var(--kp-text-color);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 300;
  font-family: "PPRadioGrotesk-Light", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__signed-in-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kp-legacy-checkout__header--authenticated .kp-legacy-checkout__signed-in-group {
  gap: 14px;
}

.kp-legacy-checkout__signed-in-separator {
  color: var(--kp-muted-color);
}

.kp-legacy-checkout__header-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--kp-text-color);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 300;
  font-family: "PPRadioGrotesk-Light", "Helvetica Neue", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.kp-legacy-checkout__header-link:hover,
.kp-legacy-checkout__header-link:focus {
  color: var(--kp-button-color);
  text-decoration: none;
}

.kp-legacy-checkout__currency-control {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 148px;
  color: var(--kp-text-color);
}

.kp-legacy-checkout__currency-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: right;
}

.kp-legacy-checkout__currency-toggle:focus-visible {
  outline: 2px solid var(--kp-button-color);
  outline-offset: 6px;
  border-radius: 4px;
}

.kp-legacy-checkout__currency-arrow {
  width: 12px;
  height: 12px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translateY(-18%) rotate(45deg);
  transition: transform 0.2s ease;
}

.kp-legacy-checkout__currency-control.is-open .kp-legacy-checkout__currency-arrow {
  transform: translateY(16%) rotate(-135deg);
}

.kp-legacy-checkout__currency-display {
  color: var(--kp-text-color);
  font-size: 21px;
  line-height: 1.1;
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
  pointer-events: none;
}

.kp-legacy-checkout__header--authenticated .kp-legacy-checkout__currency-display {
  font-size: 21px;
  line-height: 1;
}

.kp-legacy-checkout__currency-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 164px;
  max-height: 300px;
  padding: 0 0 8px;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--kp-surface-color, #ffffff);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

.kp-legacy-checkout__currency-menu::-webkit-scrollbar-track {
  background-color: #f5f5f5;
}

.kp-legacy-checkout__currency-menu::-webkit-scrollbar {
  width: 3px;
  background-color: #f5f5f5;
}

.kp-legacy-checkout__currency-menu::-webkit-scrollbar-thumb {
  background-color: var(--kp-button-color);
  border: 3px solid var(--kp-button-color);
}

.kp-legacy-checkout__currency-search {
  width: 100%;
  margin: 0;
  padding: 10px 14px 8px;
  border: 0;
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 0 !important;
  background: var(--kp-surface-color, #ffffff);
  box-shadow: none !important;
  color: var(--kp-text-color);
  font-size: 14px;
  font-family: "PPRadioGrotesk-Regular", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__currency-search:focus {
  outline: 0;
}

.kp-legacy-checkout__currency-star {
  margin-bottom: 18px;
  padding: 8px 14px 0;
  color: #aaaaaa;
  text-align: left;
}

.kp-legacy-checkout__currency-star-icon {
  color: var(--kp-button-color);
  font-size: 16px;
  line-height: 1;
}

.kp-legacy-checkout__currency-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kp-legacy-checkout__currency-item {
  margin: 0;
  padding: 0;
}

.kp-legacy-checkout__currency-option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 3px 15px 3px;
  border: 0;
  background: transparent;
  color: var(--kp-text-color);
  text-align: left;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.5;
  font-family: "PPRadioGrotesk-Regular", "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.kp-legacy-checkout__currency-option:hover,
.kp-legacy-checkout__currency-option:focus-visible,
.kp-legacy-checkout__currency-option.is-active {
  background: #d9d9d9;
  outline: 0;
}

.kp-legacy-checkout__currency-divider {
  width: calc(100% - 16px);
  margin: 10px 8px 0;
  padding-top: 5px;
  border-top: 2px solid var(--kp-input-color);
  color: var(--kp-button-color);
  text-align: left;
  font-size: 13px;
  line-height: 1.2;
}

.kp-legacy-checkout__currency-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none !important;
  opacity: 0;
  pointer-events: none;
  appearance: none;
}

.kp-legacy-checkout__section {
  gap: 13px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.kp-legacy-checkout__main > .kp-legacy-checkout__section + .kp-legacy-checkout__section {
  margin-top: 21px;
}

.kp-legacy-checkout__settings-brand-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 26px;
}

.kp-legacy-checkout__settings-wallet-root {
  display: grid;
  gap: 18px;
}

.kp-legacy-checkout__settings-panel {
  display: grid;
  gap: 18px;
}

.kp-legacy-checkout__settings-page-copy {
  display: grid;
  gap: 10px;
}

.kp-legacy-checkout__settings-page-copy--narrow {
  max-width: 30rem;
}

.kp-legacy-checkout__settings-page-copy p {
  margin: 0;
  color: var(--kp-text-color);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 300;
  font-family: "PPRadioGrotesk-Light", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__settings-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--kp-button-color);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 400;
  font-family: "PPRadioGrotesk-Regular", "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
}

.kp-legacy-checkout__settings-divider {
  height: 2px;
  background: var(--kp-input-color);
}

.kp-legacy-checkout__settings-group {
  display: grid;
  gap: 12px;
}

.kp-legacy-checkout__settings-group-label {
  color: var(--kp-muted-color);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 400;
  font-family: "PPRadioGrotesk-Regular", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.08em;
}

.kp-legacy-checkout__settings-card-button,
.kp-legacy-checkout__settings-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 86px;
  padding: 18px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--kp-input-color);
  text-align: left;
}

.kp-legacy-checkout__settings-card-button {
  cursor: pointer;
}

.kp-legacy-checkout__settings-card-copy {
  display: grid;
  gap: 6px;
}

.kp-legacy-checkout__settings-card-copy strong {
  color: var(--kp-text-color);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__settings-card-copy span {
  color: var(--kp-text-color);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 300;
  font-family: "PPRadioGrotesk-Light", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__settings-card-arrow {
  color: var(--kp-text-color);
  font-size: 34px;
  line-height: 1;
  font-weight: 300;
}

.kp-legacy-checkout__settings-row-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 78px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.kp-legacy-checkout__settings-row-copy {
  display: grid;
  gap: 6px;
}

.kp-legacy-checkout__settings-row-copy strong {
  color: var(--kp-text-color);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__settings-row-copy span {
  color: var(--kp-text-color);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 300;
  font-family: "PPRadioGrotesk-Light", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__settings-link-button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--kp-button-color);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.kp-legacy-checkout__settings-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
}

.kp-legacy-checkout__settings-confirm-actions--single {
  justify-content: flex-end;
}

.kp-legacy-checkout__settings-confirm-actions .kp-legacy-checkout__button {
  min-width: 256px;
}

.kp-legacy-checkout__settings-danger-copy {
  color: var(--kp-text-color);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__settings-section-heading {
  color: var(--kp-text-color);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__section-head,
.kp-legacy-checkout__saved-cards-head,
.kp-legacy-checkout__wallet-card-head,
.kp-legacy-checkout__wallet-method-head {
  display: block;
}

.kp-legacy-checkout__section-head > div > .kp-legacy-checkout__muted {
  display: none;
}

.kp-legacy-checkout__section-head h3,
.kp-legacy-checkout__saved-cards-title,
.kp-legacy-checkout__wallet-card-head h4,
.kp-legacy-checkout__wallet-method-head h5,
.kp-legacy-checkout__signup-head h4,
.kp-legacy-checkout__address-summary-block h4 {
  margin: 0;
  color: var(--kp-text-color);
  font-size: 21px;
  line-height: 1.15;
  font-weight: 300;
  font-family: "PPRadioGrotesk-Regular", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout label,
.kp-legacy-checkout__field label,
.kp-legacy-checkout .card_label-1,
.kp-legacy-checkout .card_number,
.kp-legacy-checkout .card_details_heading,
.kp-legacy-checkout__account-label {
  display: inline-block;
  margin: 0 0 8px;
  color: var(--kp-text-color);
  font-size: 13px;
  line-height: 1.1;
  font-weight: 300;
  font-family: "PPRadioGrotesk-Light", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.kp-legacy-checkout__muted,
.kp-legacy-checkout__status,
.kp-legacy-checkout__error,
.kp-legacy-checkout__summary-unit-price,
.kp-legacy-checkout__wallet-method-head p,
.kp-legacy-checkout__wallet-review-copy span,
.kp-legacy-checkout__wallet-session-check,
.kp-legacy-checkout__address-meta,
.kp-legacy-checkout__address-summary-block p,
.kp-legacy-checkout__copyright,
.kp-legacy-checkout #credit-card-type-text {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 300;
  font-family: "PPRadioGrotesk-Light", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__muted,
.kp-legacy-checkout__signed-in,
.kp-legacy-checkout__summary-qty,
.kp-legacy-checkout__summary-unit-price,
.kp-legacy-checkout__wallet-method-head p,
.kp-legacy-checkout__wallet-review-copy span,
.kp-legacy-checkout__wallet-session-check,
.kp-legacy-checkout__address-meta,
.kp-legacy-checkout__address-summary-block p,
.kp-legacy-checkout #credit-card-type-text {
  color: var(--kp-muted-color);
}

.kp-legacy-checkout__status {
  color: var(--kp-success-color);
}

.kp-legacy-checkout__error {
  color: var(--kp-error-color);
}

/* Validation message that renders BELOW its field(s) — small gap above it so it
 * reads as attached to the field it follows (not the next one). */
.kp-legacy-checkout__error--below {
  margin-top: 5px;
}

.kp-legacy-checkout__error--below[hidden] {
  margin-top: 0;
}

/* Per-field validation message (card number / expiry / CVV / cardholder). Sits
 * tight under its own field, like the email/phone field's message. */
.kp-legacy-checkout__field-error {
  display: block;
  margin: 5px 0 0;
  color: var(--kp-error-color);
}

.kp-legacy-checkout__field-error[hidden] {
  display: none;
  margin: 0;
}

.kp-legacy-checkout__field,
.kp-legacy-checkout__wallet-form,
.kp-legacy-checkout__wallet-inline-panel,
.kp-legacy-checkout__wallet-otp,
.kp-legacy-checkout__login-panel,
.kp-legacy-checkout__recovery-panel,
.kp-legacy-checkout__otp-panels,
.kp-legacy-checkout__signup-verification,
.kp-legacy-checkout__address-summary,
.kp-legacy-checkout__wallet-review-list,
.kp-legacy-checkout__wallet-session-list,
.kp-legacy-checkout__wallet-grid,
.kp-legacy-checkout__wallet-methods,
.kp-legacy-checkout__saved-cards,
.kp-legacy-checkout__contact-grid,
.kp-legacy-checkout__address-form-grid,
.kp-legacy-checkout__saved-cards-list {
  gap: 13px;
}

.kp-legacy-checkout__contact-grid,
.kp-legacy-checkout__address-form-grid,
.kp-legacy-checkout__wallet-form--inline,
.kp-legacy-checkout__account-grid,
.kp-legacy-checkout__address-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kp-legacy-checkout__wallet-grid,
.kp-legacy-checkout__wallet-methods,
.kp-legacy-checkout__saved-cards {
  display: grid;
}

.kp-legacy-checkout__input,
.kp-legacy-checkout .krepling-hosted-field__mount,
.kp-legacy-checkout #card_holder_name,
.kp-legacy-checkout .card-information .form-control {
  width: 100%;
  min-height: 34px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--kp-input-color);
  box-shadow: none;
  color: var(--kp-text-color);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 300;
  font-family: "PPRadioGrotesk-Light", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout .krepling-hosted-field__mount,
.kp-legacy-checkout #card_holder_name {
  min-height: 34px;
  height: 34px;
  padding: 0 14px;
}

.kp-legacy-checkout .krepling-hosted-field__mount--card-number {
  padding-left: 45px;
}

.kp-legacy-checkout .krepling-hosted-field__mount--cvv {
  padding-right: 40px;
}

.kp-legacy-checkout textarea.kp-legacy-checkout__input {
  min-height: 96px;
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}

.kp-legacy-checkout select.kp-legacy-checkout__input {
  padding-right: 36px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 1px),
    calc(100% - 12px) calc(50% - 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.kp-legacy-checkout__input:focus,
.kp-legacy-checkout .krepling-hosted-field__mount:focus,
.kp-legacy-checkout #card_holder_name:focus {
  outline: none;
  border: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18) !important;
}

.kp-legacy-checkout__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--kp-button-color);
  box-shadow: none;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
  text-align: center;
}

.kp-legacy-checkout__button:hover,
.kp-legacy-checkout__button:focus {
  transform: none;
  color: #ffffff;
  opacity: 0.92;
}

.kp-legacy-checkout__button--secondary {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--kp-text-color);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}

.kp-legacy-checkout__button--secondary:hover,
.kp-legacy-checkout__button--secondary:focus {
  color: var(--kp-button-color);
  opacity: 1;
}

.kp-legacy-checkout__actions,
.kp-legacy-checkout__wallet-actions,
.kp-legacy-checkout__wallet-inline-actions,
.kp-legacy-checkout__address-toolbar,
.kp-legacy-checkout__signup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.kp-legacy-checkout__section--summary {
  margin-bottom: 21px;
}

.kp-legacy-checkout__section--summary .kp-legacy-checkout__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 55px;
  margin-bottom: 0;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--kp-input-color);
  cursor: pointer;
  transition: border-radius 220ms ease, box-shadow 220ms ease;
}

.kp-legacy-checkout__section--summary .kp-legacy-checkout__section-head::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border-right: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.kp-legacy-checkout__summary-head-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
}

.kp-legacy-checkout__summary-bag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 21px;
  color: var(--kp-text-color);
}

.kp-legacy-checkout__summary-bag svg {
  width: 21px;
  height: 24px;
}

.kp-legacy-checkout__section--summary .kp-legacy-checkout__section-head[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(-135deg);
}

.kp-legacy-checkout__summary-panel {
  display: block;
  max-height: 0;
  padding: 0 18px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  background: var(--kp-input-color);
  border-radius: 0 0 6px 6px;
  transition: max-height 320ms ease, padding 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.kp-legacy-checkout__section--summary[data-kp-summary-expanded="true"] .kp-legacy-checkout__section-head {
  border-radius: 6px 6px 0 0;
}

.kp-legacy-checkout__section--summary[data-kp-summary-expanded="true"] .kp-legacy-checkout__summary-panel {
  max-height: var(--kp-summary-panel-height, 48rem);
  padding: 0 18px 4px;
  opacity: 1;
  transform: none;
}

.kp-legacy-checkout__section--address-accordion {
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.kp-legacy-checkout__section--address-accordion .kp-legacy-checkout__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 55px;
  margin-bottom: 0;
  padding: 0 18px;
  cursor: pointer;
}

.kp-legacy-checkout__section--address-accordion .kp-legacy-checkout__section-head::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border-right: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.kp-legacy-checkout__section--address-accordion[data-kp-address-expanded="true"] .kp-legacy-checkout__section-head {
  border-bottom: 3px solid currentColor;
}

.kp-legacy-checkout__section--address-accordion[data-kp-address-expanded="true"] .kp-legacy-checkout__section-head::after {
  transform: translateY(2px) rotate(-135deg);
}

.kp-legacy-checkout__address-panel {
  display: block;
  max-height: 0;
  padding: 0 18px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 320ms ease, padding 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.kp-legacy-checkout__section--address-accordion[data-kp-address-expanded="true"] .kp-legacy-checkout__address-panel {
  max-height: var(--kp-address-panel-height, 48rem);
  padding: 0 18px 10px;
  opacity: 1;
  transform: none;
}

.kp-legacy-checkout__summary-meta {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.kp-legacy-checkout__total {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  text-align: left;
}

.kp-legacy-checkout__total > span {
  color: var(--kp-text-color);
  font-size: 21px;
  line-height: 1;
  font-weight: 300;
  font-family: "PPRadioGrotesk-Regular", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__total strong {
  color: var(--kp-text-color);
  font-size: 21px;
  line-height: 1;
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__summary-panel-title {
  margin: 0;
  padding: 10px 0 10px;
  border-top: 3px solid #ffffff;
  color: var(--kp-text-color);
  font-size: 15.11px;
  line-height: 1.2;
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__summary-list {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kp-legacy-checkout__section--summary .kp-legacy-checkout__summary-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 44px auto;
  grid-template-areas: "thumb copy qty total";
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #ffffff;
  justify-content: initial;
}

.kp-legacy-checkout__summary-thumb {
  grid-area: thumb;
  align-self: center;
  width: 36px;
}

.kp-legacy-checkout__summary-thumb img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: cover;
  margin: 0 !important;
  border: 1px solid var(--kp-button-color);
  border-radius: 4px;
}

.kp-legacy-checkout__summary-copy {
  grid-area: copy;
  display: grid;
  gap: 6px;
  min-width: 0;
  align-self: center;
}

.kp-legacy-checkout__summary-name,
.kp-legacy-checkout__summary-line-total,
.kp-legacy-checkout__summary-total-row dd,
.kp-legacy-checkout__account-card strong,
.kp-legacy-checkout__wallet-device strong,
.kp-legacy-checkout__wallet-review-copy strong,
.kp-legacy-checkout__saved-card-holder {
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__summary-name {
  font-size: 12px;
  line-height: 1.1;
  word-break: break-word;
}

.kp-legacy-checkout__summary-unit-price {
  font-size: 12px;
  line-height: 1.1;
  color: var(--kp-text-color);
}

.kp-legacy-checkout__summary-unit-price strong {
  font-size: 12px;
  white-space: nowrap;
}

.kp-legacy-checkout__summary-qty-wrap {
  grid-area: qty;
  display: flex;
  justify-content: center;
  align-self: center;
}

.kp-legacy-checkout__summary-qty-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  background: #333333;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__summary-line-total {
  grid-area: total;
  justify-self: end;
  align-self: center;
  min-width: max-content;
  text-align: right;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

.kp-legacy-checkout__summary-totals {
  display: block;
  gap: 0;
  margin: 0;
  padding-top: 0;
  border-top: 0;
}

.kp-legacy-checkout__section--summary .kp-legacy-checkout__summary-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 7px 0;
  border-bottom: 1px solid #ffffff;
}

.kp-legacy-checkout__summary-total-row dt,
.kp-legacy-checkout__summary-total-row dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
}

.kp-legacy-checkout__summary-total-row dd {
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
  white-space: nowrap;
}

.kp-legacy-checkout__summary-total-row--grand {
  border-bottom: 0;
}

.kp-legacy-checkout__summary-total-row--grand dt,
.kp-legacy-checkout__summary-total-row--grand dd {
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__summary-total-row--grand dt,
.kp-legacy-checkout__summary-total-row--grand dd {
  font-size: 15px;
}

.kp-legacy-checkout__notice,
.kp-legacy-checkout__verified,
.kp-legacy-checkout__signup-verification,
.kp-legacy-checkout__wallet-inline-panel,
.kp-legacy-checkout__wallet-card,
.kp-legacy-checkout__wallet-method,
.kp-legacy-checkout__wallet-device,
.kp-legacy-checkout__wallet-session-item,
.kp-legacy-checkout__wallet-review-item,
.kp-legacy-checkout__account-card,
.kp-legacy-checkout__address-card,
.kp-legacy-checkout__address-summary-block,
.kp-legacy-checkout__saved-card,
.kp-legacy-checkout__wallet-toggle {
  border-radius: 6px;
  box-shadow: none;
}

.kp-legacy-checkout__notice,
.kp-legacy-checkout__verified,
.kp-legacy-checkout__signup-verification {
  padding: 14px 16px;
  background: rgba(239, 239, 239, 0.75);
  border: 0;
}

.kp-legacy-checkout__notice strong,
.kp-legacy-checkout__verified-title {
  display: block;
  margin-bottom: 0.35rem;
}

.kp-legacy-checkout__otp {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(22, 22, 22, 0.08);
}

.kp-legacy-checkout__otp-shell {
  max-width: 420px;
  margin-bottom: 10px;
}

.kp-legacy-checkout__otp-box {
  min-height: 86px;
  background: var(--kp-input-color);
  border: 1px solid rgba(22, 22, 22, 0.12);
  border-radius: 6px;
  font-size: 35px;
  line-height: 1;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.08);
}

.kp-legacy-checkout__otp-box.is-active {
  border-color: var(--kp-button-color);
  box-shadow: 0 0 0 1px var(--kp-button-color), inset 0 0 5px rgba(0, 0, 0, 0.08);
}

.kp-legacy-checkout__recovery-option {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(22, 22, 22, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.kp-legacy-checkout__otp-support {
  justify-items: center;
  text-align: center;
}

.kp-legacy-checkout__otp-resend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.kp-legacy-checkout__otp-switch,
.kp-legacy-checkout__otp-recovery {
  display: flex;
  justify-content: center;
  width: 100%;
}

.kp-legacy-checkout__otp-guest-continue {
  width: 100%;
  max-width: 420px;
}

.kp-legacy-checkout__recovery-option-icon {
  width: 42px;
  min-width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kp-button-color);
}

.kp-legacy-checkout__recovery-option-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.kp-legacy-checkout__recovery-option-icon--support {
  color: var(--kp-text-color);
}

.kp-legacy-checkout__recovery-actions {
  display: grid;
  gap: var(--kp-space-3);
}

.kp-legacy-checkout__recovery-continue,
.kp-legacy-checkout__section--auth [data-kp-identifier-submit] {
  min-height: 52px;
  padding: 14px 20px;
}

.kp-legacy-checkout__recovery-back {
  width: 100%;
}

.kp-legacy-checkout__account-grid,
.kp-legacy-checkout__wallet-grid {
  gap: 14px;
}

.kp-legacy-checkout__wallet-grid {
  grid-template-columns: 1fr;
}

.kp-legacy-checkout__account-card,
.kp-legacy-checkout__wallet-card,
.kp-legacy-checkout__wallet-method,
.kp-legacy-checkout__wallet-device,
.kp-legacy-checkout__wallet-session-item,
.kp-legacy-checkout__wallet-review-item,
.kp-legacy-checkout__address-summary-block {
  padding: 14px 16px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  background: #ffffff;
}

.kp-legacy-checkout__wallet-card--danger {
  background: #fff7f6;
  border-color: rgba(217, 48, 37, 0.18);
}

.kp-legacy-checkout__wallet-badges,
.kp-legacy-checkout__wallet-card-head,
.kp-legacy-checkout__wallet-method-head {
  gap: 10px;
}

.kp-legacy-checkout__wallet-badge,
.kp-legacy-checkout__address-badge,
.kp-legacy-checkout__saved-card-default {
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0;
}

.kp-legacy-checkout__wallet-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.kp-legacy-checkout__wallet-toggle span {
  display: grid;
  gap: 0.2rem;
}

.kp-legacy-checkout__wallet-toggle small {
  color: var(--kp-muted-color);
  font-size: 13px;
  line-height: 1.4;
}

.kp-legacy-checkout__wallet-toggle input {
  width: 74px;
  height: 38px;
  margin: 0;
  border: 0;
  border-radius: 34px;
  background: var(--kp-input-color);
  appearance: none;
  position: relative;
  cursor: pointer;
}

.kp-legacy-checkout__wallet-toggle input::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.4s ease;
}

.kp-legacy-checkout__wallet-toggle input:checked {
  background: var(--kp-button-color);
}

.kp-legacy-checkout__wallet-toggle input:checked::before {
  transform: translateX(32px);
}

.kp-legacy-checkout__address-card,
.kp-legacy-checkout__saved-card {
  padding: 14px 16px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  background: #ffffff;
  text-align: left;
}

.kp-legacy-checkout__address-card.is-active,
.kp-legacy-checkout__saved-card.is-active {
  border-color: var(--kp-button-color);
  box-shadow: 0 0 0 2px rgba(145, 23, 242, 0.12);
}

.kp-legacy-checkout__section--address .kp-legacy-checkout__badge,
.kp-legacy-checkout__saved-cards > .kp-legacy-checkout__saved-cards-head {
  display: none;
}

.kp-legacy-checkout__section--address .kp-legacy-checkout__address-list {
  gap: 0;
  padding: 0.35rem 0.5rem 0.5rem;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 6px;
  background: #ffffff;
  max-height: min(14.5rem, 42vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.kp-legacy-checkout__section--address .kp-legacy-checkout__address-card {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 0.9rem 0.35rem;
  border: 0;
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.kp-legacy-checkout__section--address .kp-legacy-checkout__address-card:last-child {
  border-bottom: 0;
}

.kp-legacy-checkout__section--address .kp-legacy-checkout__address-card.is-active {
  border-color: rgba(22, 22, 22, 0.08);
  box-shadow: none;
}

.kp-legacy-checkout__section--address .kp-legacy-checkout__address-meta {
  display: none;
}

.kp-legacy-checkout__section--address .kp-legacy-checkout__address-toolbar .kp-legacy-checkout__button {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--kp-text-color);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: underline;
}

.kp-legacy-checkout__section--address .kp-legacy-checkout__address-toolbar .kp-legacy-checkout__button:hover,
.kp-legacy-checkout__section--address .kp-legacy-checkout__address-toolbar .kp-legacy-checkout__button:focus {
  color: var(--kp-button-color);
}

.kp-legacy-checkout__section--address .kp-legacy-checkout__address-toolbar [data-kp-address-add] {
  order: -1;
  color: var(--kp-button-color);
}

.kp-legacy-checkout__section--address .kp-legacy-checkout__address-toolbar [data-kp-address-add]::before {
  content: "+";
  margin-right: 0.45rem;
}

/* Compact radio-row label is drawer-only; full-page keeps the card visual. */
.kp-legacy-checkout__card-row,
.kp-legacy-checkout__card-add-text {
  display: none;
}

.kp-legacy-checkout__section--payment .kp-legacy-checkout__saved-cards-list {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.65rem;
}

.kp-legacy-checkout__section--payment .kp-legacy-checkout__saved-card-item {
  flex: 0 0 226px;
}

.kp-legacy-checkout__section--payment .kp-legacy-checkout__saved-card {
  position: relative;
  min-height: 236px;
  padding: 0.95rem 1rem 1rem;
  border: 3px solid rgba(145, 23, 242, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, #c50dff 0%, #7700e2 100%);
  color: #ffffff;
  overflow: hidden;
}

.kp-legacy-checkout__section--payment .kp-legacy-checkout__saved-card.is-active {
  border-color: rgba(145, 23, 242, 0.55);
  box-shadow: 0 0 0 4px rgba(145, 23, 242, 0.12);
}

.kp-legacy-checkout__section--payment .kp-legacy-checkout__saved-card-holder,
.kp-legacy-checkout__section--payment .kp-legacy-checkout__saved-card-brand,
.kp-legacy-checkout__section--payment .kp-legacy-checkout__saved-card-meta {
  color: #ffffff;
}

.kp-legacy-checkout__section--payment .kp-legacy-checkout__saved-card-add {
  min-height: 236px;
  border-radius: 16px;
}

.kp-legacy-checkout__section--payment .kp-legacy-checkout__saved-cvv {
  width: min(304px, 100%);
  margin-left: auto;
  padding: 1.4rem 1.5rem;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] > .kp-legacy-checkout__section-head,
.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] > .kp-legacy-checkout__muted {
  display: none;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] {
  margin-top: 18px;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-cards {
  display: grid;
  grid-template-columns: max-content minmax(230px, 1fr);
  justify-content: start;
  align-items: start;
  column-gap: 32px;
  row-gap: 16px;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-cards-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 153px;
  justify-content: start;
  justify-items: start;
  align-items: start;
  align-content: start;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 5px 8px 10px 5px;
  scrollbar-width: thin;
  justify-self: start;
  align-self: start;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-item {
  width: 153px;
  min-width: 153px;
  max-width: none;
  display: block;
  margin: 0;
  align-self: start;
  justify-self: start;
  position: relative;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card {
  all: unset;
  box-sizing: border-box;
  position: relative;
  width: 153px;
  min-width: 153px;
  display: block;
  margin: 0;
  text-align: left;
  line-height: normal;
  cursor: pointer;
  transform: none;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card:hover {
  transform: none;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card::before {
  display: none;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card.active_card,
.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card.is-active {
  outline: 3px solid var(--kp-border-color, rgba(145, 23, 242, 0.55));
  border-radius: 8px;
  transition: unset;
  outline-offset: 5px;
  box-shadow: none;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-visual {
  position: relative;
  width: 100%;
  height: 247px;
  display: inline-block !important;
  border: none !important;
  padding: 11px;
  background: var(--kp-button-color);
  background-size: 155px;
  border-radius: 10px;
  overflow: hidden;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .img-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .company_logo {
  display: flex;
  align-items: center;
  width: calc(100% - 12px);
  position: absolute;
  z-index: 99;
  justify-content: space-between;
  top: 0;
  left: 0;
  padding: 4px;
  margin-left: 6px;
  gap: 8px;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .slikcard-move {
  position: static;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-holder {
  width: 90px;
  word-wrap: break-word;
  white-space: initial;
  text-transform: capitalize;
  font-family: 'PPRadioGrotesk-Bold';
  font-weight: 600;
  font-size: 13px;
  color: var(--kp-surface-color);
  line-height: 1.2;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-brand-image {
  position: static !important;
  width: auto !important;
  max-height: 35px;
  max-width: 56px;
  flex-shrink: 0;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .img-card1,
.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-mark-image {
  position: absolute !important;
  bottom: 4px !important;
  left: 4px;
  width: 50px;
  height: auto;
  max-height: 50px;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .card_exp_group,
.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .card_exp_group.kp-legacy-checkout__saved-card-bottom {
  display: flex;
  justify-content: end;
  position: absolute;
  right: 8px;
  bottom: 5px;
  flex-direction: column;
  z-index: 2;
  gap: 0;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-meta {
  display: block;
  text-align: right;
  font-size: 10px;
  color: var(--kp-surface-color);
  font-weight: 300;
  font-family: 'PPRadioGrotesk-Regular';
  line-height: 1.4;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .card-margin-details {
  margin-left: auto;
  margin-bottom: 0;
  line-height: 3;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .card_design {
  bottom: 0;
  position: absolute;
  left: 0;
  border-radius: 0 0 0 10px;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .card_design_mobile {
  display: none;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-pill.defaul_new_card {
  padding: 12px;
  position: absolute;
  border-radius: 8px;
  font-size: 14px;
  color: #00850d;
  background-color: #b4ffbc;
  text-align: center;
  margin: 6px;
  right: 0;
  bottom: 60px;
  min-height: auto;
  min-width: auto;
  font-weight: 400;
  text-transform: none;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-actions {
  width: 25px;
  position: absolute;
  top: 50px;
  right: 30px;
  z-index: 100;
  padding: 5px;
  margin: 0;
  opacity: 0;
  transition: 0.3s all ease-in;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-item:hover .kp-legacy-checkout__saved-card-actions,
.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-item:focus-within .kp-legacy-checkout__saved-card-actions {
  opacity: 1;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-remove {
  all: unset;
  box-sizing: border-box;
  width: 25px;
  min-width: 25px;
  height: 25px;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-remove:hover,
.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-remove:focus {
  color: #ffffff;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-remove-icon {
  width: 20px;
  height: 20px;
  filter: none;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-item--add {
  width: 153px;
  min-width: 153px;
  margin: 0;
  justify-self: start;
  align-self: start;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-add {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  min-height: 247px;
  height: 247px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--kp-input-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-add .card-top.text-center {
  position: static;
  top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-add-icon.circle.plus {
  width: 57px;
  height: 57px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-cvv {
  width: 230px;
  margin: 0;
  justify-self: start;
  align-self: start;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-cvv.cardcvv {
  background-color: var(--kp-surface-color);
  border-radius: 26px;
  text-align: center;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
  position: relative;
  top: 16px;
  border: 1px solid var(--kp-input-color);
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-cvv .cardcvv_input {
  padding-top: 30px;
  padding-bottom: 30px;
  position: relative;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-cvv label {
  display: block;
  margin-bottom: 10px !important;
  color: #000 !important;
  font-size: 14px !important;
  text-align: center;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-cvv .card_cvv_input_image {
  position: relative;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-cvv .card-cvv-style.getcvvval {
  border: 0;
  width: 150px !important;
  right: 34px;
  bottom: -28px;
  padding: 7px 12px !important;
  outline: none;
  color: var(--kp-text-color);
  margin: 0 !important;
  box-shadow: none;
  background-color: var(--kp-input-color);
  border-radius: 6px;
  padding-bottom: 5px !important;
  min-height: auto;
  height: auto;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-cvv #securitylogo {
  position: absolute;
  right: 45px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 999;
  line-height: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.kp-legacy-checkout__section--payment-saved[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-cvv .kp-legacy-checkout__input {
  min-height: auto;
  height: auto;
}

/* Keep the saved-card section aligned with the old plugin layout. */
.kp-legacy-checkout__section--payment[data-kp-payment-mode="saved"] > .kp-legacy-checkout__section-head,
.kp-legacy-checkout__section--payment[data-kp-payment-mode="saved"] > .kp-legacy-checkout__muted {
  display: none;
}

.kp-legacy-checkout__section--payment[data-kp-payment-mode="saved"] {
  margin-top: 18px;
}

.kp-legacy-checkout__section--payment[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-cards {
  display: block;
  width: 100%;
  max-width: 600px;
}

.kp-legacy-checkout__section--payment[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-cards-list {
  width: 100%;
  max-width: 600px;
  gap: 12px;
  padding: 5px 0 10px 1px;
}

.kp-legacy-checkout__section--payment[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-item,
.kp-legacy-checkout__section--payment[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-item--add {
  flex: 0 0 153px;
  width: 153px;
  min-width: 153px;
}

.kp-legacy-checkout__section--payment[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-item--add {
  margin-left: 1px;
}

.kp-legacy-checkout__section--payment[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-add {
  width: 100%;
  margin-left: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kp-legacy-checkout__section--payment[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-add .card-top.text-center {
  position: static;
  top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
}

.kp-legacy-checkout__section--payment[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-card-actions {
  top: 50px;
  right: 30px;
}

.kp-legacy-checkout__section--payment[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-cvv {
  width: 230px;
  max-width: 100%;
  margin: 0 0 0 auto;
  justify-self: auto;
  align-self: auto;
}

.kp-legacy-checkout__section--payment[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-cvv.cardcvv {
  top: 16px;
  margin-bottom: 40px;
}

.kp-legacy-checkout .krepling-guest-card-fields__title {
  display: none;
}

.kp-legacy-checkout .krepling-guest-card-fields--legacy .card-information {
  display: flex;
  width: 100%;
  gap: 0;
  align-items: start;
}

.kp-legacy-checkout .krepling-guest-card-fields--legacy .card-info-1,
.kp-legacy-checkout .krepling-guest-card-fields--legacy .card-info-2,
.kp-legacy-checkout .krepling-guest-card-fields--legacy .card-info-3 {
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.kp-legacy-checkout .krepling-guest-card-fields--legacy .card-info-1 {
  width: 60%;
  margin-right: 5px;
}

.kp-legacy-checkout .krepling-guest-card-fields--legacy .card-info-2 {
  width: 25%;
  margin-right: 5px;
}

.kp-legacy-checkout .krepling-guest-card-fields--legacy .card-info-3 {
  width: 25%;
}

.kp-legacy-checkout .krepling-guest-card-fields--legacy .card-holder {
  margin-top: 0;
}

.kp-legacy-checkout .krepling-guest-card-fields--legacy .krepling-hosted-field__label,
.kp-legacy-checkout .krepling-guest-card-fields--legacy .card_details_heading {
  display: block;
  margin-bottom: 8px !important;
  line-height: 12px;
}

/* The "Cancel" button under the new-card fields is a drawer-only affordance
 * (shown + styled in drawer.css). Hidden everywhere else, including the
 * full-page checkout, which keeps the header "Back to saved cards" button. */
.kp-legacy-checkout__newcard-cancel {
  display: none;
}

.kp-legacy-checkout .krepling-guest-card-fields--legacy .card_label-1 {
  display: block;
  margin: 0;
  line-height: 0;
}

.kp-legacy-checkout .krepling-guest-card-fields--legacy .card_label-1 .card_number {
  display: block;
  margin: 0 0 8px !important;
  line-height: 12px;
}

.kp-legacy-checkout #cardlogo {
  left: 7px;
  right: auto;
  bottom: 0;
  top: auto;
  transform: none;
  padding-left: 0;
}

.kp-legacy-checkout #securitylogo {
  right: 5px;
  bottom: 2px;
  top: auto;
  transform: none;
  margin-top: 0;
}

.kp-legacy-checkout #cardlogo svg,
.kp-legacy-checkout #securitylogo svg {
  max-width: 30px;
}

.kp-legacy-checkout #cardlogo img {
  max-width: 30px;
  border-radius: 4px;
  position: relative;
  bottom: 7px;
}

.kp-legacy-checkout #credit-card-type-text,
.kp-legacy-checkout #cardDetailsError,
.kp-legacy-checkout #cardHolderNameError {
  display: none;
  min-height: 0;
  margin: 0;
}

.kp-legacy-checkout #credit-card-type-text:not(:empty),
.kp-legacy-checkout #cardDetailsError:not(:empty),
.kp-legacy-checkout #cardHolderNameError:not(:empty) {
  display: block;
  margin-top: 8px;
}

.kp-legacy-checkout .krepling-guest-card-fields--legacy .krepling-hosted-field__mount {
  width: 100%;
  height: 34px;
  min-height: 34px;
  margin-top: 0;
  padding: 0;
  border-radius: 6px;
  background: var(--kp-input-color);
  box-shadow: none !important;
  overflow: hidden;
}

.kp-legacy-checkout .krepling-guest-card-fields--legacy .krepling-hosted-field__mount--card-number,
.kp-legacy-checkout .krepling-guest-card-fields--legacy .krepling-hosted-field__mount--cvv {
  padding: 0;
}

.kp-legacy-checkout .krepling-guest-card-fields--legacy .krepling-hosted-field__mount iframe {
  display: block;
  width: 100%;
  height: 34px;
  min-height: 34px;
  border: 0;
  background: transparent;
}

.kp-legacy-checkout .krepling-guest-card-fields--legacy .card-holder label {
  display: block;
  margin-bottom: 8px !important;
}

.kp-legacy-checkout .krepling-guest-card-fields--legacy #card_holder_name {
  padding: 6px 12px 5px;
  line-height: 1.2;
}

.kp-legacy-checkout .krepling-guest-card-fields--legacy #cardlogo {
  top: calc(100% - 17px);
  left: 0;
  bottom: auto;
  padding-left: 7px;
  line-height: 0;
  display: flex;
  align-items: center;
  transform: translateY(-50%);
}

.kp-legacy-checkout .krepling-guest-card-fields--legacy #cardlogo img {
  position: static;
  bottom: auto;
}

.kp-legacy-checkout .krepling-guest-card-fields--legacy #securitylogo {
  top: calc(100% - 17px);
  right: 5px;
  bottom: auto;
  line-height: 0;
  display: flex;
  align-items: center;
  transform: translateY(-50%);
}

.kp-legacy-checkout__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 300;
  font-family: "PPRadioGrotesk-Light", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__checkbox input {
  width: 24px;
  height: 24px;
  margin: 0;
  border: 0;
  border-radius: 7px;
  background: var(--kp-input-color);
  appearance: none;
  position: relative;
  cursor: pointer;
}

.kp-legacy-checkout__checkbox input:checked {
  background: var(--kp-button-color);
}

.kp-legacy-checkout__checkbox input:checked::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.kp-legacy-checkout__field--wide {
  grid-column: 1 / -1;
}

.kp-legacy-checkout__guest-action-row {
  display: flex;
  align-items: center;
}

.kp-legacy-checkout__guest-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--kp-text-color);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
  text-decoration: underline;
  cursor: pointer;
}

.kp-legacy-checkout__guest-action:hover,
.kp-legacy-checkout__guest-action:focus {
  color: var(--kp-button-color);
}

.kp-legacy-checkout__guest-save-payment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.kp-legacy-checkout__guest-save-payment-copy {
  display: grid;
  gap: 4px;
}

.kp-legacy-checkout__guest-save-payment-copy strong {
  color: var(--kp-text-color);
  font-size: 21px;
  line-height: 1.15;
  font-weight: 300;
  font-family: "PPRadioGrotesk-Regular", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__guest-save-payment-copy span {
  color: var(--kp-text-color);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 300;
  font-family: "PPRadioGrotesk-Light", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__main > .kp-legacy-checkout__section + .kp-legacy-checkout__section {
  margin-top: 18px;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__section--auth > .kp-legacy-checkout__section-head,
.kp-legacy-checkout--guest .kp-legacy-checkout__section--contact > .kp-legacy-checkout__section-head,
.kp-legacy-checkout--guest .kp-legacy-checkout__section--address > .kp-legacy-checkout__section-head,
.kp-legacy-checkout--guest .kp-legacy-checkout__section--payment > .kp-legacy-checkout__section-head,
.kp-legacy-checkout--guest .kp-legacy-checkout__section--payment > .kp-legacy-checkout__muted {
  display: none;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__main .kp-legacy-checkout__input,
.kp-legacy-checkout--guest .kp-legacy-checkout__main .krepling-hosted-field__mount,
.kp-legacy-checkout--guest .kp-legacy-checkout__main #card_holder_name {
  min-height: 34px;
  height: 34px;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__main .krepling-hosted-field__mount,
.kp-legacy-checkout--guest .kp-legacy-checkout__main #card_holder_name {
  padding-top: 0;
  padding-bottom: 0;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__main .krepling-hosted-field__mount--card-number {
  padding-left: 0;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__main .krepling-hosted-field__mount--cvv {
  padding-right: 0;
}

.kp-legacy-checkout--guest [data-kp-identifier-hint] {
  display: none;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__section--auth .kp-legacy-checkout__actions {
  gap: 10px;
  margin-top: 10px;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__section--auth [data-kp-identifier-submit] {
  display: none !important;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__section--auth [data-kp-auth-show-login] {
  display: none !important;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__section--auth .kp-legacy-checkout__smart-group {
  margin-top: 0;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__contact-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.kp-legacy-checkout--guest #full_name_feild {
  margin-bottom: 13px;
}

.kp-legacy-checkout--guest #full_name_feild .kp-legacy-checkout__input {
  margin-bottom: 0 !important;
}

.kp-legacy-checkout--guest .checkout-company_name {
  margin-bottom: 21px;
}

.kp-legacy-checkout--guest .common_btn,
.kp-legacy-checkout--guest .search-dilvery-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--kp-text-color);
  font-size: 13px;
  line-height: normal;
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
  text-decoration: underline;
  border-radius: 0;
  cursor: pointer;
}

.kp-legacy-checkout--guest .common_btn:hover,
.kp-legacy-checkout--guest .common_btn:focus,
.kp-legacy-checkout--guest .search-dilvery-button:hover,
.kp-legacy-checkout--guest .search-dilvery-button:focus {
  color: var(--kp-button-color);
}

.kp-legacy-checkout--guest .kp-legacy-checkout__address-form--legacy-guest {
  gap: 0;
}

.kp-legacy-checkout--guest .checkout-delivery {
  margin-bottom: 34px;
}

.kp-legacy-checkout--guest #registerSearchAddress {
  margin-bottom: 13px !important;
}

.kp-legacy-checkout--guest .add_additional_unitAddress,
.kp-legacy-checkout--guest .add_additional_shippingAddress,
.kp-legacy-checkout--guest .add_additional_billingAddress {
  margin-bottom: 0;
}

.kp-legacy-checkout--guest .optional_shipping_address,
.kp-legacy-checkout--guest .optional_billing_address,
.kp-legacy-checkout--guest #additional_information {
  margin-top: 21px;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__guest-address-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  /* Each column keeps its natural height instead of stretching to match its
   * neighbour — so when one field shows a validation message, the other field's
   * input stays tucked under its own label (no gap). */
  align-items: start;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__guest-address-row + .kp-legacy-checkout__guest-address-row {
  margin-top: 21px;
}

.kp-legacy-checkout--guest #address-form2 {
  display: none;
  margin-bottom: 15px;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__guest-address-toggles {
  display: flow-root;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__guest-address-toggle {
  display: block;
  width: max-content;
  float: left;
  clear: left;
  line-height: 29px;
  text-align: left;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__payment-card,
.kp-legacy-checkout--guest #card_holder_group,
.kp-legacy-checkout--guest .kp-legacy-checkout__guest-payment-addresses {
  clear: both;
}

.kp-legacy-checkout--guest #card_holder_group {
  margin-bottom: 21px;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__guest-payment-addresses {
  margin-bottom: 20px;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__guest-payment-addresses .kp-legacy-checkout__checkbox--legacy {
  margin-bottom: 21px;
}

.kp-legacy-checkout--guest #billingAddressForm {
  margin-bottom: 0;
}

.kp-legacy-checkout--guest .card_details_error,
.kp-legacy-checkout--guest .kp-legacy-checkout__error--inline:not(:empty) {
  display: block;
  margin-top: 8px;
  color: #f00;
  font-size: 14px;
  font-weight: 400;
  font-family: "PPRadioGrotesk-Regular", "Helvetica Neue", Arial, sans-serif;
}

/* When empty, fully collapse the inline error span so it doesn't leave a blank
 * line box between the field and the following message (e.g. the Delivery
 * Address search error, which is shown in a separate element below it). */
.kp-legacy-checkout__error--inline:empty {
  display: none;
}

.kp-legacy-checkout--guest .addErrorBorder {
  border: 3px solid #f00 !important;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__checkbox--legacy {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 21px;
  font-size: 13px;
  cursor: pointer;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__checkbox--legacy input {
  width: 21px;
  height: 21px;
  border-radius: 6px;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__checkbox--legacy span {
  margin-top: 2px;
  margin-left: 21px;
  color: var(--kp-text-color);
  font-size: 13px;
  font-weight: 500;
  font-family: "PPRadioGrotesk-Medium", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout--guest #billingAddressForm {
  display: grid;
  gap: 21px;
}

.kp-legacy-checkout--guest #billingAddressForm[hidden] {
  display: none !important;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__address-form-grid {
  gap: 16px;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__signup-verification {
  margin-top: 4px;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__guest-save-payment {
  margin-top: 20px;
}

.kp-legacy-checkout--guest .kp-legacy-checkout__section--payment .kp-legacy-checkout__actions {
  margin-top: 6px;
}

.kp-legacy-checkout .kp-autocomplete-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.kp-legacy-checkout .kp-autocomplete-wrap > input {
  position: relative;
  z-index: 2;
}

.kp-legacy-checkout .kp-autocomplete-menu {
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  z-index: 100001;
  max-height: 196px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.kp-legacy-checkout .kp-autocomplete-item {
  padding: 10px 14px;
  border-top-color: rgba(22, 22, 22, 0.05);
  background: #ffffff;
  color: var(--kp-text-color);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 300;
  font-family: "PPRadioGrotesk-Light", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout .kp-autocomplete-item:hover {
  background: var(--kp-input-color);
}

.kp-legacy-checkout__section--payment .kp-legacy-checkout__actions {
  justify-content: flex-end;
}

/* Sign in / Create account toggle (design). The verify panel carries
 * data-kp-auth-mode ("signin" | "create"); these rules swap the Full-name
 * field, button label, foot caption, and hide phone/password options in
 * create mode. The underlying identifier input + Continue button (and their
 * lookup/OTP/account-creation logic) are reused unchanged. */
[data-kp-signup-name-field] {
  display: none;
}

[data-kp-auth-mode="create"] [data-kp-signup-name-field] {
  display: block;
}

[data-kp-auth-label="create"] {
  display: none;
}

[data-kp-auth-mode="create"] [data-kp-auth-label="signin"] {
  display: none;
}

[data-kp-auth-mode="create"] [data-kp-auth-label="create"] {
  display: inline;
}

[data-kp-auth-mode="create"] [data-kp-identifier-mode-toggle],
[data-kp-auth-mode="create"] [data-kp-auth-show-login] {
  display: none;
}

.kp-legacy-checkout__auth-foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--kp-muted-color, #6b6b78);
}

[data-kp-auth-foot="create"] {
  display: none;
}

[data-kp-auth-mode="create"] [data-kp-auth-foot="signin"] {
  display: none;
}

[data-kp-auth-mode="create"] [data-kp-auth-foot="create"] {
  display: block;
}

.kp-legacy-checkout__auth-link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  /* No font-family / font-size here on purpose: the button doesn't force-inherit
   * them, so custom styling can set them freely. (A <button> falls back to the
   * UA font when nothing sets it — set font-family/size in your own rule if you
   * want it to match the surrounding text.) */
  font-weight: 700;
  color: var(--kp-button-color, #8e00e9);
}

.kp-legacy-checkout__auth-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* "Free" shipping shown in green (design). */
.kp-legacy-checkout__summary-free {
  color: var(--kp-good, #2e7d32);
  font-weight: 600;
}

/* "Payments secured by Krepling Pay" caption beneath the pay button (design). */
.kp-legacy-checkout__secured-foot {
  width: 100%;
  margin: 9px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--kp-muted-color, #6b6b78);
}

.kp-legacy-checkout__secured-foot strong {
  font-weight: 700;
  color: inherit;
}

.kp-legacy-checkout__section--payment [data-kp-payment-submit],
.kp-legacy-checkout__section--payment #btnFirstStep {
  width: min(233px, 100%);
  min-height: 55px;
  margin: 21px 0 0 auto;
  border-radius: 50px;
  font-size: 21px;
  background: linear-gradient(0deg, var(--kp-button-color) 0%, var(--kp-button-color) 100%);
}

.kp-legacy-checkout__bridge-note {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(239, 239, 239, 0.75);
  color: var(--kp-text-color);
}

.kp-legacy-checkout .krepling-powered-footer {
  margin-top: 28px;
  padding-top: 0;
}

.kp-legacy-checkout .krepling-powered-footer.kp-legacy-checkout__shell-footer {
  margin-top: auto;
}

@media (max-width: 760px) {
  .kp-legacy-checkout--guest .kp-legacy-checkout__guest-address-row {
    grid-template-columns: 1fr;
  }
}

.kp-legacy-checkout .copyright_group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.kp-legacy-checkout .copyright_group h4 {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 300;
  font-family: "PPRadioGrotesk-Light", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout .copyright_email a {
  color: var(--kp-muted-color);
  text-decoration: none;
}

.kp-legacy-checkout .copyright_email a:hover,
.kp-legacy-checkout .copyright_email a:focus {
  color: var(--kp-button-color);
}

@media (max-width: 760px) {
  .kp-legacy-checkout {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 76vh;
    border-radius: 42px 42px 0 0;
  }

  body.admin-bar .kp-legacy-checkout {
    top: auto;
    height: auto;
  }

  .kp-legacy-checkout__shell {
    width: 100%;
    min-height: auto;
    padding: 25px;
  }

  .kp-legacy-checkout__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .kp-legacy-checkout__header--authenticated {
    display: block;
  }

  .kp-legacy-checkout__header-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .kp-legacy-checkout__header-side {
    width: 100%;
    align-items: flex-start;
  }

  .kp-legacy-checkout__currency-display,
  .kp-legacy-checkout__header--authenticated .kp-legacy-checkout__currency-display {
    font-size: 17px;
  }

  .kp-legacy-checkout__currency-menu {
    top: calc(100% + 6px);
    width: 152px;
  }

  .kp-legacy-checkout__currency-option {
    font-size: 17px;
  }

  .kp-legacy-checkout__currency-star-icon {
    font-size: 13px;
  }

  .kp-legacy-checkout__contact-grid,
  .kp-legacy-checkout__address-form-grid,
  .kp-legacy-checkout__wallet-form--inline,
  .kp-legacy-checkout__account-grid,
  .kp-legacy-checkout__address-summary,
  .kp-legacy-checkout .card-information {
    grid-template-columns: 1fr;
  }

  .kp-legacy-checkout__wallet-toggle,
  .kp-legacy-checkout__wallet-session-item,
  .kp-legacy-checkout__wallet-review-item,
  .kp-legacy-checkout__address-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .kp-legacy-checkout__section--address .kp-legacy-checkout__address-list {
    max-height: min(13.5rem, 38vh);
  }

  .kp-legacy-checkout__actions,
  .kp-legacy-checkout__wallet-actions,
  .kp-legacy-checkout__wallet-inline-actions,
  .kp-legacy-checkout__address-toolbar,
  .kp-legacy-checkout__signup-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .kp-legacy-checkout__section--payment .kp-legacy-checkout__actions {
    align-items: stretch;
  }

  .kp-legacy-checkout__section--payment [data-kp-payment-submit],
  .kp-legacy-checkout__section--payment #btnFirstStep {
    width: 100%;
    margin-left: 0;
  }

  .kp-legacy-checkout__section--payment[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-cards {
    max-width: 100%;
  }

  .kp-legacy-checkout__section--payment[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-cards-list {
    max-width: 100%;
  }

  .kp-legacy-checkout__section--payment[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-cvv,
  .kp-legacy-checkout__section--payment[data-kp-payment-mode="saved"] .kp-legacy-checkout__saved-cvv.cardcvv {
    width: 100%;
    margin: 20px 0 0;
    top: 0;
  }

  .kp-legacy-checkout__guest-save-payment {
    align-items: flex-start;
    flex-direction: column;
  }

  .kp-legacy-checkout .copyright_group {
    align-items: flex-start;
    flex-direction: column;
  }
}
