/*
 * My Account → Returns.
 *
 * Self-contained on purpose: the theme ships a precompiled Tailwind build, so any
 * utility class not already used elsewhere on the site renders as nothing. These
 * rules use the site's own palette and fonts (Rubik for text, Source Serif 4 for
 * headings — both already loaded by the theme).
 */

.lbr {
    --lbr-sage-dark: #52614a;
    --lbr-sage: #8d9b8f;
    --lbr-sage-soft: #eef1ee;
    --lbr-cream: #fbf7f6;
    --lbr-cream-2: #f7f5f2;
    --lbr-line: #ebe7e1;
    --lbr-text: #1f2937;
    --lbr-muted: #6b7280;
    --lbr-radius: 14px;
    font-family: Rubik, sans-serif;
    color: var(--lbr-text);
    font-size: 15px;
    line-height: 1.55;
}
.lbr *, .lbr *::before, .lbr *::after { box-sizing: border-box; }
.lbr svg { width: 20px; height: 20px; flex-shrink: 0; }
.lbr a { color: inherit; }
.lbr [hidden] { display: none !important; }

.lbr-muted { color: var(--lbr-muted); }
.lbr-small { font-size: 13px; }
.lbr-h3 {
    font-family: "Source Serif 4", serif;
    font-weight: 400;
    font-size: 20px;
    color: var(--lbr-sage-dark);
    margin: 0 0 6px;
}
.lbr-link {
    color: var(--lbr-sage-dark);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}
.lbr-link:hover { text-decoration: underline; }

/* ── Buttons ── */
.lbr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--lbr-sage-dark);
    color: #fff !important;
    border: 0;
    border-radius: 8px;
    padding: 12px 22px;
    font: 500 15px/1.2 Rubik, sans-serif;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .15s ease;
}
.lbr-btn:hover { background: #45523e; }
.lbr-btn-block { width: 100%; margin-top: 16px; }

/* ── Hero ── */
.lbr-hero {
    position: relative;
    display: flex;
    overflow: hidden;
    border-radius: var(--lbr-radius);
    background: var(--lbr-cream);
    margin-bottom: 24px;
    min-height: 220px;
}
.lbr-hero-text { position: relative; z-index: 1; padding: 28px 28px 24px; flex: 1 1 60%; }
.lbr-hero-img {
    flex: 0 0 40%;
    background-size: cover;
    background-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%);
            mask-image: linear-gradient(to right, transparent 0, #000 30%);
}
.lbr-eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lbr-sage-dark);
    font-weight: 500;
}
.lbr-hero-title {
    font-family: "Source Serif 4", serif;
    font-weight: 400;
    font-size: clamp(26px, 3.2vw, 36px);
    line-height: 1.12;
    color: var(--lbr-sage-dark);
    margin: 0 0 12px;
    max-width: 14ch;
}
.lbr-hero-body { margin: 0 0 18px; color: #374151; font-size: 14px; }
.lbr-badges {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}
.lbr-badges li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #374151;
}
.lbr-badges svg { width: 18px; height: 18px; color: var(--lbr-sage-dark); }

/* ── Layout ── */
.lbr-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: start;
}
.lbr-main, .lbr-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.lbr-card {
    background: #fff;
    border: 1px solid var(--lbr-line);
    border-radius: var(--lbr-radius);
    padding: 20px;
}
.lbr-side .lbr-card { background: #fcfbf9; }

/* ── Steps ── */
.lbr-steps {
    border: 1px solid var(--lbr-line);
    border-radius: var(--lbr-radius);
    background: #fff;
    overflow: hidden;
    margin: 0;
}
.lbr-step { position: relative; border-top: 1px solid var(--lbr-line); }
.lbr-step:first-child { border-top: 0; }

/* the vertical line that joins the step numbers */
.lbr-step::before {
    content: "";
    position: absolute;
    left: 37px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--lbr-line);
}
.lbr-step:first-child::before { top: 30px; }
.lbr-step:last-child::before { bottom: calc(100% - 30px); }

