/* =====================================================================
 * La Bodeteka Delivery — WooCommerce Checkout Options (Login / Guest)
 * ---------------------------------------------------------------------
 * The "How do you want to complete your purchase?" step:
 *   .lbdco-root        the whole block
 *   .lbdco-title       the big heading (bold + light part)
 *   .lbdco-columns     the two columns (login | guest)
 *   .lbdco-col         a column
 *   .lbdco-col-head    icon + title + subtitle
 *   .lbdco-form        the forms
 *   .lbdco-field       a labelled field
 *   .lbdco-input       the text inputs
 *   .lbdco-check       the "keep session open" checkbox
 *   .lbdco-text        the paragraphs
 *   .lbdco-note        the small notes
 *   .lbdco-btn         the buttons
 *   .lbdco-link        the "forgotten password" link
 *   .lbdco-link-btn    the "continue without email" link
 * ===================================================================== */

.lbdco-root {
    --lbdco-accent: #b08a56;
    --lbdco-text: #171717;
    --lbdco-muted: rgba(17, 17, 17, 0.55);
    --lbdco-line: rgba(17, 17, 17, 0.12);
    --lbdco-bg: #ffffff;
    box-sizing: border-box;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 0 40px;
    color: var(--lbdco-text);
    font-family: inherit;
}

.lbdco-root *,
.lbdco-root *::before,
.lbdco-root *::after {
    box-sizing: border-box;
}

/* ---------------------------------------------------------------------
 * Title
 * ------------------------------------------------------------------ */
.lbdco-title {
    margin: 0 0 42px;
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.22;
    font-weight: 300;
    text-align: center;
    color: var(--lbdco-text);
}

.lbdco-title strong {
    font-weight: 700;
}

.lbdco-title-light {
    font-weight: 300;
}

/* ---------------------------------------------------------------------
 * Columns
 * ------------------------------------------------------------------ */
.lbdco-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.lbdco-layout-stacked .lbdco-columns {
    grid-template-columns: 1fr;
    gap: 40px;
}

.lbdco-col {
    min-width: 0;
    padding: 32px;
    background-color: var(--lbdco-bg);
    border-radius: 4px;
}

/* How the content of the column is aligned inside the column. */
.lbdco-col.lbdco-col--left { text-align: left; }
.lbdco-col.lbdco-col--center { text-align: center; }
.lbdco-col.lbdco-col--right { text-align: right; }

/* The column head, the blocks and the forms are centred as well. */
.lbdco-col--center .lbdco-col-head { text-align: center; }
.lbdco-col--center .lbdco-block { text-align: center; }
.lbdco-col--center .lbdco-form { align-items: center; }

.lbdco-col + .lbdco-col {
    border-left: 1px solid var(--lbdco-line);
}

/* The stacked layout draws the divider horizontally instead. */
.lbdco-root.lbdco-layout-stacked .lbdco-col + .lbdco-col {
    border-left: 0;
    border-top: 1px solid var(--lbdco-line);
}

/* ---------------------------------------------------------------------
 * Column header
 * ------------------------------------------------------------------ */
.lbdco-col-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 26px;
}

.lbdco-col-icon {
    flex: 0 0 auto;
    font-size: 30px;
    line-height: 1;
}

.lbdco-col-head-text {
    min-width: 0;
}

.lbdco-col-title {
    margin: 0 0 4px;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--lbdco-text);
}

.lbdco-col-sub {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--lbdco-muted);
}

/* ---------------------------------------------------------------------
 * Forms
 * ------------------------------------------------------------------ */
.lbdco-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}

.lbdco-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.lbdco-label {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lbdco-muted);
}

.lbdco-input {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: var(--lbdco-text);
    background-color: #fff;
    border: 1px solid var(--lbdco-line);
    border-radius: 0;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.lbdco-input:focus {
    outline: none;
    border-color: var(--lbdco-accent);
    box-shadow: 0 0 0 3px rgba(176, 138, 86, 0.18);
}

.lbdco-input:focus-visible {
    outline: 2px solid var(--lbdco-accent);
    outline-offset: 1px;
}

/* ---------------------------------------------------------------------
 * Checkbox + links
 * ------------------------------------------------------------------ */
.lbdco-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
}

.lbdco-check input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--lbdco-accent);
    cursor: pointer;
}

.lbdco-link,
.lbdco-link-btn {
    font-size: 14px;
    line-height: 1.5;
    color: var(--lbdco-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lbdco-link:hover,
.lbdco-link-btn:hover {
    color: var(--lbdco-text);
}

.lbdco-link:focus-visible,
.lbdco-link-btn:focus-visible {
    outline: 2px solid var(--lbdco-accent);
    outline-offset: 2px;
}

.lbdco-link-btn {
    align-self: flex-start;
    padding: 0;
    font-family: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

/* ---------------------------------------------------------------------
 * Texts
 * ------------------------------------------------------------------ */
.lbdco-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--lbdco-muted);
}

.lbdco-note {
    font-size: 14px;
}

.lbdco-block {
    margin-bottom: 22px;
}

.lbdco-block:last-of-type {
    margin-bottom: 0;
}

/* The guest form follows the notes: keep the gap. */
.lbdco-block:last-of-type + .lbdco-form {
    margin-top: 22px;
}

/* ---------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------ */
.lbdco-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 4px 0 0;
    padding: 14px 26px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: var(--lbdco-accent);
    border: 0;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.lbdco-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(176, 138, 86, 0.32);
}

.lbdco-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.lbdco-btn:focus-visible {
    outline: 2px solid var(--lbdco-accent);
    outline-offset: 3px;
}

/* Content-width variant (the "Full Width Buttons" switcher). */
.lbdco-btn.is-auto {
    width: auto;
}

/* ---------------------------------------------------------------------
 * One column only (the customer is already logged in).
 * ------------------------------------------------------------------ */
.lbdco-root.lbdco-no-login .lbdco-login {
    display: none;
}

.lbdco-root.lbdco-no-guest .lbdco-guest {
    display: none;
}

.lbdco-root.lbdco-no-login .lbdco-columns,
.lbdco-root.lbdco-no-guest .lbdco-columns {
    grid-template-columns: 1fr;
}

.lbdco-root.lbdco-no-login .lbdco-col + .lbdco-col,
.lbdco-root.lbdco-no-guest .lbdco-col + .lbdco-col {
    border-left: 0;
    border-top: 0;
}

/* ---------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 980px) {
    .lbdco-columns {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .lbdco-col + .lbdco-col {
        border-left: 0;
        border-top: 1px solid var(--lbdco-line);
    }

    .lbdco-col {
        padding: 26px;
    }
}

@media (max-width: 560px) {
    .lbdco-root {
        padding-bottom: 20px;
    }

    .lbdco-title {
        margin-bottom: 28px;
    }

    .lbdco-col {
        padding: 20px;
    }
}

/* =====================================================================
 * Elementor editor: the widget is an in-flow block, so nothing special is
 * needed. The rules below only avoid the theme's default form styles
 * leaking into the preview.
 * ===================================================================== */
.elementor-editor-active .lbdco-input,
.elementor-editor-active .lbdco-btn {
    font-family: inherit;
}

/* Respect the OS "reduce motion" setting (accessibility). */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
