.pick-ai-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1045;
    font-family: inherit;
}

.pick-ai-fab__btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #fb507a 0%, #e83862 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(251, 80, 122, 0.45);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.pick-ai-fab__btn:hover {
    transform: scale(1.05);
}

.pick-ai-fab__panel {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 84px;
    width: min(420px, calc(100vw - 32px));
    max-height: min(70vh, 520px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    z-index: 1046;
    flex-direction: column;
    overflow: hidden;
}

.pick-ai-fab__panel.is-open {
    display: flex;
}

.pick-ai-fab__head {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
}

.pick-ai-fab__head h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.pick-ai-fab__close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #888;
}

.pick-ai-fab__body {
    padding: 14px 16px;
    overflow-y: auto;
}

.pick-ai-fab__modes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pick-ai-fab__mode {
    flex: 1 1 auto;
    min-width: 45%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    text-align: center;
}

.pick-ai-fab__mode.is-active {
    border-color: #fb507a;
    background: #fff5f8;
    color: #e83862;
    font-weight: 600;
}

.pick-ai-fab__input-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.pick-ai-fab__textarea {
    flex: 1;
    width: 100%;
    min-height: 100px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    resize: vertical;
}

.pick-ai-fab__mic {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pick-ai-fab__mic:hover {
    border-color: #fb507a;
    color: #e83862;
}

.pick-ai-fab__mic.is-listening {
    border-color: #e83862;
    background: #fff5f8;
    color: #e83862;
    animation: pick-ai-mic-pulse 1.2s ease-in-out infinite;
}

.pick-ai-fab__mic.is-processing {
    opacity: 0.65;
    cursor: wait;
}

.pick-ai-fab__mic.is-unsupported {
    opacity: 0.45;
    cursor: not-allowed;
}

@keyframes pick-ai-mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251, 80, 122, 0.35); }
    50% { box-shadow: 0 0 0 8px rgba(251, 80, 122, 0); }
}

.pick-ai-fab__voice-hint {
    font-size: 12px;
    color: #e83862;
    margin: 6px 0 0;
}

.pick-ai-fab__enable-mic {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px 14px;
    border: 1px dashed #e83862;
    border-radius: 8px;
    background: #fff5f8;
    color: #e83862;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.pick-ai-fab__enable-mic:hover {
    background: #ffe8ef;
}

.pick-ai-fab__actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pick-ai-fab__submit {
    flex: 1;
    min-width: 120px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: #fb507a;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.pick-ai-fab__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pick-ai-fab__msg {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.pick-ai-fab__msg.is-error {
    color: #c0392b;
}

.pick-ai-fab__sub-cta {
    display: block;
    margin-top: 10px;
    text-align: center;
    padding: 10px;
    background: #fb507a;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
}

.pick-ai-fab__type-pick {
    margin-top: 12px;
}

.pick-ai-fab__type-pick button {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 10px;
    border: 1px solid #fb507a;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    color: #e83862;
}

.pick-ai-fab__backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1044;
}

.pick-ai-fab__backdrop.is-open {
    display: block;
}

@media (max-width: 480px) {
    .pick-ai-fab {
        right: 12px;
        bottom: 12px;
    }
    .pick-ai-fab__panel {
        right: 8px;
        left: 8px;
        width: auto;
    }
}
