/* Wholesale page ([dtf_wholesale]). Fonts come from the theme. */

.dtfw {
    --w-ink: #141414;
    --w-text: #2b2b2b;
    --w-muted: #6b6b6b;
    --w-line: #dedad4;
    --w-soft: #f3f2f0;
    --w-red: #d92b20;
    --w-red-dark: #b8221a;
    --w-green: #16803c;
    --w-green-soft: #e8f5ec;
    --w-r: 4px;
    --w-field: #cbc6bf;
    color: var(--w-text);
    margin: 0 0 80px;
}
.dtfw *, .dtfw *::before, .dtfw *::after { box-sizing: border-box; }
.dtfw [hidden] { display: none !important; }
.dtfw-wrap { max-width: 1640px; margin: 0 auto; padding: 0 40px; } /* the shop's own content width */

.dtfw h2 { font-size: 22px; line-height: 1.25; margin: 0; color: var(--w-ink); }
.dtfw h3 { font-size: 16px; margin: 0 0 12px; color: var(--w-ink); }

/* Heading band, full width: title, the note, the steps in one line */
.dtfw-hero { background: var(--w-soft); border-bottom: 1px solid var(--w-line); margin: 0 0 40px; }
.dtfw-hero__in { padding-top: 44px; padding-bottom: 36px; }
.dtfw-hero__title { color: var(--w-ink); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; font-weight: 700; margin: 0 0 10px; text-wrap: balance; }
.dtfw-hero__lead { color: var(--w-muted); font-size: 17px; line-height: 1.55; margin: 0; max-width: 760px; }
.dtfw-note { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; max-width: 980px; padding: 12px 14px; background: #fff; border: 1px solid var(--w-line); border-radius: var(--w-r); color: var(--w-ink); font-size: 15px; font-weight: 500; line-height: 1.5; }
.dtfw-note .dtfw-ico { color: var(--w-red); width: 20px; height: 20px; flex: none; }
.dtfw-steps { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.dtfw-steps li { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--w-text); font-size: 15px; font-weight: 600; }
.dtfw-steps__n { flex: none; width: 26px; height: 26px; border-radius: var(--w-r); background: var(--w-ink); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }

/* Form card, full width */
.dtfw-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--w-line);
    border-radius: var(--w-r);
    padding: 32px;
}
.dtfw-card__head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-bottom: 24px;
}
.dtfw-card:has(.dtfw-switch) { margin-top: 60px; padding-top: 44px; }
/* The new-account / log-in switch sits centred on the card's top edge. */
.dtfw .dtfw-switch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--w-line);
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    background: var(--w-soft);
    border-radius: var(--w-r);
    padding: 3px;
}
.dtfw .dtfw-switch button,
.dtfw .dtfw-switch button:hover,
.dtfw .dtfw-switch button:focus {
    appearance: none;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    border-radius: 3px;
    padding: 9px 18px;
    margin: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--w-muted);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.dtfw .dtfw-switch button.is-on { background: #fff; color: var(--w-ink); box-shadow: 0 1px 2px rgba(20,20,20,.12); }
.dtfw .dtfw-switch button:focus-visible { outline: 2px solid var(--w-ink); outline-offset: 1px; }

.dtfw-form { margin: 0; display: grid; gap: 20px; }
.dtfw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dtfw-grid .dtfw-field--about { grid-column: span 2; }
.dtfw-form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px; }
.dtfw-form__foot .erpc-human { margin: 0 auto 0 0; }
.dtfw-form__foot--inline { grid-column: auto; align-self: end; justify-content: flex-start; }
.dtfw-form__foot--inline .dtfw-btn { width: 100%; }

