/* ==========================================================================
   Delish' Bakes — Version 3
   Request a Quote builder
   ========================================================================== */

/* ---------- Hero --------------------------------------------------------- */
.qb-hero {
  padding-block: clamp(46px, 6.5vw, 92px) clamp(32px, 4vw, 54px);
}
.qb-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: end;
}
.qb-hero .page-title {
  margin-top: clamp(18px, 2.4vw, 30px);
}
.qb-hero .page-intro {
  max-width: 640px;
  margin-top: clamp(22px, 2.6vw, 30px);
}
.qb-hero__aside {
  padding-left: clamp(0px, 2.4vw, 30px);
  border-left: 1px solid var(--line-soft);
}
.qb-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.7;
  color: var(--grey);
}
.qb-notice svg {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  flex-shrink: 0;
  color: var(--kraft-text);
}
.qb-notice strong {
  font-weight: 600;
  color: var(--ink);
}
.qb-hero__contact {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  line-height: 1.7;
  color: var(--grey);
}
.qb-hero__contact a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.qb-hero__contact a:hover {
  color: var(--kraft-text);
}

/* ---------- Layout ------------------------------------------------------- */
.qb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: clamp(30px, 3.6vw, 58px);
  align-items: start;
  padding-bottom: clamp(56px, 7vw, 96px);
}
.qb-main {
  min-width: 0;
}
.qb-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.qb-section-head {
  max-width: 640px;
}
.qb-section-head .section-title {
  margin-top: 14px;
}
.qb-section-head__intro {
  max-width: 540px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--grey);
}

/* ---------- Tabs --------------------------------------------------------- */
.qb-tabs {
  display: flex;
  gap: 2px;
  margin-top: clamp(28px, 3.4vw, 44px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.qb-tabs::-webkit-scrollbar {
  display: none;
}
.qb-tab {
  position: relative;
  flex: 1 0 auto;
  min-width: 128px;
  padding: 14px 14px 16px;
  text-align: left;
  border-bottom: 2px solid transparent;
  color: var(--grey);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.qb-tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  transition: background 0.25s var(--ease);
}
.qb-tab:hover {
  color: var(--ink);
}
.qb-tab.is-active {
  color: var(--ink);
}
.qb-tab.is-active::after {
  background: var(--ink);
}
.qb-tab__name {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}
.qb-tab__hint {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--grey);
}
.qb-tab.is-active .qb-tab__hint {
  color: var(--kraft-text);
}

/* ---------- Panel -------------------------------------------------------- */
.qb-panel {
  animation: qb-panel-in 0.45s var(--ease) both;
}
.qb-panel[hidden] {
  display: none;
}
@keyframes qb-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.qb-config {
  padding-top: clamp(28px, 3.4vw, 42px);
}
.qb-config__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 28px;
  margin-bottom: clamp(24px, 3vw, 34px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.qb-config__head h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.qb-config__head p {
  max-width: 420px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--grey);
}

/* ---------- Fields ------------------------------------------------------- */
.qb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
}
.qb-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.qb-field--full {
  grid-column: 1 / -1;
}
.qb-field > label,
.qb-label,
.qb-field__top label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink);
}
.qb-field__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.qb-req {
  color: var(--kraft-text);
}
.qb-field input,
.qb-field select,
.qb-field textarea,
.qb-select select,
.qb-number input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}
.qb-field textarea {
  min-height: 112px;
  resize: vertical;
}
.qb-field input::placeholder,
.qb-field textarea::placeholder {
  color: #a4a4a6;
  opacity: 1;
}
.qb-field input:hover,
.qb-field select:hover,
.qb-field textarea:hover,
.qb-select select:hover,
.qb-number input:hover {
  border-color: rgba(0, 0, 0, 0.28);
}
.qb-field input:focus,
.qb-field select:focus,
.qb-field textarea:focus,
.qb-select select:focus,
.qb-number input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(182, 155, 126, 0.22);
}
.qb-field.has-error input,
.qb-field.has-error select,
.qb-field.has-error textarea {
  border-color: #a33a2b;
}
.qb-field.has-error input:focus,
.qb-field.has-error select:focus,
.qb-field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(163, 58, 43, 0.14);
}
.qb-hint {
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--grey);
}
.qb-counter {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.qb-field__error {
  font-size: 10.5px;
  line-height: 1.5;
  color: #a33a2b;
}
.qb-field__error:empty {
  display: none;
}

/* Select shell */
.qb-select {
  position: relative;
}
.qb-select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
}
.qb-select > svg {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  pointer-events: none;
  color: var(--grey);
}

