.checkout-header {
  position: relative;
  z-index: 2;
  height: 141px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
}

.checkout-header__inner {
  position: relative;
  width: 100%;
  max-width: 980px;
  height: 100%;
  margin: 0 auto;
}

.checkout-header__logo {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100px;
  height: 100px;
  transform: translateX(-50%);
}

.checkout-header__logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.checkout-header__logo:focus,
.checkout-header__cart:focus {
  outline: none;
}

.checkout-header__cart {
  position: absolute;
  top: 50%;
  right: 28px;
  display: grid;
  width: 24px;
  height: 24px;
  color: #EAB9B9;
  place-items: center;
  transform: translateY(-50%);
}

.checkout-header__cart svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.mobile-summary,
.desktop-order-pane,
.summary-content {
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 18.9px;
}

.mobile-summary {
  display: block;
  width: 100%;
  background: var(--color-surface);
}

.mobile-summary-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 64px;
  padding: 0 14px;
  background: var(--color-surface);
  border: 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  text-align: left;
}

.mobile-summary-toggle__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-link);
}

.mobile-summary-toggle__chevron {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 160ms ease;
}

.mobile-summary-toggle[aria-expanded="true"] .mobile-summary-toggle__chevron {
  transform: rotate(180deg);
}

.mobile-summary-toggle__price {
  font-size: 18px;
  line-height: 24px;
}

.mobile-summary-toggle:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: -2px;
}

.mobile-summary-content {
  width: 100%;
  padding: 16px 14px 17px;
  background: var(--color-surface);
}

.mobile-summary-content[hidden] {
  display: none;
}

.summary-content__inner {
  width: 100%;
  max-width: 552px;
  margin: 0 auto;
}

.desktop-order-pane {
  display: none;
  min-width: 0;
  background: var(--color-surface);
}

.desktop-summary {
  width: 400px;
}

.summary-products {
  display: grid;
  min-height: 146px;
  gap: 14px;
  margin: 0 0 20px;
}

.product-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) max-content;
  align-items: center;
  min-width: 0;
  min-height: 66px;
  column-gap: 14px;
}

.product-thumbnail {
  position: relative;
  width: 66px;
  height: 66px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.product-thumbnail img {
  width: 64px;
  height: 64px;
  border-radius: calc(var(--radius) - 1px);
  object-fit: cover;
}

.product-quantity {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  width: 20px;
  height: 20px;
  background: #000;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  place-items: center;
}

.product-title {
  min-width: 0;
}

.product-price {
  justify-self: end;
  white-space: nowrap;
}

.summary-discount {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66.34px;
  gap: 12px;
  height: 49px;
  margin-bottom: 20px;
}

.discount-field {
  display: block;
  min-width: 0;
  height: 49px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.discount-field:focus-within {
  border-color: var(--color-focus);
  box-shadow: 0 0 0 2px rgb(226 149 149 / 18%);
}

.discount-input {
  display: block;
  width: 100%;
  height: 47px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  outline: 0;
}

.discount-input::placeholder {
  color: var(--color-muted);
  opacity: 1;
}

.discount-apply {
  width: 66.34px;
  height: 49px;
  padding: 0 14px;
  background: #ededed;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px #d6d6d6 inset;
  font-weight: 700;
}

.discount-apply:disabled {
  cursor: default;
  opacity: .5;
}

.summary-totals {
  min-height: 84px;
}

.totals-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.totals-row + .totals-row {
  margin-top: 4px;
}

.shipping-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.help-icon {
  display: inline-grid;
  width: 13px;
  height: 13px;
  border: 1px solid var(--color-muted);
  border-radius: 50%;
  color: var(--color-muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 11px;
  place-items: center;
}

.shipping-value,
.currency {
  color: var(--color-muted);
}

.shipping-value {
  text-align: right;
}

.totals-row--final {
  align-items: center;
  margin-top: 16px !important;
  font-size: 18px;
  line-height: 24px;
}

.total-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.currency {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.total-price strong {
  font-size: 20px;
  line-height: 24px;
}

@media (min-width: 1000px) {
  .checkout-header__cart {
    right: 0;
  }

  .mobile-summary {
    display: none;
  }

  .desktop-order-pane {
    display: block;
    align-self: stretch;
    min-height: calc(100vh - 141px);
    padding: 40px 0 48px 82.5px;
  }

  .desktop-summary .summary-discount {
    margin-bottom: 34px;
  }
}

@media (min-width: 1000px) and (max-width: 1180px) {
  .desktop-order-pane {
    padding-left: 48px;
  }

  .desktop-summary {
    width: calc(100% - 40px);
    max-width: 400px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-summary-toggle__chevron {
    transition: none;
  }
}
