/**
 * TEREAU Checkout
 */

body.tpl_tereau.checkoutshippingBody #contentMainWrapper > [class*="col"],
body.tpl_tereau.checkoutshippingaddressBody #contentMainWrapper > [class*="col"],
body.tpl_tereau.checkoutpaymentBody #contentMainWrapper > [class*="col"],
body.tpl_tereau.checkoutpaymentaddressBody #contentMainWrapper > [class*="col"],
body.tpl_tereau.checkoutconfirmationBody #contentMainWrapper > [class*="col"],
body.tpl_tereau.checkoutsuccessBody #contentMainWrapper > [class*="col"],
body.tpl_tereau .tereau-checkout-page {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  background: #fff;
}

.tereau-checkout-page {
  box-sizing: border-box;
  width: 100%;
  padding: 0 0 3.5rem;
}

.tereau-checkout-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--tereau-max, 1280px);
  margin: 0 auto;
  padding: 2rem 0 0;
}

.tereau-checkout-steps {
  margin: 0 0 1.5rem;
}

.tereau-checkout-steps__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tereau-checkout-steps__item {
  flex: 1 1 0;
  min-width: 0;
}

.tereau-checkout-steps__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.5rem;
  text-decoration: none !important;
  color: var(--tereau-muted, #6b6560);
  text-align: center;
}

.tereau-checkout-steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--tereau-line, rgba(26, 26, 26, 0.12));
  background: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