.dtfw-field { display: grid; gap: 6px; margin: 0; align-content: start; }
.dtfw-field > span { font-size: 14px; font-weight: 600; color: var(--w-ink); }
.dtfw-field em { font-style: normal; font-weight: 400; color: var(--w-muted); }
.dtfw-req { color: var(--w-red); font-weight: 700; }
.dtfw .dtfw-field input,
.dtfw .dtfw-field textarea {
    width: 100%;
    height: auto;
    margin: 0;
    font: inherit;
    font-size: 16px;
    color: var(--w-ink);
    background: #fff;
    border: 1px solid var(--w-field);
    border-radius: var(--w-r);
    box-shadow: none;
    padding: 12px 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.dtfw .dtfw-field textarea { resize: vertical; min-height: 124px; line-height: 1.5; }
.dtfw .dtfw-field input:focus,
.dtfw .dtfw-field textarea:focus { outline: none; border-color: var(--w-ink); box-shadow: 0 0 0 1px var(--w-ink); }

.dtfw .dtfw-btn {
    appearance: none;
    border: 0;
    border-radius: var(--w-r);
    background: var(--w-red);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 28px;
    margin: 0;
    cursor: pointer;
    transition: background-color .15s ease, transform .1s ease;
}
.dtfw .dtfw-btn:hover { background: var(--w-red-dark); }
.dtfw .dtfw-btn:active { transform: scale(.98); }
.dtfw .dtfw-btn:disabled { opacity: .6; cursor: progress; }
.dtfw-msg { margin: 0; color: var(--w-red-dark); font-size: 14px; }

/* Logged in: account on the left, request on the right */
.dtfw-member { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.dtfw-member .dtfw-form h2 { margin-bottom: 4px; }
.dtfw-member .dtfw-form .dtfw-field--about { grid-column: auto; }
.dtfw-account { margin-bottom: 24px; }
.dtfw-account__who { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.dtfw-account__who strong { display: block; color: var(--w-ink); font-size: 17px; }
.dtfw-account__who span { color: var(--w-muted); font-size: 14px; }
.dtfw-account__avatar {
    width: 46px; height: 46px; border-radius: var(--w-r);
    background: var(--w-ink); color: #fff;
    display: grid; place-items: center;
    font-size: 20px; font-weight: 700; flex: none;
}
.dtfw-account__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--w-line);
    border: 1px solid var(--w-line);
    border-radius: var(--w-r);
    overflow: hidden;
    margin: 0;
}
.dtfw-account__stats div { background: #fff; padding: 12px 14px; }
.dtfw-account__stats dt { font-size: 13px; color: var(--w-muted); margin: 0 0 2px; }
.dtfw-account__stats dd { margin: 0; font-weight: 700; color: var(--w-ink); font-variant-numeric: tabular-nums; }
.dtfw-account__site { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; color: var(--w-muted); font-size: 14px; }
.dtfw-account__site .dtfw-ico { width: 18px; height: 18px; }

.dtfw-prices { margin-bottom: 24px; }
.dtfw-prices ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dtfw-prices li { display: flex; justify-content: space-between; margin: 0; padding: 10px 14px; border-radius: var(--w-r); background: var(--w-green-soft); }
.dtfw-prices strong { color: var(--w-green); font-variant-numeric: tabular-nums; }

.dtfw-status { display: flex; gap: 10px; align-items: center; margin: 0; color: var(--w-ink); font-size: 14px; }
.dtfw-status .dtfw-ico { color: var(--w-red); width: 20px; height: 20px; flex: none; }

@media (max-width: 1000px) {
    .dtfw-grid { grid-template-columns: 1fr 1fr; }
    .dtfw-grid .dtfw-field--about { grid-column: 1 / -1; }
    .dtfw-member { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 700px) {
    .dtfw-wrap { padding: 0 16px; }
    .dtfw-hero__in { padding-top: 28px; padding-bottom: 24px; }
    .dtfw-hero__lead { font-size: 16px; }
    .dtfw-steps { flex-direction: column; gap: 8px; }
    .dtfw-card { padding: 20px; }
    .dtfw-grid { grid-template-columns: 1fr; }
    .dtfw-form__foot { flex-direction: column-reverse; align-items: stretch; }
    .dtfw-card__head { flex-direction: column; align-items: stretch; }
    .dtfw .dtfw-switch { width: calc(100% - 40px); }
}
@media (prefers-reduced-motion: reduce) {
    .dtfw .dtfw-btn, .dtfw .dtfw-switch button, .dtfw .dtfw-field input, .dtfw .dtfw-field textarea { transition: none; }
}