.lbr-step-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: 0;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: default;
}
button.lbr-step-head { cursor: pointer; }
.lbr-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1efeb;
    color: #4b5563;
    font-weight: 500;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--lbr-line);
}
.lbr-num svg { width: 16px; height: 16px; }
.lbr-step.is-open .lbr-num,
.lbr-step.is-done .lbr-num {
    background: var(--lbr-sage-dark);
    color: #fff;
    box-shadow: 0 0 0 1px var(--lbr-sage-dark);
}
.lbr-step-titles { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.lbr-step-titles strong { font-weight: 500; font-size: 16px; color: var(--lbr-text); }
.lbr-step-titles small { color: var(--lbr-muted); font-size: 13px; }
.lbr-step.is-locked .lbr-step-titles strong { color: #4b5563; }
.lbr-chev { color: #9ca3af; transition: transform .2s ease; }
.lbr-step.is-open .lbr-chev { transform: rotate(90deg); }
.lbr-change { font-size: 13px; color: var(--lbr-sage-dark); font-weight: 500; }

.lbr-step-body { position: relative; z-index: 1; padding: 2px 20px 20px 72px; }

/* Collapsing only happens once JS is running; without it every step stays open
   and the form still submits normally. */
.lbr.lbr-js .lbr-step:not(.is-open) .lbr-step-body { display: none; }

/* ── Step 1: order choice ── */
.lbr-orders { display: flex; flex-direction: column; gap: 10px; }
.lbr-order-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--lbr-line);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.lbr-order-opt:hover { border-color: var(--lbr-sage); }
.lbr-order-opt:has(input:checked) { border-color: var(--lbr-sage-dark); background: var(--lbr-sage-soft); }
.lbr-order-opt input { accent-color: var(--lbr-sage-dark); }
.lbr-order-opt-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.lbr-order-opt-body small { font-size: 13px; }
.lbr-days {
    font-size: 12px;
    color: var(--lbr-sage-dark);
    background: var(--lbr-sage-soft);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.lbr-empty p { margin: 0 0 8px; }

/* ── Step 2: items ── */
.lbr-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--lbr-line);
}
.lbr-item-check { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; cursor: pointer; }
.lbr-item-check input,
.lbr-band input,
.lbr-reason input { accent-color: var(--lbr-sage-dark); width: 17px; height: 17px; flex-shrink: 0; }
.lbr-item-info { display: flex; flex-direction: column; min-width: 0; }
.lbr-item-info strong { font-weight: 500; }
.lbr-item-info small { color: var(--lbr-muted); font-size: 13px; }
.lbr-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--lbr-cream-2);
    flex-shrink: 0;
}
.lbr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lbr-qty { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--lbr-muted); }
.lbr-qty select {
    padding: 6px 8px;
    border: 1px solid var(--lbr-line);
    border-radius: 6px;
    background: #fff;
    font: inherit;
}
.lbr-qty select:disabled { opacity: .45; }

.lbr-bands {
    margin-top: 16px;
    padding: 14px;
    border-radius: 10px;
    background: var(--lbr-cream-2);
}
.lbr-bands .lbr-label { margin-top: 0; }
.lbr-band { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14px; }
.lbr-band code {
    font-family: ui-monospace, monospace;
    background: #fff;
    border: 1px solid var(--lbr-line);
    border-radius: 6px;
    padding: 2px 7px;
    letter-spacing: .06em;
}

/* ── Step 3: reason ── */
.lbr-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.lbr-reason {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--lbr-line);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
}
.lbr-reason:has(input:checked) { border-color: var(--lbr-sage-dark); background: var(--lbr-sage-soft); }
.lbr-label { display: block; font-weight: 500; font-size: 14px; margin: 12px 0 6px; }
.lbr-optional { font-weight: 400; }
.lbr-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    background: #fff;
}
.lbr-input:focus { outline: 2px solid var(--lbr-sage); outline-offset: 1px; border-color: var(--lbr-sage); }

.lbr-error {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 13px;
}

