@font-face {
  font-family: Delius;
  src: url('./assets/delius-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "NanumSquareRound";
  src: url('./assets/nanum-square-round-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "NanumSquareRound";
  src: url('./assets/nanum-square-round-bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6e7d8;
  --ink: #312e27;
  --muted: #655c50;
  --line: #e7d7c6;
  --empty-photo: #eee3d6;
  --softened-cotton: rgb(252 245 235 / 64%);
  --action: #505646;
  --action-text: #fffdf7;
  font: 15px/1.55 "NanumSquareRound", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }
[hidden] { display: none !important; }

.shop {
  --gutter: clamp(12px, 5vw, 18px);
  --content-width: 1280px;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--paper) url('./assets/cotton.jpg') left top / 390px auto repeat;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  width: min(100%, var(--content-width));
  min-height: 385px;
  min-height: clamp(345px, 69svh, 700px);
  margin-inline: auto;
  padding-block: 56px 18px;
}
.hero-art {
  position: relative;
  width: 100%;
  width: min(100%, 105svh);
  margin-inline: auto;
}
.hero-image {
  display: block;
  width: 100%;
  height: auto;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 91%, transparent),
              linear-gradient(to right, transparent, #000 6%, #000 95%, transparent);
  mask-composite: intersect;
}
.wordmark {
  color: #594d3d;
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
  text-decoration: none;
}
.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: .14em;
  color: #534336;
  font-family: Delius, Georgia, serif;
  letter-spacing: -.018em;
  white-space: nowrap;
}
.brand-symbol {
  flex: none;
  width: .67em;
  height: .67em;
}
.hero-wordmark {
  position: absolute;
  inset: 28% auto auto 12%;
  font-size: clamp(43px, 8.1vw, 100px);
}
.content {
  padding-block: 22px 28px;
  padding-inline: max(var(--gutter), calc((100% - var(--content-width)) / 2 + var(--gutter)));
}
.catalog { background: linear-gradient(transparent, var(--softened-cotton) 105px); }
.catalog h2 { margin-bottom: 2px; font-size: 20px; }
.sample-note { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.products a { display: block; text-decoration: none; }
.products a:hover h3 { text-decoration: underline; }
.products h3 { font-size: 15px; overflow-wrap: anywhere; }
.products p, .product-title span { color: var(--muted); font-size: 14px; }
.photo { display: block; overflow: hidden; border-radius: 4px; background: var(--empty-photo); }
.catalog-photo { width: 100%; aspect-ratio: 4 / 5; margin-bottom: 7px; object-fit: contain; }

.masthead { position: relative; display: grid; place-items: center; min-height: 52px; border-bottom: 1px solid var(--line); }
.masthead .wordmark { display: grid; place-items: center; min-height: 44px; font-size: 24px; }
.masthead .brand-wordmark { display: inline-flex; justify-content: center; }
.masthead .brand-symbol { width: 23px; height: 23px; }
.cart-nav {
  position: absolute;
  z-index: 1;
  inset-block-start: 4px;
  inset-inline-end: max(var(--gutter), calc((100% - var(--content-width)) / 2 + var(--gutter)));
  display: grid;
  place-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 14px;
  text-underline-offset: 3px;
}
.hero .cart-nav { inset-block-start: 12px; inset-inline-end: var(--gutter); }
.product, .missing { background: linear-gradient(rgb(252 245 235 / 34%), var(--softened-cotton) 135px); }
.product-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.product-title h1, .missing h1 { min-width: 0; font-size: 21px; overflow-wrap: anywhere; }
.product-title span { white-space: nowrap; }
.product-image { position: relative; margin-bottom: 15px; }
.product-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; }
.photo-sold-label {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 4px;
  background: #fcf6ee;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}
fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 7px; font-size: 14px; font-weight: 650; }
.options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.option {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  text-align: center;
}
.option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.option:has(input:focus-visible) { outline: 2px solid var(--action); outline-offset: 1px; }
.option:has(input:checked) { border-color: var(--action); font-weight: 700; }
.option .photo { height: clamp(37px, 13vw, 57px); }
.option .photo > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 92%; }
.sold { color: var(--muted); }
.sold .photo { position: relative; display: grid; place-items: center; }
.sold .photo > img { position: absolute; inset: 0; }
.sold .photo::before { position: absolute; z-index: 1; inset: 0; background: rgb(252 245 235 / 68%); backdrop-filter: blur(1px); content: ""; }
.sold .photo > span { position: relative; z-index: 2; padding: 1px 5px; border-radius: 3px; background: var(--paper); color: var(--ink); }
.purchase { display: grid; gap: 7px; margin: 12px 0 15px; }
.purchase p { color: var(--muted); font-size: 13px; }
.purchase button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--action);
  color: var(--action-text);
  font: inherit;
  font-weight: 600;
}
.purchase button:disabled { background: var(--empty-photo); color: var(--muted); }
.purchase a { justify-self: center; padding: 8px 4px; text-underline-offset: 3px; }
.product-description { display: grid; gap: 5px; padding-top: 13px; border-top: 1px solid var(--line); }
.product-description h2 { font-size: 15px; }
.product-description p { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.operator { --content-width: 680px; }
.operator h1 { margin-bottom: 20px; font-size: 23px; }
.operator label { display: block; margin-top: 16px; margin-bottom: 6px; font-weight: 650; }
.operator select, .operator input:not([type="radio"]), .operator textarea {
  width: 100%;
  min-height: 46px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fcf6ee;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.operator textarea { resize: vertical; }
.mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mode-options label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 46px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  background: #fcf6ee;
  font-size: 14px;
}
.mode-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mode-options label:has(input:checked) { border-color: var(--action); background: var(--action); color: var(--action-text); }
.mode-options label:has(input:focus-visible) { outline: 2px solid var(--action); outline-offset: 2px; }
.operator input::file-selector-button { min-height: 32px; margin-inline-end: 8px; font: inherit; }
.operator .sample-note { margin-top: 5px; }
.operator-photo { width: 100%; max-height: 230px; object-fit: contain; }
.operator-result { margin-bottom: 8px; }
.operator-nav { display: flex; flex-wrap: wrap; gap: 0 15px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.operator-nav a { display: grid; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.operator-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; box-shadow: inset 0 -2px var(--action); }
.shipping-settings .purchase { margin-top: 16px; }
.shipping-settings-status { margin-top: 10px; }
.shipping-schedule { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.schedule-days { min-width: 0; margin: 0 0 8px; padding: 0; border: 0; }
.schedule-days .mode-options { grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); }
.schedule-days label { margin: 0; }
.shipping-notice { margin-top: 8px; }
[data-refunds] { margin: 20px 0; }
.refund-case { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.refund-case h3 { margin: 0; font-size: 16px; }
.refund-history { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.refund-history li { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.refund-history time { color: var(--muted); font-size: 13px; }
.refund-form { display: grid; gap: 8px; }
.refund-form label { width: 100%; max-width: 320px; }
.operator-orders { --content-width: 880px; }
.orders-status { margin-bottom: 10px; color: var(--muted); }
.orders-status:empty { display: none; }
.mailbox-groups { display: grid; gap: 20px; }
.mailbox-groups h2 { margin-bottom: 6px; font-size: 17px; }
.mailbox-groups a span { text-decoration: underline; text-underline-offset: 3px; }
.order-list, .ordered-pieces { margin: 0; padding: 0; list-style: none; }
.order-list:not(:empty), .ordered-pieces:not(:empty) { border-top: 1px solid var(--line); }
.order-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.order-list a:hover time { text-decoration: underline; }
.order-list-info, .order-list-price, .ordered-piece-info { display: grid; gap: 3px; }
.order-list-summary { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.order-list-price { text-align: end; white-space: nowrap; }
.order-number { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.order-list-info .order-number, .order-list-price > span, .ordered-piece-info > span { color: var(--muted); font-size: 12px; }
.order-facts { display: grid; gap: 10px; margin: 0 0 24px; }
.order-facts > div { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-facts dt { color: var(--muted); font-size: 13px; }
.order-facts dd { margin: 0; }
.order-total { font-weight: 650; }
.operator-orders h2, .customer-orders h2 { margin-bottom: 8px; font-size: 17px; }
.customer-orders { --content-width: 880px; }
.customer-ordered-pieces { margin-bottom: 24px; }
.order-page-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; margin-bottom: 6px; }
.order-page-actions a:last-child { margin-inline-start: auto; }
.shipment, .order-delivery { padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.shipment [hidden] { display: none; }
.shipment-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.shipment-heading h2 { margin: 0; }
.shipment-badge { padding: 2px 8px; border-radius: 999px; background: #efe6db; color: #554b40; white-space: nowrap; font-size: 12px; }
.shipment-badge[data-state="pending"] { background: #f3e3c5; color: #5a421e; }
.shipment-badge[data-state="shipped"] { background: #dfebdd; color: #345039; }
.shipment-badge[data-state="canceled"] { background: #f0deda; color: #6d3730; }
.partial-canceled-badge { width: fit-content; background: #f0deda; color: #6d3730; }
.return-status-badge { width: fit-content; }
.return-status-badge[data-return-stage="guided"], .return-status-badge[data-return-stage="needs-review"] { background: #f3e3c5; color: #5a421e; }
.return-status-badge[data-return-stage="returned"], .return-status-badge[data-return-stage="confirmed"] { background: #dfebdd; color: #345039; }
a.return-status-badge { text-underline-offset: 3px; }
.shipment-fields { display: grid; gap: 8px 14px; }
.shipment-fields label { margin-top: 0; }
.shipment-saved { margin: 0; }
.shipment-saved dt { color: var(--muted); font-size: 13px; }
.shipment-saved dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.shipment-feedback { margin: 8px 0 0; color: var(--muted); }
.shipment-feedback:empty { margin: 0; }
@media (min-width: 560px) {
  .shipment-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ordered-pieces li {
  display: grid;
  grid-template-columns: clamp(52px, 15vw, 88px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ordered-photo { aspect-ratio: 4 / 5; }
.ordered-photo a, .ordered-photo img { display: block; width: 100%; height: 100%; }
.ordered-photo img { object-fit: contain; }
.ordered-photo:focus-within { outline: 2px solid var(--action); outline-offset: 2px; }
.ordered-piece-info { overflow-wrap: anywhere; }
.ordered-piece-info .partial-canceled-badge { color: #6d3730; }
.ordered-piece-price { white-space: nowrap; font-variant-numeric: tabular-nums; }

.cart { background: linear-gradient(transparent, var(--softened-cotton) 130px); }
.cart h1 { margin-bottom: 13px; font-size: clamp(23px, 3vw, 33px); }
.cart-message { color: var(--muted); }
.cart-message:not(:empty) { margin-bottom: 12px; }
.cart-body { display: grid; gap: 22px; align-items: start; }
.cart-items { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.cart-items:empty { display: none; }
.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item { display: grid; grid-template-columns: clamp(54px, 18vw, 86px) minmax(0, 1fr); align-items: center; gap: 10px; text-decoration: none; }
a.cart-item:hover strong { text-decoration: underline; }
.cart-photo { aspect-ratio: 4 / 5; }
.cart-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cart-item-details { display: grid; gap: 2px; overflow-wrap: anywhere; }
.cart-item-details > span { color: var(--muted); font-size: 13px; }
.cart-item-details > span:empty { display: none; }
.cart-item-details .cart-availability { justify-self: start; padding: 1px 5px; border-radius: 3px; background: #eedbc8; color: var(--ink); }
.cart-remove { min-width: 44px; min-height: 44px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: transparent; font: inherit; font-size: 13px; }
.cart-summary { min-width: 0; }
.cart-sum { padding: 12px 0; border-block: 1px solid var(--line); }
.cart-sum dl { display: grid; gap: 6px; margin: 0; }
.cart-sum dl > div { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; }
.cart-sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.cart-grand-total { margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--line); font-weight: 650; }
.cart-grand-total dd { font-size: 20px; }
.cart-sum > p { margin-top: 5px; }
.cart-order { margin-bottom: 8px; }
.cart-order-status { padding: 8px 0; color: var(--ink); }
.cart-order-status:empty { display: none; }
.cart-return { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
.checkout-order-link {
  display: flex;
  width: fit-content;
  max-width: 100%;
  padding-inline: 12px;
  border-radius: 6px;
  background: var(--action);
  color: var(--action-text);
  font-weight: 600;
  text-decoration: none;
}
.order-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.order-cancel-confirm { display: grid; gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.order-cancel-button {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #af8c82;
  border-radius: 6px;
  background: #fcf6ee;
  color: #6d3730;
  font: inherit;
  font-weight: 600;
}
.confirm-cancel-button { background: #6d3730; color: #fffdf7; }
.order-cancel-button:disabled { opacity: .7; }
.claim-picker li { grid-template-columns: 24px clamp(44px, 13vw, 68px) minmax(0, 1fr) auto; gap: 8px; }
.claim-picker input { width: 20px; height: 20px; margin: 0; accent-color: var(--action); }

.delivery-heading, .account-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
}
.delivery-heading h2, .account h2 { font-size: 17px; }
.delivery-heading a { min-height: 44px; display: inline-grid; place-items: center; }
.test-address-note { color: var(--muted); font-size: 13px; }
.test-address-note:empty { display: none; }
.address-fieldset, .account-form fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.address-fields, .account-fields, .checkout-address { display: grid; gap: 10px; }
.address-fields label, .account-field { display: grid; gap: 4px; min-width: 0; font-weight: 600; }
.address-fields input, .account-field input, .account-field select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fcf6ee;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}
.address-fields input[readonly] { background: #f3e9de; }
.postal-code-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px;
  min-width: 0;
}
.postal-code-field:has(button[hidden]) { grid-template-columns: minmax(0, 1fr); }
.purchase .address-search-button {
  min-height: 44px;
  padding: 0 10px;
  border-color: var(--line);
  background: #fcf6ee;
  color: var(--ink);
  white-space: nowrap;
}
.address-search-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fcf6ee;
}
.address-search-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 4px 6px 4px 8px;
}
.address-search-frame { height: 440px; height: clamp(400px, 62svh, 550px); }
.account-check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.account-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--action); }
.address-save-options { margin-top: 2px; }
.account { --content-width: 680px; }
.account > .test-address-note { margin-bottom: 12px; }
.account-feedback { margin-bottom: 8px; }
.account-feedback:empty { display: none; }
.account-header { margin-bottom: 12px; overflow-wrap: anywhere; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.account-inquiry-link { gap: 5px; }
.account-notifications { margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.account-notification-list a { padding-inline: 4px; }
.account-notification-list time { color: var(--muted); font-size: 12px; }
.saved-addresses { padding: 0; margin: 0; list-style: none; }
.saved-addresses li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.saved-addresses p { flex: 1 1 240px; min-width: 0; }
.plain-button {
  min-height: 44px;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.address-add { margin-top: 20px; }

.inquiries { --content-width: 760px; }
.inquiries h1 { overflow-wrap: anywhere; }
.inquiry-list a { align-items: start; }
.inquiry-list-copy { display: grid; gap: 3px; overflow-wrap: anywhere; }
.inquiry-list-copy > span, .inquiry-list time { color: var(--muted); font-size: 12px; }
.inquiry-list-copy [data-preview] { font-size: 14px; }
.inquiry-unread-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.unread-badge { padding: 2px 8px; border-radius: 999px; background: #e4e9d8; color: #394634; font-size: 12px; font-weight: 650; }
.conversation-messages { display: grid; gap: 14px; min-width: 0; padding: 0; margin: 0; list-style: none; }
.conversation-message { min-width: 0; max-width: min(92%, 560px); justify-self: start; scroll-margin-block: 12px; }
.message-outgoing { justify-self: end; }
.message-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.message-outgoing .message-meta { justify-content: end; }
.message-content { padding: 9px 12px; background: #fcf6ee; border: 1px solid var(--line); border-radius: 9px; overflow-wrap: anywhere; }
.message-outgoing .message-content { background: #e7ebdf; border-color: #d8ded0; }
.message-content p { white-space: pre-wrap; }
.message-order-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 3px; font-size: 13px; text-underline-offset: 3px; }
.order-request-message .message-content > p:first-child { font-weight: 650; }
.order-request-items li { grid-template-columns: clamp(42px, 12vw, 64px) minmax(0, 1fr) auto; gap: 8px; }
.partial-request-amount, .return-reason { margin-top: 8px; font-size: 13px; }
.return-progress { display: grid; gap: 8px; justify-items: start; margin-top: 10px; }
.return-progress > form { width: 100%; display: grid; gap: 8px; justify-items: start; }
.return-progress .orders-status { margin: 0; font-size: 13px; }
.inspection-form label { display: grid; gap: 4px; width: 100%; }
.inspection-form input, .inspection-form select {
  width: 100%; min-height: 44px; padding: 6px 8px; font: inherit;
  border: 1px solid var(--line); border-radius: 6px; background: #fcf6ee; color: var(--ink);
}
.return-inspection-details { display: grid; gap: 3px; margin: 6px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.return-inspection-details dt { color: var(--muted); }
.return-inspection-details dd { margin: 0 0 3px; white-space: pre-wrap; }
.partial-refund { display: grid; gap: 4px; margin: 8px 0 0; font-size: 14px; }
.partial-refund > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.partial-refund dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.partial-refund > div:last-child { padding-top: 6px; border-top: 1px solid var(--line); font-weight: 650; }
[data-partial-total] > p { margin-top: 8px; color: var(--muted); }
.partial-request-decision { display: grid; gap: 6px; justify-items: start; margin-top: 8px; }
.partial-request-decision .orders-status { margin: 0; font-size: 13px; }
.message-form { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.message-form label, .return-form label, .return-progress label { margin: 0; font-weight: 650; }
.message-form textarea, .return-form textarea, .return-progress textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fcf6ee;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.message-attachment {
  display: flex;
  gap: 0 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 8px;
  border-radius: 6px;
  background: #efe6db;
}
.message-attachment a { flex: 1 1 190px; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.message-attachment .plain-button { min-height: 44px; color: var(--ink); background: transparent; font-size: 13px; font-weight: 400; }
.message-attachment .plain-button:disabled { color: var(--muted); }

@media (min-width: 560px) {
  .account .address-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account .address-wide { grid-column: 1 / -1; }
}

@media (min-width: 840px), (horizontal-viewport-segments: 2) {
  .cart-body { grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr); column-gap: clamp(24px, 5vw, 64px); }
  .cart-summary { grid-column: 2; }
}

@media (min-width: 640px), (orientation: landscape) and (max-height: 500px) {
  .shop { --gutter: clamp(24px, 5vw, 56px); }
  .content { padding-block: 34px 48px; }
  .products { gap: 28px clamp(16px, 3vw, 30px); }
  .products h3 { font-size: 16px; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: 0; padding-block: 50px 14px; }
  .hero-wordmark { font-size: clamp(32px, 13svh, 62px); }
}

@media (min-width: 640px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 640px), (horizontal-viewport-segments: 2) {
  .product[data-product] {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas:
      "photo title"
      "photo note"
      "photo purchase"
      "photo description";
    column-gap: clamp(22px, 5vw, 64px);
    align-items: start;
  }
  .product-title { grid-area: title; }
  .product-title h1 { font-size: clamp(21px, 2.6vw, 31px); }
  .product[data-product] > .sample-note { grid-area: note; }
  .product-image { grid-area: photo; margin-bottom: 0; }
  .product-photo { max-height: 72svh; }
  .product[data-product] form { grid-area: purchase; }
  .product-description { grid-area: description; }
}

@media (horizontal-viewport-segments: 2) {
  .shop {
    --gutter: 16px;
    --content-width: 100%;
    --left-segment: env(viewport-segment-width 0 0);
    --right-segment: env(viewport-segment-width 1 0);
    --hinge-width: calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0));
  }
  .hero-art {
    display: grid;
    grid-template-columns: minmax(0, var(--left-segment)) minmax(0, var(--right-segment));
    align-items: center;
    column-gap: var(--hinge-width);
    width: 100%;
  }
  .hero-image { grid-area: 1 / 2; }
  .hero-wordmark {
    position: static;
    grid-area: 1 / 1;
    justify-self: center;
    font-size: clamp(34px, calc(var(--left-segment) * .16), 72px);
  }
  .products, .product[data-product], .cart-body {
    grid-template-columns: minmax(0, calc(var(--left-segment) - 32px)) minmax(0, calc(var(--right-segment) - 32px));
    column-gap: calc(var(--hinge-width) + 32px);
  }
  .catalog h2, .catalog .sample-note { max-width: calc(var(--left-segment) - 32px); }
  .operator, .missing, .account, .customer-orders, .inquiries { max-width: var(--left-segment); margin-inline: 0 auto; padding-inline: var(--gutter); }
  .masthead { justify-items: start; }
  .masthead .wordmark { width: var(--left-segment); }
}
