/* How it works + live chat — Inter, 1360px storefront */

.la-chat .sr-only,
.pg-how .sr-only,
.la-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pg-how {
    --la-teal: #0b5d57;
    --la-teal-dark: #073b37;
    --la-teal-light: #d5ecea;
    --la-page: #f4f7f7;
    --la-border: #dde3e3;
    --la-input: #cfd8d8;
    --la-ink: #1c2528;
    --la-muted: #445654;
    --la-online: #3ddc84;
    --la-max: var(--site-max, 1360px);

    font-family: Inter, system-ui, sans-serif;
    background: #fff;
    border-top: 1px solid var(--la-border);
    padding: 20px 40px;
    margin-top: 8px;
    /* Break out of .pg-browse side padding so the band is full-bleed */
    margin-left: calc(-1 * var(--site-gutter, 40px));
    margin-right: calc(-1 * var(--site-gutter, 40px));
    width: auto;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.pg-how-inner {
    max-width: var(--la-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.pg-how-step {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.pg-how-num {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--la-teal);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pg-how-copy {
    min-width: 0;
}

.pg-how-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--la-ink);
    line-height: 1.3;
}

.pg-how-sub {
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 400;
    color: var(--la-muted);
    line-height: 1.35;
}

/* —— Live chat —— */
.la-chat {
    --la-teal: #0b5d57;
    --la-teal-dark: #073b37;
    --la-teal-light: #d5ecea;
    --la-page: #f4f7f7;
    --la-border: #dde3e3;
    --la-input: #cfd8d8;
    --la-ink: #1c2528;
    --la-muted: #445654;
    --la-online: #3ddc84;

    font-family: Inter, system-ui, sans-serif;
    position: fixed;
    right: 28px;
    bottom: 24px;
    /* Above .sticky-social (9999) and other storefront chrome */
    z-index: 10050;
    width: 330px;
    max-width: calc(100vw - 56px);
    pointer-events: none;
}

.la-chat > * {
    pointer-events: auto;
}

.la-launcher-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
    width: 100%;
}

body.pg-bulk-open .la-chat {
    bottom: 84px;
}

/* Clear the cookie consent bar so Accept / Decline stay clickable */
body.spa-cookie-open .la-chat {
    bottom: 96px;
}

body.spa-cookie-open.pg-bulk-open .la-chat {
    bottom: 156px;
}

.la-chat-panel {
    display: none;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(7, 59, 55, 0.3);
    overflow: hidden;
    width: 100%;
}

.la-chat.is-open .la-chat-panel {
    display: flex;
}

.la-chat.is-open .la-launcher {
    display: none;
}

.la-chat-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    background: var(--la-teal);
    color: #fff;
    padding: 8px 10px;
}

.la-chat-head-text {
    min-width: 0;
}

.la-chat-title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.la-chat-status {
    margin: 2px 0 0;
    font-size: 11px;
    color: var(--la-teal-light);
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.3;
}

.la-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--la-online);
    flex-shrink: 0;
}

.la-dot.is-offline {
    background: #9aa8a6;
}

.la-chat-head-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.la-chat-wa,
.la-chat-min {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    padding: 2px 4px;
}

.la-chat-wa {
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    color: var(--la-teal-light);
    white-space: nowrap;
}

.la-chat-wa:hover {
    color: #fff;
}

.la-chat-min {
    font-size: 18px;
    font-weight: 400;
    width: 24px;
    height: 24px;
}

.la-chat-msgs {
    background: var(--la-page);
    padding: 8px;
    height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scroll-behavior: smooth;
}

.la-msg {
    max-width: 80%;
    padding: 6px 9px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.35;
    color: var(--la-ink);
    word-wrap: break-word;
}

.la-msg.is-team {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--la-border);
}

.la-msg.is-user {
    align-self: flex-end;
    background: var(--la-teal);
    color: #fff;
    border: 0;
}

.la-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-self: flex-start;
    max-width: 100%;
}

.la-quick-btn {
    border: 1.5px solid var(--la-teal);
    background: #fff;
    color: var(--la-teal);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    border-radius: 99px;
    padding: 4px 9px;
    cursor: pointer;
    line-height: 1.2;
}

.la-quick-btn:hover,
.la-quick-btn:focus-visible {
    background: var(--la-teal);
    color: #fff;
    outline: none;
}

.la-lead {
    align-self: stretch;
    background: #fff;
    border: 1px solid var(--la-border);
    border-radius: 10px;
    padding: 8px;
    display: grid;
    gap: 6px;
}

