.composer {
  padding-block: 26px 34px;
}
.composer-header { margin-bottom: 20px; }
.composer-form { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,1fr); gap: 20px; align-items: start; }
.composer-main { display: grid; gap: 16px; min-width: 0; }
.composer-group, .composer-summary {
  min-width: 0;
  background: #fffaf6;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.composer-group { margin: 0; padding: 10px 16px 16px; }
.composer-group legend, .composer-contact legend {
  padding-inline: 4px;
  color: var(--wine);
  font: 400 22px/1.2 var(--serif);
}
.composer-formats, .composer-decorations { display: grid; gap: 8px; }
.composer-formats { grid-template-columns: repeat(3,minmax(0,1fr)); }
.composer-decorations { grid-template-columns: repeat(2,minmax(0,1fr)); }
.composer-choice { display: grid; position: relative; min-width: 0; cursor: pointer; }
.composer-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.composer-choice span {
  display: grid; align-content: center; text-align: center; min-height: 50px;
  padding: 8px 4px; border: 1px solid var(--line); border-radius: 8px; line-height: 1.2;
}
.composer-choice input:checked + span {
  border-color: var(--wine); background: #f4e4e1; color: var(--wine);
  box-shadow: inset 0 0 0 1px var(--wine);
}
.composer-choice input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 3px; }
.composer-choice strong { font: 400 18px/1.2 var(--serif); }
.composer-choice small { color: var(--muted); font-size: 12px; margin-top: 4px; }
.composer-decorations .composer-choice span { padding: 0; overflow: hidden; gap: 0; }
.composer-decorations img, .composer-custom {
  display: block; width: 100%; height: 78px; object-fit: cover; background: #f3e6dc;
}
.composer-custom { display: grid; place-items: center; color: var(--wine); font: 28px var(--serif); }
.composer-decorations strong { padding: 9px 4px; font-size: 16px; }
.composer-hint { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 8px 0; }
.composer-flavors { margin: 7px 0; padding: 0; list-style: none; }
.composer-flavors li {
  display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center;
  gap: 10px; padding: 5px 0; border-bottom: 1px solid #eddfd5;
}
.composer-flavors img { width: 48px; height: 34px; object-fit: contain; }
.composer-counter { display: grid; grid-template-columns: 44px 25px 44px; align-items: center; text-align: center; font-variant-numeric: tabular-nums; }
.composer-counter button {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  background: #fbf2e9; color: var(--wine); font-size: 19px;
}
.composer-counter button:disabled { opacity: .43; cursor: default; }
.composer-count { margin-top: 8px; color: var(--wine); font-weight: 600; }
.composer-field { display: block; color: var(--ink); margin: 14px 0 4px; }
.composer-field span { color: var(--muted); font-size: 12px; margin-inline-start: 4px; }
.composer-form input:not([type=radio], [type=checkbox]), .composer-form textarea, .composer-form select {
  width: 100%; min-height: 44px; padding: 8px 10px;
  color: var(--ink); background: #fffdf9; border: 1px solid #cdb2a2; border-radius: 7px;
  font-size: 16px;
}
.composer-form textarea { resize: vertical; }
.composer-summary { position: sticky; top: 92px; overflow: hidden; }
.composer-summary > img { width: 100%; aspect-ratio: 2.3; object-fit: cover; }
.composer-summary-body { padding: 16px; }
.composer-summary h3 { font-size: 28px; margin-bottom: 6px; }
.composer-price { color: var(--wine); font: 22px var(--serif); margin-top: 6px; }
.composer-selected { padding-left: 18px; margin-top: 7px; color: var(--muted); font-size: 14px; }
.composer-contact { display: grid; gap: 5px; min-width: 0; margin: 14px 0 8px; padding: 0; border: 0; }
.composer-contact legend { padding: 0; margin-bottom: 6px; }
.composer-contact label { font-size: 14px; margin-top: 3px; }
.composer-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.composer-submit { width: 100%; min-height: 46px; }
.composer-submit:disabled { opacity: .75; cursor: wait; }
.composer-status:not(:empty), .composer-notice { margin-top: 10px; padding: 10px; border-radius: 7px; background: #f4e4e1; color: var(--deep); }
.composer-status[data-result="success"] { background: #e7f2ea; color: #174e3b; }
@media (max-width:760px) {
  .composer-form { grid-template-columns: 1fr; gap: 16px; }
  .composer-summary { position: static; }
  .composer-group { padding-inline: 10px; }
  .composer-flavors li { grid-template-columns: 36px minmax(0,1fr) auto; gap: 6px; }
  .composer-flavors img { width: 36px; }
  .composer-flavors li > span { font-size: 14px; line-height: 1.25; }
  .composer-formats strong { font-size: 16px; }
}

.composer-payment {
  border-block: 1px solid var(--line);
  margin-block: 10px 12px;
  padding-block: 7px;
  font-size: 14px;
}
.composer-payment div { display: flex; justify-content: space-between; gap: 8px; padding-block: 3px; }
.composer-payment dd { margin: 0; color: var(--wine); font-weight: 600; white-space: nowrap; }
.composer-contact .composer-opt-in {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 9px;
  margin-block: 5px 8px; min-height: 44px; cursor: pointer;
}
.composer-opt-in input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--wine); }