/* Number box (cupcakes) */
.qb-number {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.qb-number:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(182, 155, 126, 0.22);
}
.qb-number input {
  border: 0;
  min-height: 48px;
  box-shadow: none;
  appearance: textfield;
  -moz-appearance: textfield;
}
.qb-number input::-webkit-outer-spin-button,
.qb-number input::-webkit-inner-spin-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}
.qb-number input:focus {
  box-shadow: none;
}
.qb-number span {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-left: 1px solid var(--line-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
}

/* ---------- Make it yours ----------------------------------------------- */
.qb-make {
  margin: 32px 0 0;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.qb-make > legend {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.qb-make > legend small {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
}
.qb-make .qb-grid {
  margin-top: 22px;
}
.qb-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.qb-choice {
  margin: 0;
  padding: 0;
  border: 0;
}
.qb-choice > legend {
  margin-bottom: 9px;
  padding: 0;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.qb-choice__options {
  display: flex;
  gap: 7px;
}
.qb-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.qb-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.qb-chip:hover {
  border-color: rgba(0, 0, 0, 0.34);
}
.qb-chip:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.qb-chip:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- Uploader ----------------------------------------------------- */
.qb-upload {
  margin-top: 28px;
}
.qb-upload__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 10px;
}
.qb-upload__meta {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
}
.qb-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 76px;
  padding: 16px 18px;
  border: 1px dashed rgba(0, 0, 0, 0.22);
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.qb-drop:hover,
.qb-drop.is-dragging {
  border-color: var(--kraft-text);
  background: #fdfbf8;
}
.qb-drop:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.qb-drop__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.qb-drop > svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--kraft-text);
}
.qb-drop__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qb-drop__text strong {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.qb-drop__text span {
  font-size: 10.5px;
  color: var(--grey);
}
.qb-upload__hint {
  margin-top: 8px;
  font-size: 9.5px;
  line-height: 1.6;
  color: var(--grey);
}
.qb-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.qb-thumbs:empty {
  display: none;
}
.qb-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--grey-soft);
}
.qb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qb-thumb__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: var(--white);
  transition: background 0.2s var(--ease);
}
.qb-thumb__remove:hover,
.qb-thumb__remove:focus-visible {
  background: var(--ink);
}
.qb-thumb__remove svg {
  width: 12px;
  height: 12px;
}

/* ---------- Simple product rows ----------------------------------------- */
.qb-products {
  border-top: 1px solid var(--line-soft);
}
.qb-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}
.qb-product__body h3 {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.qb-product__body p {
  margin-top: 4px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--grey);
}
.qb-product.is-added {
  animation: qb-added 0.6s var(--ease);
}
@keyframes qb-added {
  0% {
    background: rgba(182, 155, 126, 0.16);
  }
  100% {
    background: transparent;
  }
}

/* Stepper */
.qb-stepper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
.qb-stepper__control {
  display: flex;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.qb-stepper__control:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(182, 155, 126, 0.18);
}
.qb-stepper__value {
  width: 58px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  cursor: default;
}
.qb-stepper__value:focus {
  outline: none;
}
.qb-stepper__arrows {
  display: flex;
  flex-direction: column;
  width: 31px;
  border-left: 1px solid var(--line);
}
.qb-stepper__arrows button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.qb-stepper__arrows button:first-child {
  border-bottom: 1px solid var(--line);
}
.qb-stepper__arrows button:hover:not(:disabled),
.qb-stepper__arrows button:focus-visible:not(:disabled) {
  background: var(--ink);
  color: var(--white);
}
.qb-stepper__arrows button:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}
.qb-stepper__arrows svg {
  width: 12px;
  height: 12px;
}
.qb-stepper__hint {
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
}
.qb-product__add {
  min-width: 84px;
}

