.bag-link {
  align-items: center;
  color: #fff;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 46px;
}

.bag-link svg { height: 34px; stroke-width: 1.45; width: 34px; }
.bag-link:hover { color: #c8edc8; }
.bag-link b { align-items: center; background: #7acb24; border-radius: 999px; color: #10271f; display: inline-flex; font-size: .68rem; height: 20px; justify-content: center; min-width: 20px; padding: 0 5px; position: absolute; right: -2px; top: 1px; }
.bag-link b[hidden] { display: none; }

.bag-toast {
  align-items: center;
  background: #000;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  bottom: 24px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
  color: #fff;
  display: flex;
  font-size: .82rem;
  gap: 14px;
  left: 50%;
  max-width: calc(100% - 32px);
  opacity: 0;
  padding: 11px 12px 11px 17px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 20;
}

.bag-toast.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.bag-toast span { min-width: 0; }
.bag-toast a { background: #fff; border-radius: 999px; color: #000; font-size: .76rem; font-weight: 700; padding: 8px 12px; white-space: nowrap; }

.bag-main {
  background: #fff;
  min-height: calc(100svh - var(--site-header-height));
  padding: 20px 0 clamp(60px, 7vw, 96px);
}

.bag-shell { margin: 0 auto; width: calc(100% - 48px); }
.bag-page-intro { margin-left: clamp(30px, 4vw, 58px); max-width: 980px; }
.bag-page-intro .eyebrow { margin-bottom: 18px; }
.bag-page-intro h1 { color: #000; font-size: clamp(2.8rem, 4vw, 4.5rem); letter-spacing: -.06em; line-height: .98; margin-bottom: 28px; max-width: 850px; }
.bag-page-intro > p:not(.eyebrow) { color: #4d4d4d; font-size: clamp(.98rem, 1.15vw, 1.12rem); line-height: 1.38; max-width: 500px; }

@media (min-width: 761px) {
  .bag-page-intro h1 { max-width: none; white-space: nowrap; }
}

.bag-layout { align-items: start; display: grid; grid-template-columns: minmax(0, 1fr); margin: clamp(36px, 4vw, 48px) clamp(30px, 4vw, 58px) 0; }
.bag-items-panel, .bag-summary, .inquiry-form-panel { background: #fff; border: 1px solid #e2e2e2; border-radius: 8px; box-shadow: 0 18px 50px rgba(0, 0, 0, .08); }
.bag-items-panel { min-width: 0; padding: clamp(20px, 3vw, 34px); }
.bag-panel-heading { align-items: center; display: flex; gap: 14px; justify-content: space-between; }
.bag-panel-heading h2, .bag-summary h2, .inquiry-form-panel h2 { color: #000; font-size: clamp(1.8rem, 2.5vw, 2.75rem); letter-spacing: -.06em; line-height: 1; margin: 0; }
.bag-count { align-items: center; background: #000; border-radius: 999px; color: #fff; display: inline-flex; font-size: .76rem; font-weight: 700; height: 28px; justify-content: center; min-width: 28px; padding: 0 8px; }
.bag-items-list { display: grid; gap: 12px; list-style: none; margin: 22px 0 0; padding: 0; }
.bag-item { align-items: center; background: #fff; border: 1px solid #d6d6d6; border-radius: 5px; display: grid; gap: 16px; grid-template-columns: 88px minmax(0, 1fr) auto; padding: 12px; }
.bag-item__image { align-items: center; background: #f1f2f3; border-radius: 11px; display: flex; height: 78px; justify-content: center; overflow: hidden; width: 88px; }
.bag-item__image img { height: 80%; object-fit: contain; width: 80%; }
.bag-item__copy { min-width: 0; }
.bag-item__copy h3 { color: #000; font-size: 1rem; margin: 0 0 5px; }
.bag-item__copy p { color: rgba(0, 0, 0, .58); font-size: .78rem; line-height: 1.35; margin: 0; }
.bag-item__controls { align-items: center; display: flex; gap: 10px; justify-content: flex-end; }
.bag-item__controls label { color: rgba(0, 0, 0, .62); display: grid; font-size: .7rem; gap: 4px; }
.bag-item__controls input { border: 1px solid #d6d6d6; border-radius: 5px; color: #000; font: inherit; font-size: .78rem; min-height: 34px; padding: 6px 8px; width: 120px; }
.bag-remove { align-items: center; background: transparent; border-radius: 6px; color: rgba(0, 0, 0, .58); display: inline-flex; height: 34px; justify-content: center; padding: 6px; transition: background .2s ease, color .2s ease; width: 34px; }
.bag-remove:hover { background: #f1f2f3; color: #000; }
.bag-remove svg { height: 18px; stroke-width: 1.55; width: 18px; }
.bag-empty { color: rgba(0, 0, 0, .58); font-size: .9rem; margin: 28px 0 0; }
.bag-items-panel.is-empty .bag-items-list, .bag-items-panel.is-empty .bag-clear { display: none; }
.bag-clear { background: transparent; color: rgba(0, 0, 0, .62); font-size: .76rem; margin-top: 20px; padding: 0; text-decoration: underline; }
.bag-panel-footer { align-items: flex-end; display: flex; gap: 20px; justify-content: space-between; margin-top: 24px; }
.bag-panel-footer__secondary { min-width: 0; }
.bag-panel-footer .bag-clear { margin-top: 0; }
.bag-panel-footer .bag-empty-actions { margin-top: 0; }
.bag-panel-proceed { flex: 0 0 auto; font-size: .8rem; gap: 8px; padding: 11px 16px; }
.bag-panel-proceed[aria-disabled="true"] { cursor: not-allowed; opacity: .4; pointer-events: none; }
.bag-panel-proceed[hidden] { display: none; }

.bag-summary { padding: clamp(20px, 3vw, 30px); position: sticky; top: 24px; }
.bag-summary h2 { font-size: 1.8rem; margin-bottom: 18px; }
.bag-summary__line { border-top: 1px solid rgba(0, 0, 0, .13); color: rgba(0, 0, 0, .66); display: flex; font-size: .82rem; justify-content: space-between; padding: 13px 0; }
.bag-summary__note { color: rgba(0, 0, 0, .55); font-size: .78rem; line-height: 1.45; margin: 0 0 22px; }
.bag-main .button--dark { background: #000; }
.bag-summary .button, .bag-empty-actions .button { width: 100%; }
.bag-summary .button[aria-disabled="true"] { cursor: not-allowed; opacity: .4; pointer-events: none; }
.bag-empty-actions { margin-top: 26px; max-width: 230px; }

.inquiry-layout { align-items: start; display: grid; grid-template-columns: minmax(0, 1fr); margin: clamp(36px, 4vw, 48px) clamp(30px, 4vw, 58px) 0; }
.inquiry-form-panel {
  justify-self: start;
  min-height: 545px;
  padding: clamp(30px, 4vw, 58px);
  width: 50%;
}
.inquiry-form-panel h2 { margin-bottom: 8px; }
.inquiry-form-panel > p { color: rgba(0, 0, 0, .62); font-size: .92rem; margin-bottom: 26px; }
.bag-form-grid { display: grid; gap: 17px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bag-form-field { display: grid; gap: 7px; }
.bag-form-field--full { grid-column: 1 / -1; }
.bag-form-field > span { color: rgba(0, 0, 0, .68); font-size: .8rem; font-weight: 700; }
.bag-form-field input, .bag-form-field textarea { background: #fff; border: 1px solid #d6d6d6; border-radius: 5px; color: #000; font: inherit; font-size: 1rem; min-height: 48px; padding: 12px 14px; width: 100%; }
.bag-form-field textarea { min-height: 130px; resize: vertical; }
.bag-form-actions { align-items: center; display: flex; gap: 18px; justify-content: space-between; margin-top: 24px; }
.bag-form-back { background: transparent; color: rgba(0, 0, 0, .7); font-size: .86rem; padding: 8px 0; text-decoration: underline; }
.bag-form-actions .button { min-width: 190px; }
.bag-form-status { background: rgba(122, 203, 36, .16); border-radius: 10px; color: #173b32; font-size: .82rem; line-height: 1.4; margin: 18px 0 0; padding: 12px 14px; }
.bag-form-status[hidden] { display: none; }

@media (max-width: 860px) {
  .bag-layout, .inquiry-layout { grid-template-columns: 1fr; }
  .bag-summary { position: static; }
}

@media (max-width: 980px) {
  .inquiry-form-panel { max-width: 760px; width: 100%; }
}

@media (max-width: 620px) {
  .bag-link { height: 44px; width: 44px; }
  .bag-link svg { height: 32px; width: 32px; }
  .bag-main { padding-top: 42px; }
  .bag-shell { width: min(calc(100% - 32px), 560px); }
  .bag-page-intro { margin-left: 0; }
  .bag-page-intro h1 { font-size: clamp(2.15rem, 9vw, 3.15rem); line-height: .98; }
  .bag-layout, .inquiry-layout { margin: 34px 0 0; }
  .bag-toast { bottom: max(14px, env(safe-area-inset-bottom)); gap: 9px; min-width: 0; padding: 9px 9px 9px 13px; }
  .bag-toast span { font-size: .74rem; line-height: 1.2; max-width: 19ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bag-toast a { font-size: .7rem; padding: 8px 10px; }
  .bag-panel-footer { align-items: center; flex-direction: row; gap: 12px; }
  .bag-panel-footer__secondary { flex: 1 1 auto; }
  .bag-panel-proceed { align-self: center; flex: 0 1 auto; font-size: .7rem; gap: 5px; min-width: 0; padding: 10px 11px; white-space: nowrap; }
  .bag-panel-proceed svg { height: 16px; width: 16px; }
  .bag-clear { min-height: 44px; }
  .bag-remove { flex: 0 0 44px; height: 44px; width: 44px; }
  .bag-item { align-items: start; grid-template-columns: 64px minmax(0, 1fr); }
  .bag-item__image { height: 64px; width: 64px; }
  .bag-item__controls { align-items: end; grid-column: 2; justify-content: flex-start; }
  .bag-item__controls input { width: 150px; }
  .bag-form-grid { grid-template-columns: 1fr; }
  .bag-form-field--full { grid-column: auto; }
  .bag-form-actions { align-items: stretch; flex-direction: column-reverse; }
  .bag-form-actions .button { width: 100%; }
  .bag-form-back { align-self: flex-start; }
  .inquiry-form-panel { border: 0; border-radius: 0; box-shadow: none; min-height: 0; padding: 0; width: 100%; }
}