/* ── Review / detail lists ── */
.lbr-dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 14px; margin: 8px 0 14px; font-size: 14px; }
.lbr-dl dt { color: var(--lbr-muted); }
.lbr-dl dd { margin: 0; }

/* ── Single return ── */
.lbr-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lbr-card-head p { margin: 0; font-size: 13px; }
.lbr-pill {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.lbr-status-msg { margin: 14px 0; }
.lbr-timeline {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 18px 0 20px;
    padding: 0;
    position: relative;
}
.lbr-timeline::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--lbr-line);
}
.lbr-timeline li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    font-size: 12px;
    color: var(--lbr-muted);
}
.lbr-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--lbr-line);
    font-size: 13px;
    position: relative;
    z-index: 1;
}
.lbr-dot svg { width: 15px; height: 15px; }
.lbr-timeline li.is-done { color: var(--lbr-text); }
.lbr-timeline li.is-done .lbr-dot { background: var(--lbr-sage-dark); border-color: var(--lbr-sage-dark); color: #fff; }
.lbr-timeline li.is-current { font-weight: 500; }

.lbr-confirm {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--lbr-radius);
    background: var(--lbr-sage-soft);
    border: 1px solid #d6ddd5;
}
.lbr-confirm h3 { font-family: "Source Serif 4", serif; font-weight: 400; font-size: 22px; color: var(--lbr-sage-dark); margin: 0 0 4px; }
.lbr-confirm p { margin: 0; font-size: 14px; }
.lbr-confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--lbr-sage-dark);
    color: #fff;
    flex-shrink: 0;
}

/* ── Your returns ── */
.lbr-history ul { list-style: none; margin: 10px 0 0; padding: 0; }
.lbr-history li { border-top: 1px solid var(--lbr-line); }
.lbr-history li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    text-decoration: none;
}
.lbr-history li a > span { display: flex; flex-direction: column; }
.lbr-history li a:hover strong { color: var(--lbr-sage-dark); }
.lbr-history small { font-size: 13px; }

/* ── Side column ── */
.lbr-order-no { margin: 4px 0 0; font-weight: 600; font-size: 14px; }
.lbr-summary { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--lbr-line); }
.lbr-summary li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.lbr-summary .lbr-thumb { width: 52px; height: 52px; }
.lbr-summary-info { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 13px; }
.lbr-summary-info strong { font-weight: 500; }
.lbr-summary-info small { color: var(--lbr-muted); font-size: 12px; }
.lbr-summary-price { font-size: 13px; white-space: nowrap; }
.lbr-total {
    display: flex;
    justify-content: space-between;
    margin: 4px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--lbr-line);
    font-size: 15px;
}
.lbr-total span { font-weight: 500; }

