.wf-checkout-composer {
  container-type: inline-size;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--ink, #201f22);
  font-family: inherit;
  text-align: start;
}
.wf-checkout-composer[hidden], .wf-checkout-composer [hidden],
.wf-checkout-list:not(:has(tbody tr)), [data-question-slot]:empty { display: none !important; }
.wf-checkout-composer h4 { margin: 0 0 8px; font: inherit; font-weight: 750; font-size: 1rem; line-height: 1.25; }
[data-question-slot] .wf-question-editor:not([data-editing]) > h4 { display: none; }
.wf-checkout-composer .wf-question-fields { display: grid; gap: 4px; }
.wf-checkout-composer :is(.wf-question-choices, .wf-composer-grid) {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px;
}
.wf-question-fields > textarea + .wf-question-choices,
.wf-question-fields > input + label { margin-top: 5px; }
.wf-checkout-composer :is(.wf-question-fields, .wf-composer-grid) label {
  display: block; min-width: 0; margin: 0; color: inherit;
  font-family: inherit; font-weight: 650; font-size: .84rem; line-height: 1.35;
}
.wf-checkout-composer label small { margin-inline-start: 4px; font-size: .76rem; font-weight: 500; opacity: .75; }
.wf-checkout-composer label [id$="cf_question_count"] { float: right; font-size: .72rem; }
:is(body, #dashboardContent) .wf-checkout-composer :is(.wf-question-fields, .wf-composer-grid) :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]), textarea, select) {
  box-sizing: border-box; display: block; width: 100%; min-width: 0; min-height: 38px; margin: 0;
  padding: 7px 10px; border: 2px solid #817b82 !important; border-radius: 9px; background: var(--paper, #fffefa);
  color: var(--ink, #201f22); box-shadow: none; font: inherit; font-size: .92rem; line-height: 1.3;
}
:is(body, #dashboardContent) .wf-checkout-composer :is(.wf-question-fields, .wf-composer-grid) select { appearance: auto; background-image: none; }
:is(body, #dashboardContent) .wf-checkout-composer :is(.wf-question-fields, .wf-composer-grid) :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]), select) { height: var(--wf-answer-control-height, 38px); }
.wf-checkout-composer :is(.wf-question-choices, .wf-composer-grid) label :is(input, select) { margin-top: 3px; }
.wf-checkout-composer .wf-question-fields textarea { resize: vertical; }
.wf-checkout-composer .wf-question-choices {
  --wf-answer-control-height: 52px;
  grid-template-columns: minmax(115px, 1fr) minmax(0, 2.3fr);
}
.wf-checkout-composer .wf-question-choices > label { display: flex; flex-direction: column; gap: 3px; }
.wf-question-choices > label > select { flex-grow: 1; }
:is(.wf-question-fields, .wf-composer-grid, .discount-row-amount) fieldset:is(.wf-answer-timing, .wf-discount-type) { min-width: 0; margin: 0; padding: 0; border: 0; }
:is(.wf-question-fields .wf-answer-timing, .wf-discount-type) > legend { margin: 0 0 3px; padding: 0; font-family: inherit; font-size: .84rem; font-weight: 650; line-height: 1.35; }
.wf-composer-segments {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px;
  padding: 3px; border: 1px solid #a59fa6; border-radius: 11px; background: #f2eff3;
}
.wf-answer-timing .wf-composer-segments { box-sizing: border-box; min-height: var(--wf-answer-control-height); }
:is(.wf-answer-timing, .wf-discount-type) .wf-composer-segments label {
  position: relative; display: flex; align-items: stretch; min-width: 0; margin: 0; cursor: pointer;
}
:is(.wf-answer-timing, .wf-discount-type) .wf-composer-segments input[type="radio"] {
  position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer;
}
.wf-composer-segments label > span {
  display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center;
  min-width: 0; padding: 3px; border-radius: 7px;
  text-align: center; color: #403a44; font-weight: 700; line-height: 1.25;
}
.wf-checkout-composer .wf-composer-segments small {
  display: block; margin: 2px 0 0; font-size: .72rem; font-weight: 500; color: inherit; opacity: 1;
}
.wf-composer-segments input:checked + span { background: #39323f; color: #fff; }
.wf-composer-segments input:focus-visible + span { outline: 2px solid #5937a8; outline-offset: 1px; }
@media (forced-colors: active) {
  .wf-composer-segments input:checked + span { outline: 2px solid Highlight; outline-offset: -2px; }
}
.wf-checkout-composer :is(input, select, textarea, button, summary):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.wf-checkout-list > summary {
  width: fit-content; padding: 5px 0; cursor: pointer; font-size: .84rem; font-weight: 650;
}
.wf-checkout-list { margin: 0 0 6px; min-width: 0; }
.wf-checkout-list-body { max-width: 100%; overflow-x: auto; }
.wf-checkout-list [data-checkout-count] { font-variant-numeric: tabular-nums; }
[data-discount-composer] .wf-discount-column { display: grid; align-content: start; gap: 8px; min-width: 0; }
.wf-discount-type .wf-composer-segments label > span { min-height: 32px; padding: 3px 8px; font-size: .84rem; }
.wf-discount-list { container-type: inline-size; }
.wf-discount-list > h4 { margin: 0 0 6px; font: 700 .86rem/1.4 system-ui, sans-serif; }
.wf-discount-list :is(.discount-codes-table, tbody) { display: block; width: 100%; }
.wf-discount-list thead { display: none; }
.wf-discount-list .discount-codes-table tbody tr {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px;
  padding: 12px 0; border-bottom: 1px solid #d9d8d1;
}
.wf-discount-list .discount-codes-table td { display: block; min-width: 0; padding: 0; border: 0; }
.wf-discount-list .discount-codes-table td input:not([type="checkbox"]) { min-width: 0; width: 100%; box-sizing: border-box; }
.wf-discount-list td[data-label]::before { content: attr(data-label); display: block; font-size: .84rem; font-weight: 650; }
.wf-discount-list .discount-codes-table td:is(.discount-row-amount, .discount-enabled-cell, [data-label="Delete"])::before { display: none; }
.wf-discount-list .discount-codes-table tbody td.discount-enabled-cell { grid-column: 1 / -1; }
.wf-discount-list .discount-enabled-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wf-discount-list .discount-row-amount > label { display: grid; gap: 3px; margin: 6px 0 0; font-size: .84rem; }
:is(.wf-question-actions, .discount-enabled-actions) label.wf-discount-switch {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; margin: 0; cursor: pointer; color: inherit; font: 650 .84rem/1.35 system-ui, sans-serif;
}
.wf-question-actions > .wf-discount-switch { margin-inline-end: auto !important; }
.wf-discount-switch input[type="checkbox"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
.wf-discount-switch > span {
  display: inline-flex; align-items: center; width: 36px; height: 22px; box-sizing: border-box;
  padding: 2px; border: 1px solid #797479; border-radius: 20px; background: #dedce0; pointer-events: none;
}
.wf-discount-switch > span::before {
  content: ""; display: block; width: 16px; height: 16px; border-radius: 50%;
  background: white; box-shadow: 0 1px 3px #0004;
}
.wf-discount-switch input:checked + span { justify-content: flex-end; border-color: #166950; background: #166950; }
.wf-discount-switch input:focus-visible + span { outline: 2px solid #5937a8; outline-offset: 2px; }
.wf-checkout-composer .wf-question-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.wf-checkout-composer .wf-question-actions button {
  width: auto; min-height: 38px; margin: 0; padding: 6px 15px; border: 1.5px solid var(--ink, #201f22);
  border-radius: 999px; background: var(--paper, #fffefa); color: var(--ink, #201f22); box-shadow: none;
  font-family: inherit; font-size: .875rem; font-weight: 700; line-height: 1.3;
}
.wf-checkout-composer .wf-question-actions :is([data-question-apply], [data-discount-apply]) { background: var(--mint, #c5ecd8); }
.wf-composer-status:empty { display: none; }
.wf-checkout-composer :is(.wf-composer-status, [data-question-error]) { margin: 5px 0 0; font-size: .8rem; }
.wf-checkout-composer [data-question-error] { color: #922a33; }
.wf-question-preview {
  margin: 12px 0 0; padding: 12px 14px 16px;
  border: 1px solid #cec8d0; border-radius: 12px;
  background: var(--paper, #fffefa); color: var(--ink, #201f22);
}
.wf-question-preview-heading {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 2px 10px; margin-bottom: 10px; font-size: .8rem; line-height: 1.4;
}
.wf-question-preview-heading span { font-size: .75rem; }
.wf-question-preview .customQuestion label { display: block; font-weight: 650; }
.wf-question-preview [data-preview-answer] > :is(input, select) {
  box-sizing: border-box; display: block; width: 100%; min-width: 0; min-height: 42px;
  margin: 0; padding: 7px 10px; border: 2px solid currentColor !important; border-radius: 10px;
  box-shadow: 2px 2px 0 currentColor; background: var(--paper, #fffefa); color: inherit; font: inherit;
}
.wf-question-preview [data-preview-answer] > select { appearance: auto; }
.wf-question-preview .checkoutChoices [role="group"] { gap: 6px; }
.wf-question-preview .checkoutChoice { background: var(--paper, #fffefa); font-weight: 500; }
.wf-question-preview .checkoutChoice:has(:checked) { background: var(--mint, #c5ecd8); color: #201f22; }
@container (max-width: 480px) {
  .wf-discount-column { grid-column: 1 / -1; }
  .wf-discount-list .discount-codes-table tbody tr { grid-template-columns: minmax(0, 1fr); }
  .wf-checkout-composer .wf-question-choices { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; }
}
@container (max-width: 400px) {
  .wf-checkout-composer .wf-question-actions :is([data-question-apply], [data-discount-apply]) { flex: 1; }
}
@container (max-width: 278px) {
  .wf-checkout-composer .wf-composer-grid { grid-template-columns: minmax(0, 1fr); }
  .wf-checkout-composer label [id$="cf_question_count"] { float: none; }
}