/* ---------- Config actions ---------------------------------------------- */
.qb-config__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 30px;
}
.qb-config__actions .btn {
  min-height: 50px;
}
.qb-config__note {
  font-size: 10px;
  color: var(--grey);
}

/* ---------- Summary ------------------------------------------------------ */
.qb-summary {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: 24px 22px 22px;
}
.qb-summary__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.qb-summary__head h2 {
  margin-top: 5px;
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.qb-summary__count {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  background: var(--kraft-soft);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #745538;
  white-space: nowrap;
}
.qb-summary__empty {
  padding: 30px 0 26px;
  color: var(--grey);
}
.qb-summary__empty svg {
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  color: var(--kraft);
}
.qb-summary__empty p {
  font-size: 11px;
  line-height: 1.7;
}
.qb-groups {
  max-height: min(50vh, 520px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}
.qb-groups:empty {
  display: none;
}
.qb-group {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.qb-group:last-child {
  border-bottom: 0;
}
.qb-group__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--kraft-text);
}
.qb-group__title span {
  letter-spacing: 0.08em;
  color: var(--grey);
}
.qb-group__title span:first-child {
  color: var(--kraft-text);
}
.qb-item {
  margin-top: 12px;
  padding: 13px;
  background: var(--white);
  border: 1px solid var(--line-soft);
}
.qb-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.qb-item__title {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  padding-right: 4px;
}
.qb-item__remove {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 2px 0;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--grey);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.qb-item__remove:hover,
.qb-item__remove:focus-visible {
  color: #a33a2b;
}
.qb-item__remove svg {
  width: 11px;
  height: 11px;
}
.qb-item__specs {
  display: grid;
  gap: 2px;
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.5;
  color: var(--grey);
}
.qb-item__specs div {
  display: flex;
  gap: 5px;
}
.qb-item__specs dt {
  flex-shrink: 0;
  color: var(--grey);
}
.qb-item__specs dt::after {
  content: ':';
}
.qb-item__specs dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.qb-item__design {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dotted var(--line);
  font-size: 10px;
  line-height: 1.55;
  color: var(--grey);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qb-item__qty {
  margin-top: 9px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kraft-text);
}
.qb-item__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.qb-item__thumbs .qb-thumb {
  width: 38px;
  aspect-ratio: 1;
  flex: 0 0 auto;
}
.qb-item__thumbs .qb-thumb__remove {
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
}
.qb-item__thumbs .qb-thumb__remove svg {
  width: 8px;
  height: 8px;
}
.qb-summary__foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.qb-summary__note {
  font-size: 10px;
  line-height: 1.6;
  color: var(--grey);
}
.qb-summary__jump {
  margin-top: 10px;
  font-size: 9px;
}
.qb-summary__jump svg {
  width: 13px;
  height: 13px;
}

/* ---------- Details ------------------------------------------------------ */
.qb-details {
  padding-block: clamp(58px, 8vw, 108px);
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.qb-details__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.qb-details__intro .section-title {
  margin-top: 16px;
}
.qb-details__intro > p {
  max-width: 420px;
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--grey);
}
.qb-details__note {
  margin-top: 28px;
  padding: 20px;
  background: var(--white);
  border-left: 2px solid var(--kraft);
}
.qb-details__note-title {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--kraft-text);
}
.qb-details__note p {
  margin-top: 8px;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--grey);
}
.qb-details__contact {
  max-width: none !important;
  margin-top: 22px !important;
  font-size: 10.5px !important;
}
.qb-details__contact a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.qb-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
}
.qb-form-error {
  grid-column: 1 / -1;
  padding: 14px 16px;
  background: #fbefec;
  border-left: 2px solid #a33a2b;
  color: #6e241b;
}
.qb-form-error strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.qb-form-error p {
  margin-top: 4px;
  font-size: 10.5px;
  line-height: 1.6;
}
.qb-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.qb-submit {
  margin-top: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.qb-submit__btn {
  width: 100%;
  min-height: 58px;
}
.qb-submit__btn.is-loading {
  cursor: wait;
}
.qb-submit__btn.is-loading svg {
  animation: qb-spin 0.9s linear infinite;
}
@keyframes qb-spin {
  to {
    transform: rotate(360deg);
  }
}
.btn:disabled,
.btn[disabled] {
  background: var(--grey);
  border-color: var(--grey);
  color: var(--white);
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.btn:disabled:hover,
.btn[disabled]:hover {
  background: var(--grey);
  border-color: var(--grey);
  color: var(--white);
  transform: none;
}
.qb-reqs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 14px;
}
.qb-reqs li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--grey);
  transition: color 0.25s var(--ease);
}
.qb-reqs__dot {
  position: relative;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.24);
  border-radius: 999px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.qb-reqs li.is-met {
  color: var(--ink);
}
.qb-reqs li.is-met .qb-reqs__dot {
  background: var(--kraft);
  border-color: var(--kraft);
}
.qb-reqs li.is-met .qb-reqs__dot::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 1.5px;
  width: 3px;
  height: 6px;
  border: solid var(--white);
  border-width: 0 1.4px 1.4px 0;
  transform: rotate(45deg);
}
.qb-submit__note {
  margin-top: 12px;
  font-size: 9.5px;
  line-height: 1.7;
  color: var(--grey);
}