.tereau-checkout-steps__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tereau-checkout-steps__item--current .tereau-checkout-steps__link {
  color: var(--tereau-ink, #1a1a1a);
}

.tereau-checkout-steps__item--current .tereau-checkout-steps__num {
  border-color: var(--tereau-ink, #1a1a1a);
  background: var(--tereau-ink, #1a1a1a);
  color: #fff;
}

.tereau-checkout-steps__item--complete .tereau-checkout-steps__num {
  border-color: var(--tereau-gold, #a8845a);
  color: var(--tereau-gold, #a8845a);
}

.tereau-checkout-header {
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--tereau-line, rgba(26, 26, 26, 0.12));
}

.tereau-checkout-header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.tereau-checkout-header__title,
.tereau-checkout-page h1 {
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 2rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em;
  color: var(--tereau-ink, #1a1a1a) !important;
  text-align: left !important;
}

.tereau-checkout-header__secure {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 !important;
  font-size: 0.8125rem;
  color: var(--tereau-muted, #6b6560);
}

.tereau-checkout-messages {
  margin: 0 0 1.25rem;
}

.tereau-checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.tereau-checkout-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  order: 2;
}

.tereau-checkout-main > form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  margin: 0;
}

.tereau-checkout-aside {
  order: 1;
}

@media (min-width: 1024px) {
  .tereau-checkout-layout:not(.tereau-checkout-layout--single) {
    grid-template-columns: 1.4fr 0.9fr;
  }

  .tereau-checkout-main {
    order: 1;
  }

  .tereau-checkout-aside {
    order: 2;
  }

  .tereau-checkout-summary {
    position: sticky;
    top: var(--tereau-sticky-offset, 7.5rem);
  }
}

.tereau-checkout-card {
  box-sizing: border-box;
  padding: 1.25rem;
  border: 1px solid var(--tereau-line, rgba(26, 26, 26, 0.12));
  background: #fff;
}

.tereau-checkout-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
}

.tereau-checkout-card h2,
.tereau-checkout-card legend {
  margin: 0 0 1rem !important;
  padding: 0 !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  color: var(--tereau-ink, #1a1a1a) !important;
  text-align: left !important;
}

.tereau-checkout-card h2 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
}

.tereau-checkout-card legend {
  font-family: Arial, Helvetica, sans-serif !important;
}

.tereau-checkout-card__head h2 {
  margin: 0 !important;
}

.tereau-checkout-card h3 {
  margin: 1rem 0 0.35rem !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tereau-muted, #6b6560) !important;
}

.tereau-checkout-card__subheading {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

.tereau-checkout-tip {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.tereau-checkout-tip__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--tereau-muted, #6b6560);
  border-radius: 50%;
  background: transparent;
  color: var(--tereau-muted, #6b6560);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1;
  cursor: help;
}

.tereau-checkout-tip__btn:hover,
.tereau-checkout-tip__btn:focus {
  border-color: var(--tereau-gold, #a8845a);
  color: var(--tereau-gold, #a8845a);
  outline: none;
}

.tereau-checkout-tip__text {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.55rem);
  left: 50%;
  width: min(18.5rem, 70vw);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--tereau-line, rgba(26, 26, 26, 0.12));
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.08);
  color: var(--tereau-muted, #6b6560) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
  text-transform: none !important;
  text-align: left !important;
  transform: translateX(-1.15rem);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.tereau-checkout-tip:hover .tereau-checkout-tip__text,
.tereau-checkout-tip:focus-within .tereau-checkout-tip__text {
  visibility: visible;
  opacity: 1;
}

.tereau-checkout-card__optional {
  margin-left: 0.35rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tereau-muted, #6b6560);
}

.tereau-checkout-address {
  margin: 0;
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.tereau-checkout-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: var(--tereau-muted, #6b6560) !important;
}

.tereau-checkout-link:hover {
  color: var(--tereau-gold, #a8845a) !important;
}

.tereau-checkout-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tereau-checkout-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0;
  padding: 0.875rem 1rem;
  border: 1px solid var(--tereau-line, rgba(26, 26, 26, 0.12));
  background: #fff;
  cursor: pointer;
}

.tereau-checkout-option:hover {
  border-color: var(--tereau-gold, #a8845a);
}

.tereau-checkout-option:has(input:checked),
.tereau-checkout-option--selected {
  border-color: var(--tereau-ink, #1a1a1a);
  background: var(--tereau-pearl, #f7f5f2);
}

.tereau-checkout-option--payment {
  align-items: flex-start;
}

.tereau-checkout-option__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 auto;
}

.tereau-checkout-option input[type="radio"] {
  flex-shrink: 0;
  margin: 0.2rem 0 0 !important;
}

.tereau-checkout-option__label {
  flex: 1 1 12rem;
  margin: 0 !important;
  font-size: 0.9375rem;
  font-weight: 500;
}

.tereau-checkout-option__hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--tereau-muted, #6b6560);
}

.tereau-checkout-option__price {
  margin-left: auto !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
}

.tereau-checkout-option-group__error {
  margin: 0;
  font-size: 0.875rem;
  color: #b42318;
}

.tereau-checkout-page fieldset {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.tereau-checkout-textarea,
.tereau-checkout-page textarea {
  box-sizing: border-box;
  display: block;
  width: 100% !important;
  min-height: 5.5rem;
  margin: 0 !important;
  padding: 0.75rem 0.875rem !important;
  border: 1px solid var(--tereau-line, rgba(26, 26, 26, 0.12)) !important;
  background: #fff !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9375rem !important;
  resize: vertical;
}

.tereau-checkout-textarea:focus,
.tereau-checkout-page textarea:focus {
  outline: none;
  border-color: var(--tereau-gold, #a8845a) !important;
}

.tereau-checkout-page .ccinfo,
.tereau-checkout-page .ccinfoText {
  margin: 0.75rem 0 0;
  padding: 0.875rem 1rem;
  border: 1px solid var(--tereau-line, rgba(26, 26, 26, 0.12));
  background: var(--tereau-pearl, #f7f5f2);
}

.tereau-checkout-conditions {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem 0.65rem;
}

.tereau-checkout-line {
  display: flex;
  gap: 0.75rem;
  padding: 0 0 1rem;
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--tereau-line, rgba(26, 26, 26, 0.12));
}

.tereau-checkout-line__thumb {
  flex: 0 0 3.5rem;
  width: 3.5rem;
  height: 3.5rem;
  overflow: hidden;
  border: 1px solid var(--tereau-line, rgba(26, 26, 26, 0.12));
  background: var(--tereau-pearl, #f7f5f2);
}

.tereau-checkout-line__thumb img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.tereau-checkout-line__body {
  min-width: 0;
  flex: 1 1 auto;
}

.tereau-checkout-line__name {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.tereau-checkout-line__attr {
  margin: 0 0 0.2rem;
  font-size: 0.8125rem;
  color: var(--tereau-muted, #6b6560);
}

.tereau-checkout-line__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--tereau-muted, #6b6560);
}

.tereau-checkout-line__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.75rem;
}

.tereau-checkout-line__meta strong,
.tereau-checkout-line__total {
  font-weight: 500;
  color: var(--tereau-ink, #1a1a1a);
}

.tereau-checkout-totals #orderTotals,
.tereau-checkout-page #orderTotals {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.tereau-checkout-total-row,
.tereau-checkout-totals .ot-subtotal-Row,
.tereau-checkout-totals .ot-shipping-Row,
.tereau-checkout-totals .ot-tax-Row,
.tereau-checkout-totals .ot-total-Row,
.tereau-checkout-totals [class$="-Row"] {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  font-size: 0.9375rem;
}

.tereau-checkout-total-row__label,
.tereau-checkout-totals .lineTitle {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--tereau-muted, #6b6560) !important;
  text-align: left !important;
}

.tereau-checkout-total-row__amount,
.tereau-checkout-totals .amount {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 500 !important;
  text-align: right !important;
}

.tereau-checkout-total-row--grand,
.tereau-checkout-totals .ot-total-Row {
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--tereau-line, rgba(26, 26, 26, 0.12));
}

.tereau-checkout-totals .ot-total-Text,
.tereau-checkout-total-row--grand .tereau-checkout-total-row__label {
  font-weight: 500 !important;
  color: var(--tereau-ink, #1a1a1a) !important;
}

.tereau-checkout-totals .ot-total-Amount,
.tereau-checkout-total-row--grand .tereau-checkout-total-row__amount {
  font-size: 1.125rem !important;
}

.tereau-checkout-totals br.clearBoth {
  display: none !important;
}

.tereau-checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.tereau-checkout-card .tereau-checkout-actions {
  margin-top: 1.25rem;
  padding-top: 0.25rem;
}

.tereau-checkout-actions--bar {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tereau-checkout-actions--bar .tereau-checkout-actions__primary {
  margin-left: auto;
}

@media (max-width: 639px) {
  .tereau-checkout-actions--bar {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .tereau-checkout-actions--bar .tereau-checkout-actions__primary {
    margin-left: 0;
  }
}

.tereau-checkout-btn {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem !important;
  margin: 0 !important;
  padding: 0 1.25rem !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
}

.tereau-checkout-actions--bar .tereau-checkout-btn {
  width: auto !important;
  min-width: 10rem;
}

@media (max-width: 639px) {
  .tereau-checkout-actions--bar .tereau-checkout-btn {
    width: 100% !important;
    min-width: 0;
  }
}

.tereau-checkout-btn--primary {
  border: 1px solid var(--tereau-ink, #1a1a1a) !important;
  background: var(--tereau-ink, #1a1a1a) !important;
  color: #fff !important;
}

.tereau-checkout-btn--primary:hover {
  border-color: var(--tereau-gold, #a8845a) !important;
  background: var(--tereau-gold, #a8845a) !important;
  color: #fff !important;
}

.tereau-checkout-btn--secondary {
  border: 1px solid var(--tereau-ink, #1a1a1a) !important;
  background: #fff !important;
  color: var(--tereau-ink, #1a1a1a) !important;
}

.tereau-checkout-btn--secondary:hover {
  border-color: var(--tereau-gold, #a8845a) !important;
  color: var(--tereau-gold, #a8845a) !important;
}

.tereau-checkout-placing-page .tereau-checkout-header {
  display: none;
}

.tereau-checkout-placing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 12rem;
  padding: 2rem 1.25rem;
  text-align: center;
}

.tereau-checkout-placing__spinner {
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.75rem;
  border: 3px solid var(--tereau-line, rgba(26, 26, 26, 0.12));
  border-top-color: var(--tereau-gold, #a8845a);
  border-radius: 50%;
  animation: tereau-checkout-spin 0.75s linear infinite;
}

.tereau-checkout-placing__text {
  margin: 0 !important;
  font-size: 1rem !important;
  color: var(--tereau-ink, #1a1a1a) !important;
}

@keyframes tereau-checkout-spin {
  to { transform: rotate(360deg); }
}

.tereau-checkout-success-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.tereau-checkout-success-page .tereau-checkout-main {
  max-width: 44rem;
  margin: 0 auto;
}

.tereau-checkout-success-hero {
  padding: 2rem 1.25rem 1.5rem;
  border: 1px solid var(--tereau-line, rgba(26, 26, 26, 0.12));
  background: var(--tereau-pearl, #f7f5f2);
  text-align: center;
}

.tereau-checkout-success-icon {
  margin: 0 0 0.75rem;
  font-size: 2.5rem;
  color: var(--tereau-gold, #a8845a);
}

.tereau-checkout-success-hero__title {
  margin: 0 0 0.5rem !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 2rem !important;
  font-weight: 500 !important;
  color: var(--tereau-ink, #1a1a1a) !important;
  text-align: center !important;
}

.tereau-checkout-success-order {
  display: flex;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.35rem;
}

.tereau-checkout-success-order__label,
.tereau-checkout-success-meta,
.tereau-checkout-success-copy,
.tereau-checkout-success-help {
  color: var(--tereau-muted, #6b6560);
}

.tereau-checkout-success-copy {
  margin: 0 auto 1.25rem;
  max-width: 36rem;
}

.tereau-checkout-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 0.5rem;
}

.tereau-checkout-success-actions .tereau-checkout-btn {
  min-width: 10.5rem;
}

.tereau-checkout-address-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .tereau-checkout-address-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tereau-checkout-success-help {
  margin: 0;
  font-size: 0.875rem;
  text-align: center;
}

.tereau-checkout-success-help a {
  color: var(--tereau-gold, #a8845a) !important;
  text-decoration: none !important;
}

.tereau-checkout-success-notify {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.tereau-checkout-form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tereau-checkout-form-note {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--tereau-muted, #6b6560);
}

.tereau-checkout-address-book {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tereau-checkout-address-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--tereau-line, rgba(26, 26, 26, 0.12));
  background: var(--tereau-pearl, #f7f5f2);
  cursor: pointer;
}

.tereau-checkout-address-option:has(input:checked) {
  border-color: var(--tereau-ink, #1a1a1a);
  background: #fff;
}

.tereau-checkout-address-option input[type="radio"] {
  flex-shrink: 0;
  margin: 0.35rem 0 0 !important;
}

.tereau-checkout-address-option__body {
  flex: 1 1 auto;
  min-width: 0;
}

.tereau-checkout-address-option__name {
  display: block;
  margin: 0 0 0.35rem;
  font-weight: 500;
  color: var(--tereau-ink, #1a1a1a);
}

.tereau-checkout-address-option__address {
  margin: 0;
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--tereau-muted, #6b6560);
}

.tereau-checkout-page .forward,
.tereau-checkout-page .back,
.tereau-checkout-page br.clearBoth {
  float: none !important;
}

.tereau-checkout-page .buttonRow {
  float: none !important;
  margin: 0 !important;
}
