:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #222725;
  background: #fff;
  letter-spacing: 0;
  font-size: 15px;
  --green: #245946;
  --line: #dde2df;
  --muted: #67706b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #c58c32;
  outline-offset: 3px;
}
.simulation {
  min-height: 36px;
  background: #e6efff;
  color: #264a7a;
  text-align: center;
  padding: 9px 16px;
  font-size: 11px;
  font-weight: 700;
}
.simulation span {
  margin-left: 18px;
  font-weight: 400;
  font-size: 12px;
}
header {
  height: 86px;
  max-width: 1240px;
  padding: 0 40px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 25px;
  font-weight: 800;
  white-space: nowrap;
}
.brand span {
  color: var(--green);
}
.header-note {
  color: var(--muted);
  font-size: 13px;
}
.cart-link {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.cart-link span {
  background: #edf1ef;
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
}
main {
  max-width: 1240px;
  padding: 40px;
  margin: auto;
  min-height: calc(100vh - 209px);
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 12px;
}
h2 {
  font-size: 20px;
  margin: 0 0 22px;
}
h3 {
  font-size: 17px;
  margin: 0;
}
p {
  line-height: 1.55;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 14px;
}
.store-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  margin-top: 34px;
}
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}
.product-image {
  width: 100%;
  height: 255px;
  object-fit: contain;
  display: block;
  background: #f3f5f4;
  margin-bottom: 18px;
}
.product-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}
.price {
  white-space: nowrap;
  font-size: 15px;
}
.product > p {
  font-size: 13px;
  color: var(--muted);
  margin: 7px 0 20px;
}
.form-row {
  display: flex;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.field label,
.field > span {
  font-size: 12px;
  color: #505a54;
  font-weight: 600;
}
input,
select {
  border: 1px solid #cfd6d1;
  border-radius: 4px;
  background: white;
  color: inherit;
  padding: 12px;
  width: 100%;
  height: 46px;
  min-width: 0;
}
input[type="number"] {
  width: 72px;
}
select {
  padding-right: 25px;
}
.actions {
  display: flex;
  gap: 9px;
}
.actions > * {
  flex: 1;
}
.button {
  border: 1px solid #c5cdc7;
  background: white;
  border-radius: 4px;
  padding: 13px 16px;
  text-align: center;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}
.primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}
.button:hover {
  background: #f1f5f2;
}
.primary:hover {
  background: #194634;
}
.full {
  width: 100%;
}
.cart {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.cart-header span {
  font-size: 12px;
  color: var(--muted);
}
.empty {
  padding: 30px 0;
  color: var(--muted);
  font-size: 14px;
}
.cart-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.thumb {
  width: 48px;
  height: 60px;
  object-fit: contain;
  background: #f4f5f4;
}
.line-name {
  font-size: 13px;
  font-weight: 600;
}
.line-detail {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0;
}
.cart-quantity {
  height: 34px !important;
  width: 58px !important;
  padding: 5px 8px;
}
.remove {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 23px;
  line-height: 1;
  width: 28px;
  height: 28px;
  padding: 0;
}
.row-end {
  text-align: right;
}
.row-end strong {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}
.totals {
  padding: 20px 0;
}
.total-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
  font-size: 13px;
}
.grand {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
}
.small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.history {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.history h2 {
  font-size: 16px;
}
.history-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.history-row span {
  color: var(--muted);
  text-align: right;
}
.back {
  font-size: 13px;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 28px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 72px;
}
.checkout-form section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.checkout-form section h2 {
  font-size: 16px;
  margin-bottom: 20px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.span2 {
  grid-column: 1/-1;
}
.summary {
  border-left: 1px solid var(--line);
  padding: 26px 0 0 32px;
}
.step {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 28px;
}
.step strong {
  color: var(--green);
}
.shipping-choice {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 10px;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
}
.shipping-choice input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}
.shipping-choice strong {
  margin-left: auto;
  white-space: nowrap;
}
.shipping-choice small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.discount-row {
  display: flex;
  gap: 10px;
}
.discount-row input {
  flex: 1;
}
.form-bottom {
  padding-top: 25px;
}
.badge {
  background: #eaf2ee;
  color: var(--green);
  padding: 6px 8px;
  font-size: 11px;
  display: inline-block;
  border-radius: 3px;
}
.status-layout {
  max-width: 690px;
  margin: 15px auto 40px;
}
.status-icon {
  width: 50px;
  height: 50px;
  background: #e9f3ed;
  color: var(--green);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 27px;
  margin-bottom: 25px;
}
.status-layout > p {
  color: var(--muted);
}
.payment-details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin: 30px 0;
}
.payment-details p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.payment-details p > span {
  color: var(--muted);
  flex-shrink: 0;
}
.payment-details strong {
  text-align: right;
}
.cashier-total {
  font-size: 38px;
  color: #202924;
  font-weight: 600;
  margin: 24px 0;
}
.cashier-actions {
  display: grid;
  gap: 10px;
}
.cashier-actions .secondary-actions {
  display: flex;
  gap: 10px;
}
.cashier-actions .secondary-actions > * {
  flex: 1;
}
.return-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 13px;
  text-decoration: underline;
}
.error-text {
  color: #a33131;
  background: #fff1f0;
  padding: 14px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 4px;
  margin: 14px 0;
}
.loading {
  color: var(--muted);
  padding: 40px 0;
}
#notice:empty {
  display: none;
}
#notice {
  max-width: 1160px;
  margin: 20px auto 0;
  padding: 13px 18px;
  background: #edf5ef;
  color: #245946;
  font-size: 13px;
}
footer {
  max-width: 1240px;
  margin: auto;
  padding: 26px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
}
.inline-errors:empty {
  display: none;
}
.pill-note {
  font-size: 12px;
  background: #f4f6f5;
  padding: 12px;
  line-height: 1.6;
  margin: 20px 0;
}
.summary .cart-row {
  grid-template-columns: 48px minmax(0, 1fr) auto;
}
.receipt {
  margin-top: 18px;
  word-break: break-all;
  font-size: 11px;
  color: var(--muted);
}
.quantity-field {
  flex: 0 0 72px;
}
@media (max-width: 950px) {
  .store-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .cart {
    padding: 25px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .checkout-grid {
    gap: 30px;
  }
  .summary {
    padding-left: 20px;
  }
  .product-image {
    height: 270px;
  }
}
@media (max-width: 640px) {
  header {
    height: 72px;
    padding: 0 20px;
  }
  .brand {
    font-size: 22px;
  }
  .header-note {
    display: none;
  }
  main {
    padding: 28px 20px;
  }
  .simulation {
    font-size: 10px;
  }
  .simulation span {
    font-size: 11px;
    margin-left: 10px;
  }
  h1 {
    font-size: 26px;
  }
  .store-grid {
    margin-top: 26px;
  }
  .products {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .product-image {
    height: 260px;
  }
  .product-title {
    font-size: 16px;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .summary {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 25px 0 0;
  }
  .fields {
    gap: 14px;
  }
  .field input,
  .field select {
    font-size: 16px;
  }
  .status-layout {
    margin: 0 auto 30px;
  }
  .cashier-total {
    font-size: 34px;
  }
  .payment-details p {
    flex-wrap: wrap;
    gap: 8px;
  }
  .payment-details strong {
    text-align: left;
  }
  .actions .button {
    padding: 13px 10px;
  }
  footer {
    padding: 25px 20px;
    flex-wrap: wrap;
  }
  .history-row {
    font-size: 12px;
  }
  .status-layout .actions {
    flex-wrap: wrap;
  }
  .status-layout .actions > * {
    min-width: 130px;
  }
  #notice {
    margin: 12px 20px 0;
  }
  .back {
    margin-bottom: 24px;
  }
}
.store-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  max-width: 1240px;
  margin: 12px auto;
  padding: 12px 20px;
  background: #eef4f1;
  font-size: 13px;
}
.store-switch span {
  flex: 1 1 220px;
}
.store-switch a {
  color: #245a47;
}