.lbr-window { display: flex; gap: 14px; background: var(--lbr-sage-soft) !important; border-color: #dfe5de !important; }
.lbr-window-icon { color: var(--lbr-sage-dark); }
.lbr-window-icon svg { width: 36px; height: 36px; }
.lbr-window p { margin: 0 0 8px; }

.lbr-help a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 14px;
    text-decoration: none;
    color: #374151;
}
.lbr-help a:hover { color: var(--lbr-sage-dark); }
.lbr-help svg { width: 17px; height: 17px; color: #4b5563; }

/* ── How returns work ── */
.lbr-how { margin-top: 20px; }
.lbr-how-title {
    font-family: "Source Serif 4", serif;
    font-weight: 400;
    font-size: 22px;
    color: var(--lbr-sage-dark);
    margin: 0 0 18px;
}
.lbr-how-grid { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; align-items: stretch; }
.lbr-how-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.lbr-how-steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.lbr-how-steps li:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -12px;
    top: 16px;
    color: #c2c7c0;
    font-size: 16px;
}
.lbr-how-steps strong { font-weight: 500; font-size: 13px; color: var(--lbr-sage-dark); }
.lbr-how-steps small { font-size: 12px; color: #4b5563; line-height: 1.45; }
.lbr-how-icon { color: var(--lbr-sage-dark); }
.lbr-how-icon svg { width: 40px; height: 40px; stroke-width: 1.2; }
.lbr-secure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 18px 14px;
    border-radius: 12px;
    background: var(--lbr-sage-soft);
}
.lbr-secure strong { font-family: "Source Serif 4", serif; font-weight: 400; font-size: 16px; color: var(--lbr-sage-dark); }
.lbr-secure small { font-size: 12px; color: #4b5563; }

/* ── Inside My Account ──
   The theme's My Account styles (themes/lulaband-v7/inc/woocommerce.php) restyle
   every label, select and submit button inside .woocommerce-MyAccount-content, and
   out-rank single-class selectors: labels become display:block (radio and checkbox
   rows stack vertically), selects go full width, and submit buttons turn light
   sage. These re-assert the returns layout with enough specificity to win.
   The textarea is deliberately left to the theme — that IS the site's input style. */
.woocommerce-MyAccount-content .lbr label {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}
.woocommerce-MyAccount-content .lbr .lbr-order-opt,
.woocommerce-MyAccount-content .lbr .lbr-item-check,
.woocommerce-MyAccount-content .lbr .lbr-band,
.woocommerce-MyAccount-content .lbr .lbr-reason,
.woocommerce-MyAccount-content .lbr .lbr-qty { display: flex; }
.woocommerce-MyAccount-content .lbr .lbr-label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin: 12px 0 6px;
}
.woocommerce-MyAccount-content .lbr .lbr-bands .lbr-label { margin-top: 0; }
.woocommerce-MyAccount-content .lbr .lbr-qty select {
    width: auto;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 14px;
}
.woocommerce-MyAccount-content .lbr .lbr-btn {
    display: inline-flex;
    justify-content: center;
    background-color: var(--lbr-sage-dark);
    border-radius: 8px;
    padding: 12px 22px;
    font-size: 15px;
}
.woocommerce-MyAccount-content .lbr .lbr-btn:hover { background-color: #45523e; }
.woocommerce-MyAccount-content .lbr .lbr-btn:disabled { opacity: .6; cursor: default; }
.woocommerce-MyAccount-content .lbr .lbr-btn-block { display: flex; width: 100%; }

/* ── Public /returns/ page (full width, so a taller hero) ── */
.lbr-hero-page { min-height: 320px; }
.lbr-hero-page .lbr-hero-text { padding: 48px 44px; }
.lbr-hero-page .lbr-hero-title { font-size: clamp(34px, 4.4vw, 52px); }
.lbr-hero-page .lbr-hero-body { font-size: 16px; }
.lbr-start p { margin: 0 0 16px; }
.lbr-grid + .lbr-how, .lbr .lbr-grid { margin-top: 0; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .lbr-grid { grid-template-columns: minmax(0, 1fr); }
    .lbr-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}
@media (max-width: 860px) {
    .lbr-how-grid { grid-template-columns: minmax(0, 1fr); }
    .lbr-how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
    .lbr-how-steps li::after { display: none; }
}
@media (max-width: 640px) {
    .lbr-hero { flex-direction: column-reverse; min-height: 0; }
    .lbr-hero-img { flex-basis: 150px; min-height: 150px; -webkit-mask-image: linear-gradient(to top, transparent 0, #000 35%); mask-image: linear-gradient(to top, transparent 0, #000 35%); }
    .lbr-hero-text { padding: 20px; }
    .lbr-step-head { padding: 14px 16px; gap: 12px; }
    /* No connector line on phones. On desktop it runs in the gutter beside the
       indented step content; here the content drops that indent to use the full
       width, so the line would cut straight through the text of the open step. */
    .lbr-step::before { display: none; }
    .lbr-step-body { padding: 0 16px 18px 16px; }
    .lbr-reasons { grid-template-columns: minmax(0, 1fr); }
    .lbr-item { flex-wrap: wrap; }
    .lbr-timeline li span:last-child { font-size: 11px; }
    .lbr-dl { grid-template-columns: 90px minmax(0, 1fr); }
}