.la-lead-label {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--la-ink);
}

.la-lead-hint {
    margin: 0;
    font-size: 11px;
    color: var(--la-muted);
}

.la-field-label {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--la-ink);
}

.la-field-label span {
    color: #b42318;
}

.la-chat-input input:disabled,
.la-chat-send:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.la-lead-error {
    margin: 0;
    font-size: 11px;
    color: #b42318;
    display: none;
}

.la-lead-error.is-on {
    display: block;
}

.la-lead input.is-invalid,
.la-offline-form input.is-invalid,
.la-offline-form textarea.is-invalid {
    border-color: #b42318;
}

.la-lead input,
.la-lead textarea,
.la-offline-form input,
.la-offline-form textarea {
    width: 100%;
    box-sizing: border-box;
    height: 30px;
    border: 1px solid var(--la-input);
    border-radius: 5px;
    padding: 0 8px;
    font-family: inherit;
    font-size: 11px;
    color: var(--la-ink);
}

.la-lead textarea,
.la-offline-form textarea {
    height: 56px;
    padding: 6px 8px;
    resize: vertical;
}

.la-lead-submit,
.la-offline-form button {
    border: 0;
    border-radius: 5px;
    background: var(--la-teal);
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    padding: 7px 12px;
    cursor: pointer;
}

.la-chat-input {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-top: 1px solid var(--la-border);
    background: #fff;
}

.la-chat-input input {
    flex: 1 1 auto;
    min-width: 0;
    height: 32px;
    border: 1px solid var(--la-input);
    border-radius: 5px;
    padding: 0 10px;
    font-family: inherit;
    font-size: 11px;
    color: var(--la-ink);
}

.la-chat-input input::placeholder {
    color: #8a9a98;
}

.la-chat-send {
    flex: 0 0 auto;
    height: 32px;
    border: 0;
    border-radius: 5px;
    background: var(--la-teal);
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    padding: 0 12px;
    cursor: pointer;
}

.la-chat-send:hover {
    background: var(--la-teal-dark);
}

.la-launcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-left: auto;
    border: 0;
    background: var(--la-teal);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 99px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    position: relative;
}

.la-launcher-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--la-online);
    flex-shrink: 0;
}

.la-launcher-dot.is-offline {
    background: #9aa8a6;
}

.la-launcher-icon {
    display: none;
    width: 22px;
    height: 22px;
}

.la-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 99px;
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    display: none;
}

.la-badge.is-on {
    display: inline-block;
}

.la-nudge {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: 200px;
    background: #fff;
    color: var(--la-ink);
    border: 1px solid var(--la-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(7, 59, 55, 0.18);
    padding: 8px 24px 8px 10px;
    font-size: 11px;
    line-height: 1.35;
}

.la-nudge.is-on {
    display: block;
}

.la-nudge-close {
    position: absolute;
    top: 4px;
    right: 6px;
    border: 0;
    background: none;
    color: var(--la-muted);
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 2px;
}

.la-sr-live {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.la-offline-form {
    display: grid;
    gap: 8px;
}

@media (max-width: 1024px) and (min-width: 768px) {
    .pg-how {
        padding: 18px var(--site-gutter, 24px);
        margin-left: calc(-1 * var(--site-gutter, 24px));
        margin-right: calc(-1 * var(--site-gutter, 24px));
    }

    .pg-how-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 767px) {
    .pg-how {
        padding: 20px 16px;
        margin-left: calc(-1 * var(--site-gutter, 16px));
        margin-right: calc(-1 * var(--site-gutter, 16px));
    }

    .pg-how-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .la-chat {
        right: 16px;
        bottom: 16px;
        width: auto;
        max-width: calc(100vw - 32px);
        z-index: 10050;
    }

    body.pg-bulk-open .la-chat {
        bottom: 84px;
    }

    .la-chat.is-open {
        inset: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        z-index: 1200;
    }

    body.pg-bulk-open .la-chat.is-open {
        bottom: 0;
    }

    .la-chat.is-open .la-chat-panel {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-height: none;
    }

    .la-chat.is-open .la-chat-head {
        flex-shrink: 0;
    }

    .la-chat.is-open .la-chat-msgs {
        flex: 1 1 auto;
        height: auto;
    }

    .la-chat.is-open .la-chat-input {
        flex-shrink: 0;
    }

    .la-launcher {
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 50%;
    }

    .la-launcher-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .la-launcher-dot {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .la-launcher-icon {
        display: block;
    }

    .la-nudge {
        right: 0;
        width: min(220px, calc(100vw - 40px));
    }
}
