/* Custom crochet from a photo (roadmap item 5.3), loaded only on the custom order pages. */

.hebe-custom { padding-bottom: 70px; }

.hebe-custom__head { padding: 10px 0 24px; }
.hebe-custom__head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 400; }
.hebe-custom__head p { max-width: 62ch; margin-top: 10px; color: var(--hebe-ink-soft); }
.hebe-custom__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.hebe-custom__done,
.hebe-custom__declined {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
}

.hebe-custom__done { background-color: color-mix(in srgb, var(--hebe-moss) 24%, var(--hebe-card)); color: var(--hebe-ink) !important; }
.hebe-custom__declined { background-color: color-mix(in srgb, var(--hebe-rose) 22%, var(--hebe-card)); }

.hebe-custom__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 34px;
    padding: 0;
    counter-reset: step;
    list-style: none;
}

.hebe-custom__steps li {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 16px;
    background-color: var(--hebe-card);
    counter-increment: step;
}

.hebe-custom__steps li::before { content: counter(step); color: var(--hebe-rose); font: 500 1.8rem/1 var(--hebe-display); }
.hebe-custom__steps span { color: var(--hebe-ink-soft); }

.hebe-custom__prices { margin-bottom: 34px; }
.hebe-custom__prices h2,
.hebe-custom__form h2 { font-size: 1.6rem; }
.hebe-custom__prices > p { margin-top: 6px; color: var(--hebe-ink-soft); }

.hebe-custom__table { margin-top: 14px; overflow-x: auto; }
.hebe-custom__table table { width: 100%; min-width: 420px; border-collapse: collapse; background-color: var(--hebe-card); border-radius: 14px; overflow: hidden; }

.hebe-custom__table th,
.hebe-custom__table td { padding: 12px 16px; border-bottom: 1px solid color-mix(in srgb, var(--hebe-ink) 12%, transparent); text-align: left; }

.hebe-custom__table thead th { color: var(--hebe-ink-soft); font: 1rem var(--hebe-hand); }

.hebe-custom__form { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 30px; border-top: var(--hebe-stitch); }
.hebe-custom__form .hebe-form { display: grid; gap: 16px; margin-top: 18px; }
.hebe-custom__form .hebe-button { justify-self: start; }
.hebe-custom__form h3 { margin-top: 6px; font-size: 1.15rem; }

.hebe-custom__choices { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.hebe-custom__choices legend { margin-bottom: 8px; padding: 0; font-weight: 700; }
.hebe-custom__choices label { position: relative; }
.hebe-custom__choices input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.hebe-custom__choices span {
    display: block;
    padding: 9px 18px;
    border: var(--hebe-stitch);
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.hebe-custom__choices input:checked + span { border: 2px solid var(--hebe-ink); background-color: var(--hebe-ink); color: var(--hebe-card); }
.hebe-custom__choices input:focus-visible + span { outline: 3px solid var(--hebe-teal); outline-offset: 3px; }

.hebe-custom__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.hebe-custom__deposit { padding: 16px; border-radius: 14px; background-color: color-mix(in srgb, var(--hebe-mustard) 18%, var(--hebe-card)); }
.hebe-custom__deposit p { margin-top: 6px; color: var(--hebe-ink-soft); }

.hebe-custom__tips { display: grid; gap: 10px; padding: 22px; border-radius: 16px; background-color: var(--hebe-card); }
.hebe-custom__tips ul { margin: 0; padding-left: 20px; color: var(--hebe-ink-soft); }
.hebe-custom__tips p { color: var(--hebe-ink-soft); }

.hebe-custom__progress { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }

.hebe-custom__progress li {
    padding: 7px 14px;
    border: var(--hebe-stitch);
    border-radius: 999px;
    color: var(--hebe-ink-soft);
    font-weight: 600;
}

.hebe-custom__progress li.is-done { border-style: solid; color: var(--hebe-ink); }
.hebe-custom__progress li.is-now { border: 2px solid var(--hebe-ink); background-color: var(--hebe-ink); color: var(--hebe-card); }

.hebe-custom__status { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.hebe-custom__main { display: grid; gap: 20px; min-width: 0; }

.hebe-custom__card { padding: 22px; border-radius: 18px; background-color: var(--hebe-card); }
.hebe-custom__card h2 { margin-bottom: 10px; font-size: 1.4rem; }
.hebe-custom__card dl { display: grid; gap: 8px; margin: 0 0 12px; }
.hebe-custom__card dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.hebe-custom__card dt { color: var(--hebe-ink-soft); }
.hebe-custom__card dd { margin: 0; font-weight: 700; }
.hebe-custom__card dd small { color: var(--hebe-moss); font-weight: 700; }

.hebe-custom__sketches { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.hebe-custom__sketches img { width: 100%; max-height: 420px; border-radius: 12px; object-fit: contain; background-color: var(--hebe-paper); }

.hebe-custom__decide { display: grid; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: var(--hebe-stitch); }
.hebe-custom__decide .hebe-form { display: grid; gap: 10px; }
.hebe-custom__decide .hebe-button { justify-self: start; }

.hebe-custom__pay { display: grid; gap: 10px; }
.hebe-custom__qr svg { width: 200px; height: 200px; padding: 8px; border-radius: 12px; background-color: #fff; }

.hebe-custom__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; padding: 0; list-style: none; }
.hebe-custom__photos img { width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; }

@media (max-width: 900px) {
    .hebe-custom__steps,
    .hebe-custom__form,
    .hebe-custom__status { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
    .hebe-custom__pair { grid-template-columns: minmax(0, 1fr); }
}
