.ewce-shop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid #e8e3dc;
  border-radius: 12px;
  background: #faf8f4;
  color: #24221f;
}

.ewce-shop__copy { min-width: 0; }
.ewce-shop__eyebrow,
.ewce-modal__eyebrow {
  margin-bottom: 5px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .11em;
  color: #777067;
}
.ewce-shop__title { font-size: 17px; line-height: 1.35; font-weight: 600; }
.ewce-shop__button,
.ewce-checkout {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #2f493d;
  color: #fff;
  padding: 12px 18px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.ewce-shop__button:hover,
.ewce-checkout:hover { opacity: .91; }
.ewce-shop__button:disabled,
.ewce-checkout:disabled { opacity: .55; cursor: wait; }

html.ewce-modal-open { overflow: hidden; }
.ewce-modal { position: fixed; inset: 0; z-index: 1000000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ewce-modal__backdrop { position: absolute; inset: 0; background: rgba(27, 25, 22, .46); }
.ewce-modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(760px, 88vh);
  overflow: auto;
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  color: #26231f;
}
.ewce-modal__close { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; font-size: 28px; line-height: 1; color: #6e6860; cursor: pointer; }
.ewce-modal h3 { margin: 0 42px 7px 0; font-size: 24px; line-height: 1.18; }
.ewce-modal__intro { margin: 0 0 20px; color: #706a62; font-size: 14px; }
.ewce-items { border-top: 1px solid #eee9e2; }
.ewce-item { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid #eee9e2; cursor: pointer; }
.ewce-item input { position: absolute; opacity: 0; pointer-events: none; }
.ewce-item__check { width: 19px; height: 19px; flex: 0 0 19px; border: 1.5px solid #aaa197; border-radius: 5px; background: #fff; }
.ewce-item input:checked + .ewce-item__check { background: #2f493d; border-color: #2f493d; box-shadow: inset 0 0 0 4px #2f493d; }
.ewce-item input:checked + .ewce-item__check:after { content: "✓"; display: block; color: #fff; font-size: 13px; line-height: 17px; text-align: center; }
.ewce-item__copy { display: flex; flex: 1; align-items: baseline; justify-content: space-between; gap: 16px; min-width: 0; }
.ewce-item__copy strong { font-size: 15px; font-weight: 600; text-transform: capitalize; }
.ewce-item__copy small { color: #817970; white-space: nowrap; }
.ewce-modal__footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; }
.ewce-modal__count { color: #766f67; font-size: 13px; }
.ewce-status { min-height: 18px; margin-top: 10px; font-size: 12px; color: #8b4b3e; }

@media (max-width: 620px) {
  .ewce-shop { align-items: flex-start; flex-direction: column; gap: 14px; padding: 18px; }
  .ewce-shop__button { width: 100%; }
  .ewce-modal { align-items: flex-end; padding: 0; }
  .ewce-modal__panel { width: 100%; max-height: 90vh; border-radius: 18px 18px 0 0; padding: 24px 20px calc(22px + env(safe-area-inset-bottom)); }
  .ewce-modal__footer { align-items: stretch; flex-direction: column; }
  .ewce-checkout { width: 100%; }
  .ewce-modal__count { order: 2; text-align: center; }
}

/* v0.3 native commerce surfaces */
.ewce-shop__sub { margin-top: 4px; color: #706a62; font-size: 13px; line-height: 1.45; }
.ewce-inline { display:flex; align-items:baseline; gap:7px; margin:12px 0 24px; font-size:14px; line-height:1.45; color:#5f5a53; }
.ewce-inline__lead { font-weight:600; color:#34312d; }
.ewce-inline__button { appearance:none; border:0; padding:0; background:transparent; color:#2f493d; font:inherit; font-weight:700; cursor:pointer; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
.ewce-modal__servings { display:inline-block; margin:0 0 8px; color:#817970; font-size:13px; }
.ewce-modal__note { margin:12px 0 0; color:#8a837b; font-size:12px; line-height:1.4; text-align:right; }
@media (max-width:620px){.ewce-inline{display:block}.ewce-inline__lead{margin-right:4px}.ewce-modal__note{text-align:center}}


/* v0.3.2 UX polish */
.ewce-shop .ewce-shop__button,
.ewce-modal .ewce-checkout {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  text-decoration: none !important;
}
.ewce-shop .ewce-shop__button:hover,
.ewce-shop .ewce-shop__button:focus,
.ewce-modal .ewce-checkout:hover,
.ewce-modal .ewce-checkout:focus {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.ewce-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 28px;
  padding: 10px 12px 10px 14px;
  border: 1px solid #dfe5df;
  border-radius: 999px;
  background: #f5f7f4;
  color: #34312d;
  box-shadow: 0 1px 0 rgba(33, 55, 45, .03);
}
.ewce-inline__lead {
  font-size: 13px;
  font-weight: 600;
  color: #4b4944;
}
.ewce-inline .ewce-inline__button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 11px;
  background: #2f493d;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}
.ewce-inline .ewce-inline__button:hover,
.ewce-inline .ewce-inline__button:focus {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  background: #263d33;
}

.ewce-shop--legacy {
  clear: both;
}

@media (max-width: 620px) {
  .ewce-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    padding: 10px 10px 10px 12px;
  }
  .ewce-inline__lead { font-size: 12.5px; }
  .ewce-inline .ewce-inline__button { padding: 8px 10px; }
}
