.nh-cart { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(660px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; border-radius: 0; background: var(--paper, #eae9e2); color: #023f17; box-shadow: -4px 0 18px #00000015; overflow-x: hidden; overflow-y: auto; }
.nh-cart[open] { display: flex; flex-direction: column; }
.nh-cart::backdrop { background: #d9d9d9bd; }
.nh-cart *, .nh-cart *::before, .nh-cart *::after { box-sizing: border-box; }
.nh-cart button { font: inherit; color: inherit; cursor: pointer; }
.nh-cart button:focus-visible { outline: 2px solid #023f17; outline-offset: 4px; }
.nh-cart button:disabled { opacity: .4; cursor: default; }
.nh-cart-content { display: flex; flex-direction: column; flex: 1 0 auto; padding: 88px 74px 0; }
.nh-cart-header { position: relative; padding-bottom: 28px; border-bottom: 1px solid #a7b4a9; }
.nh-cart-back, .nh-cart-close { display: flex; align-items: center; justify-content: center; border: 0; background: transparent; padding: 8px 0; }
.nh-cart-back { gap: 8px; font-size: 12px !important; }
.nh-cart-back img { transform: rotate(180deg); object-fit: contain; }
.nh-cart-close { position: absolute; right: 0; top: -5px; width: 40px; height: 40px; }
.nh-cart h2 { margin: 25px 0 20px; font-size: 24px; line-height: 1.2; font-weight: 500; }
.nh-cart-bag { position: absolute; right: 19px; top: 36px; }
.nh-cart-greeting, .nh-cart-intro { font-family: Caveat, cursive; margin: 0; }
.nh-cart-greeting { font-size: 22px; line-height: 1.3; }
.nh-cart-intro { font-size: 18px; margin-top: 12px; color: #111; }
.nh-cart-items { flex: 1 0 auto; min-height: clamp(140px, calc(100dvh - 610px), 390px); }
.nh-cart-item { display: grid; grid-template-columns: 87px minmax(0, 1fr) auto; column-gap: 28px; row-gap: 7px; padding: 20px 0; border-bottom: 1px solid #b9c2b8; }
.nh-cart-photo { grid-column: 1; grid-row: 1 / 4; width: 87px; height: 86px; object-fit: cover; border-radius: 19px; }
.nh-cart-photo-empty { background: #d6ddcd; }
.nh-cart-item h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.55; text-transform: uppercase; overflow-wrap: anywhere; }
.nh-cart-edit { align-self: start; padding: 4px 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 2px; font-size: 12px !important; white-space: nowrap; }
.nh-cart-details { grid-column: 2 / 4; margin: 0; color: #111; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.nh-cart-quantity { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.nh-cart-quantity button, .nh-cart-line-total button { display: grid; place-items: center; padding: 3px; border: 0; background: transparent; min-width: 30px; min-height: 32px; }
.nh-cart-line-total { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.nh-cart-line-total strong { font-size: 16px; font-weight: 400; white-space: nowrap; }
.nh-cart-empty { display: flex; flex-direction: column; align-items: center; padding-top: 72px; color: #000; }
.nh-cart-empty img { width: 270px; height: 179px; max-width: 100%; object-fit: contain; }
.nh-cart-empty p { margin: 52px 0 0; font-size: 16px; line-height: 1.25; text-align: center; }
.nh-cart-is-empty .nh-cart-header { border: 0; padding-bottom: 0; }
.nh-cart-is-empty h2 { color: #000; }
.nh-cart-is-empty .nh-cart-bag, .nh-cart-is-empty .nh-cart-greeting, .nh-cart-is-empty .nh-cart-intro, .nh-cart-is-empty .nh-cart-notice { display: none; }
.nh-cart-is-empty .nh-cart-items { min-height: clamp(350px, calc(100dvh - 527px), 464px); }
.nh-cart-is-empty .nh-cart-back { gap: 17px; font-weight: 600; }
.nh-cart-is-empty .nh-cart-back img { width: 32px; }
.nh-cart-is-empty .nh-cart-total { color: #000; font-weight: 600; }
.nh-cart-is-empty .nh-cart-total strong { font-weight: 600; }
.nh-cart-is-empty .nh-cart-submit, .nh-cart-is-empty .nh-cart-clear { border-radius: 0; font-weight: 400 !important; }
.nh-cart-is-empty .nh-cart-clear { flex-direction: row-reverse; color: #000; }
.nh-cart-is-empty .nh-cart-footer { margin-top: 28px; }
.nh-cart-total { display: flex; justify-content: space-between; padding: 15px 0 31px; border-top: 1px solid #a7b4a9; font-size: 20px; }
.nh-cart-total strong { font-weight: 500; }
.nh-cart-submit, .nh-cart-clear { width: 100%; min-height: 48px; padding: 12px 18px; display: flex; align-items: center; justify-content: center; gap: 20px; border: 1px solid #023f17; border-radius: 6px; font-size: 15px !important; font-weight: 500 !important; }
.nh-cart-submit { background: #023f17; color: #fff !important; }
.nh-cart-clear { background: transparent; margin-top: 12px; }
.nh-cart-notice { margin: 12px 0 0; font-size: 11px; line-height: 1.5; text-align: center; }
.nh-cart-note { margin-bottom: 20px; }
.nh-cart-note label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 500; }
.nh-cart-note label span { font-size: 13px; font-weight: 400; }
.nh-cart-note textarea { display: block; width: 100%; min-height: 90px; padding: 12px; resize: vertical; border: 1px solid var(--sage); border-radius: 6px; background: #fff; color: var(--ink); font: 16px/1.5 Inter, sans-serif; }
.nh-cart-note textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.nh-cart-note p { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--green); }
.nh-cart-footer { position: relative; flex: 0 0 112px; margin-top: 0; overflow: hidden; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 22px; }
.nh-cart-wave { position: absolute; bottom: 0; left: 0; width: 100%; height: 112px; }
.nh-cart-heart { position: absolute; left: calc(50% - 12px); bottom: 84px; }
.nh-cart-footer p { position: relative; text-align: center; font-family: Caveat, cursive; font-size: 18px; line-height: 1.3; margin: 0; z-index: 1; }
.nh-cart-footer small { display: block; font-size: 14px; margin-top: 5px; }
.nh-cart-leaf { position: absolute; right: -38px; bottom: -20px; }
@media (max-width: 600px) {
  .nh-cart-content { padding: 55px 31px 0; }
  .nh-cart-back { font-size: 9px !important; }
  .nh-cart-back img { width: 18px; }
  .nh-cart h2 { margin-top: 8px; margin-bottom: 16px; font-size: 24px; }
  .nh-cart-bag { right: -5px; top: 41px; }
  .nh-cart-header { padding-bottom: 29px; }
  .nh-cart-greeting { font-size: 18px; }
  .nh-cart-intro { font-size: 14px; margin-top: 12px; }
  .nh-cart-items { min-height: clamp(140px, calc(100dvh - 530px), 360px); }
  .nh-cart-is-empty h2 { font-size: 15px; margin-top: 8px; margin-bottom: 0; }
  .nh-cart-is-empty .nh-cart-back { gap: 9px; }
  .nh-cart-is-empty .nh-cart-back img { width: 18px; }
  .nh-cart-is-empty .nh-cart-items { min-height: clamp(365px, calc(100dvh - 380px), 480px); }
  .nh-cart-empty { padding-top: 98px; }
  .nh-cart-empty img { width: 254px; height: 168px; }
  .nh-cart-empty p { margin-top: 108px; font-size: 14px; }
  .nh-cart-is-empty .nh-cart-footer { margin-top: 10px; }
  .nh-cart-item { grid-template-columns: 73px minmax(0, 1fr) auto; column-gap: 13px; padding: 18px 0; }
  .nh-cart-photo { width: 73px; height: 76px; border-radius: 16px; }
  .nh-cart-item h3 { font-size: 12px; }
  .nh-cart-edit { font-size: 9px !important; }
  .nh-cart-details { font-size: 9px; }
  .nh-cart-quantity { gap: 4px; }
  .nh-cart-line-total { gap: 5px; }
  .nh-cart-line-total strong { font-size: 13px; }
  .nh-cart-line-total img { width: 25px; height: 25px; }
  .nh-cart-total { font-size: 15px; padding: 12px 0 16px; }
  .nh-cart-submit, .nh-cart-clear { min-height: 39px; padding: 10px; gap: 12px; font-size: 12px !important; }
  .nh-cart-submit img { width: 24px; height: 12px; }
  .nh-cart-clear { margin-top: 14px; }
  .nh-cart-clear img { width: 18px; height: 18px; }
  .nh-cart-footer { flex-basis: 112px; padding-bottom: 27px; }
  .nh-cart-wave { height: 77px; }
  .nh-cart-heart { bottom: 66px; }
  .nh-cart-footer p { font-size: 14px; }
  .nh-cart-footer small { font-size: 10px; margin-top: 3px; }
  .nh-cart-leaf { width: 162px; height: 100px; right: -41px; bottom: -10px; }
}
@media (max-width: 359px) {
  .nh-cart-content { padding-inline: 20px; }
  .nh-cart h2 { font-size: 21px; }
  .nh-cart-bag { width: 65px; right: 0; }
  .nh-cart-item { grid-template-columns: 60px minmax(0, 1fr) auto; column-gap: 9px; }
  .nh-cart-photo { width: 60px; height: 66px; }
}

.nh-cart-note summary { cursor:pointer; font-size:13px; padding-block:10px; }
.nh-cart-note[open] label { margin-top:8px; }
.nh-cart-submit,.nh-cart-clear { border-radius:0; }
