/* AI Q&A widget: launcher above the sticky store bar, sheet on phones, panel on PC. */
.lp-ask {
    /* --lp-ask-lift is set by lp-ask.js only while a fixed store CTA bar is on screen. */
    --lp-ask-bottom: calc(16px + env(safe-area-inset-bottom) + var(--lp-ask-lift, 0px));
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--site-ink, #1f1b1d);
}

/* Mirrors the owner app's AppFloatingActionButton (extended): stadium shape,
   primary-strong fill with white label (design system, AA), cardShadow. */
.lp-ask__launcher {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: var(--lp-ask-bottom);
    z-index: 44;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: #c4445b;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, bottom 0.2s ease;
}

.lp-ask__launcher svg {
    width: 22px;
    height: 22px;
    color: #ffffff;
}

.lp-ask__launcher:focus-visible,
.lp-ask__close:focus-visible,
.lp-ask__chip:focus-visible,
.lp-ask__send:focus-visible {
    outline: 2px solid var(--site-accent-deep, #a8364c);
    outline-offset: 2px;
}

.lp-ask.is-open .lp-ask__launcher {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.lp-ask__scrim {
    position: fixed;
    inset: 0;
    /* Above the site header (50) and menu (46) while the sheet is open. */
    z-index: 60;
    background: rgba(31, 27, 29, 0.32);
}

.lp-ask__panel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 61;
    display: flex;
    flex-direction: column;
    max-height: min(86vh, 720px);
    max-height: min(86dvh, 720px);
    border-radius: 24px 24px 0 0;
    background: var(--site-surface, #ffffff);
    box-shadow: 0 -12px 40px rgba(112, 72, 84, 0.16);
    padding-bottom: env(safe-area-inset-bottom);
}

.lp-ask__panel:focus {
    outline: none;
}

.lp-ask__panel[hidden],
.lp-ask__scrim[hidden] {
    display: none;
}

.lp-ask__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 12px;
    border-bottom: 1px solid #efe8ea;
}

.lp-ask__title {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.lp-ask__close {
    flex: none;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #f4eff1;
    color: var(--site-muted, #6f6870);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.lp-ask__close svg {
    width: 16px;
    height: 16px;
}

.lp-ask__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 20px 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overscroll-behavior: contain;
}

.lp-ask__intro {
    font-size: 14px;
    line-height: 1.7;
    color: var(--site-muted, #6f6870);
}

.lp-ask__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lp-ask__chip {
    border: 1px solid #e6dcdf;
    border-radius: 999px;
    background: #ffffff;
    color: var(--site-ink, #1f1b1d);
    font: inherit;
    font-size: 13px;
    padding: 7px 14px;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .lp-ask__chip:hover {
        border-color: var(--site-accent, #d2818a);
    }
}

.lp-ask__q {
    align-self: flex-end;
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px 16px 4px 16px;
    background: var(--site-surface-tint, #fff5f7);
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.lp-ask__a {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.lp-ask__lead {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
}

.lp-ask__p {
    color: var(--site-muted, #6f6870);
    font-size: 13px;
    line-height: 1.7;
}

.lp-ask__list {
    list-style: none;
    border: 1px solid #efe8ea;
    border-radius: 12px;
    overflow: hidden;
}

.lp-ask__item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 14px;
    background: #ffffff;
}

.lp-ask__item + .lp-ask__item {
    border-top: 1px solid #f3eef0;
}

.lp-ask__key {
    flex: none;
    min-width: 4.5em;
    max-width: 8em;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: var(--site-ink, #1f1b1d);
}

.lp-ask__val {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.lp-ask__refs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.lp-ask__ref {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #e6dcdf;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--site-accent-deep, #a8364c);
    text-decoration: none;
}

.lp-ask__ref::after {
    content: '›';
    margin-left: 6px;
}

.lp-ask__note {
    font-size: 14px;
    line-height: 1.7;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f7f4f5;
}

.lp-ask__contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.lp-ask__contact {
    font-size: 14px;
    font-weight: 600;
    color: var(--site-accent-deep, #a8364c);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.lp-ask__loading {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp-ask__loading span {
    display: block;
    height: 12px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f3edef 0%, #faf6f7 50%, #f3edef 100%);
    background-size: 200% 100%;
    animation: lp-ask-shimmer 1.2s ease-in-out infinite;
}

.lp-ask__loading span:nth-child(2) { width: 88%; }
.lp-ask__loading span:nth-child(3) { width: 56%; }

@keyframes lp-ask-shimmer {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-ask__loading span { animation: none; }
    .lp-ask__launcher { transition: none; }
}

.lp-ask__form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 16px 14px;
    border-top: 1px solid #efe8ea;
}

.lp-ask__input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    max-height: 120px;
    resize: none;
    border: 1px solid #e6dcdf;
    border-radius: 12px;
    padding: 11px 12px;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    color: var(--site-ink, #1f1b1d);
    background: #ffffff;
}

.lp-ask__input:focus {
    outline: none;
    border-color: var(--site-accent-deep, #a8364c);
}

.lp-ask__send {
    flex: none;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--site-accent-deep, #a8364c);
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.lp-ask__send:disabled {
    background: #f1ecee;
    color: #9a9095;
    cursor: default;
}

.lp-ask__foot {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 16px 12px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--site-muted, #6f6870);
}

@media (min-width: 880px) {
    .lp-ask {
        --lp-ask-bottom: calc(24px + env(safe-area-inset-bottom) + var(--lp-ask-lift, 0px));
    }

    .lp-ask__scrim {
        background: transparent;
    }

    .lp-ask__panel {
        left: auto;
        right: 24px;
        bottom: var(--lp-ask-bottom);
        width: 400px;
        max-height: min(72vh, 640px);
        max-height: min(72dvh, 640px);
        border-radius: 24px;
        border: 1px solid #efe8ea;
        box-shadow: 0 20px 50px rgba(112, 72, 84, 0.16);
        padding-bottom: 0;
    }
}

.lp-ask__chip.is-on {
    border-color: var(--site-accent-deep, #a8364c);
    background: var(--site-surface-tint, #fff5f7);
    color: var(--site-accent-deep, #a8364c);
    font-weight: 600;
}

.lp-ask__chip:disabled:not(.is-on) {
    opacity: 0.45;
    cursor: default;
}

.lp-ask__advice {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-ask__step {
    font-size: 14px;
    font-weight: 700;
    margin-top: 4px;
}

.lp-ask__advice-done {
    align-self: flex-start;
}

.lp-ask__plan {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--site-accent, #d2818a);
    border-radius: 16px;
    background: #ffffff;
}

.lp-ask__plan-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--site-accent-deep, #a8364c);
}

.lp-ask__plan-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.lp-ask__plan-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.lp-ask__plan-price {
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.lp-ask__plan-sub {
    font-size: 13px;
    color: var(--site-muted, #6f6870);
}

.lp-ask__plan-why {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid #f3eef0;
    font-size: 14px;
}

.lp-ask__plan-why li::before {
    content: '✓';
    margin-right: 8px;
    color: var(--site-accent-deep, #a8364c);
    font-weight: 700;
}

.lp-ask__plan-alt {
    font-size: 13px;
    line-height: 1.6;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f7f4f5;
}

.lp-ask__foot a {
    color: inherit;
    white-space: nowrap;
}

.lp-ask__recaptcha {
    color: #9a9095;
}

/* Notice is shown in the panel footer instead (allowed by reCAPTCHA terms). */
.grecaptcha-badge {
    visibility: hidden;
}