/* ---------- Success ------------------------------------------------------ */
.qb-success {
  padding-block: clamp(70px, 9vw, 130px);
}
.qb-success__inner {
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
}
.qb-success__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 24px;
  border: 1px solid var(--kraft);
  border-radius: 999px;
  color: var(--kraft-text);
}
.qb-success__mark svg {
  width: 26px;
  height: 26px;
}
.qb-success h2 {
  margin-top: 14px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.qb-success__lead {
  max-width: 520px;
  margin: 20px auto 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--grey);
}
.qb-success__ref {
  display: inline-block;
  margin-top: 26px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}
.qb-success__ref strong {
  margin-left: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.qb-success__small {
  margin-top: 16px;
  font-size: 10px;
  color: var(--grey);
}
.qb-success__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

/* ---------- Toast -------------------------------------------------------- */
.qb-toast {
  position: fixed;
  left: clamp(16px, 3vw, 34px);
  bottom: 24px;
  z-index: 80;
  max-width: min(320px, calc(100vw - 32px));
  padding: 13px 18px;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.qb-toast.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 1120px) {
  .qb-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
  }
  .qb-tab {
    min-width: 118px;
  }
}

@media (max-width: 980px) {
  .qb-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .qb-side {
    position: static;
    order: 2;
  }
  .qb-groups {
    max-height: none;
  }
  .qb-summary {
    max-width: none;
  }
  .qb-details__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .qb-details__intro {
    max-width: 620px;
  }
  .qb-hero__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .qb-hero__aside {
    padding-left: 0;
    padding-top: 22px;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }
}

@media (max-width: 720px) {
  .qb-tabs {
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .qb-tab {
    min-width: 138px;
  }
  .qb-grid,
  .qb-fields,
  .qb-choices {
    grid-template-columns: 1fr;
  }
  .qb-product {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 16px;
  }
  .qb-product__add {
    grid-column: 1 / -1;
    width: 100%;
  }
  .qb-stepper {
    align-items: flex-end;
  }
  .qb-config__head {
    display: block;
  }
  .qb-config__head p {
    margin-top: 8px;
  }
  .qb-summary__head {
    align-items: flex-end;
  }
  .qb-success h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
}

@media (max-width: 480px) {
  .qb-field input,
  .qb-field select,
  .qb-field textarea,
  .qb-select select,
  .qb-number input {
    font-size: 16px;
  }
  .qb-tab {
    min-width: 126px;
    padding-inline: 10px;
  }
  .qb-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .qb-summary {
    padding: 20px 16px 18px;
  }
  .qb-details__note {
    padding: 16px;
  }
  .qb-success__actions .btn {
    width: 100%;
  }
}

/* ---------- Reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .qb-panel,
  .qb-product.is-added,
  .qb-submit__btn.is-loading svg {
    animation: none !important;
  }
  .qb-toast {
    transition: none;
  }
}
