/* ========== Olo Sandbox Feedback widget ========== */

#olo-sandbox-fb-root *,
#olo-sandbox-fb-root *::before,
#olo-sandbox-fb-root *::after {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- FAB (floating action button) ---------- */
.olo-sb-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99997;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px 12px 14px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35), 0 2px 6px rgba(0,0,0,.1);
    transition: transform .2s ease, box-shadow .2s ease;
    line-height: 1;
}
.olo-sb-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.45), 0 2px 6px rgba(0,0,0,.12);
}
.olo-sb-fab:active { transform: translateY(0); }
.olo-sb-fab svg { width: 18px; height: 18px; flex-shrink: 0; }

@media (max-width: 600px) {
    .olo-sb-fab { right: 12px; bottom: 12px; padding: 10px 14px 10px 12px; font-size: 12px; }
}

/* ---------- Modal overlay ---------- */
.olo-sb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: olo-sb-fadein .18s ease-out;
}
@keyframes olo-sb-fadein { from { opacity: 0 } to { opacity: 1 } }
@keyframes olo-sb-slidein {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to   { opacity: 1; transform: translateY(0)  scale(1); }
}

.olo-sb-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    overflow: hidden;
    animation: olo-sb-slidein .22s cubic-bezier(.16,1,.3,1);
}
.olo-sb-modal__head {
    padding: 20px 22px 14px;
    border-bottom: 1px solid #f1f5f9;
}
.olo-sb-modal__title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}
.olo-sb-modal__subtitle {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}
.olo-sb-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border: 0;
    background: #f1f5f9;
    color: #475569;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.olo-sb-modal__close:hover { background: #e2e8f0; color: #0f172a; }

.olo-sb-modal__body {
    padding: 18px 22px 22px;
    position: relative;
}

/* ---------- Form ---------- */
.olo-sb-field { margin-bottom: 14px; }
.olo-sb-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.olo-sb-kinds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.olo-sb-kinds label {
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
    text-align: center;
    padding: 10px 6px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    transition: all .15s ease;
}
.olo-sb-kinds input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.olo-sb-kinds label:hover { background: #f8fafc; border-color: #cbd5e1; }
.olo-sb-kinds input[type="radio"]:checked + label,
.olo-sb-kinds label.olo-sb-kind--active {
    border-color: #ef4444;
    background: #fef2f2;
    color: #b91c1c;
    font-weight: 600;
}

.olo-sb-input,
.olo-sb-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.olo-sb-input:focus,
.olo-sb-textarea:focus {
    outline: 0;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
}
.olo-sb-textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.5;
}
.olo-sb-honeypot {
    position: absolute !important;
    left: -9999px !important;
    height: 0;
    width: 0;
    opacity: 0;
}

.olo-sb-submit {
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s ease, transform .1s ease;
    margin-top: 4px;
}
.olo-sb-submit:hover:not(:disabled) { filter: brightness(1.06); }
.olo-sb-submit:active:not(:disabled) { transform: translateY(1px); }
.olo-sb-submit:disabled { opacity: .6; cursor: wait; }

.olo-sb-error {
    margin: 10px 0 0;
    padding: 8px 10px;
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid #fecaca;
}

/* ---------- Success state ---------- */
.olo-sb-success {
    text-align: center;
    padding: 24px 12px 8px;
}
.olo-sb-success__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}
.olo-sb-success h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #0f172a;
}
.olo-sb-success p {
    margin: 0 0 18px;
    color: #475569;
    font-size: 14px;
}

/* ---------- Consent banner ---------- */
.olo-sb-consent {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 99996;
    max-width: 380px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,.25);
    padding: 16px 18px;
    animation: olo-sb-slidein .25s ease-out;
    border: 1px solid #e2e8f0;
}
.olo-sb-consent__title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.olo-sb-consent__title::before {
    content: '🍪';
    font-size: 18px;
}
.olo-sb-consent__body {
    margin: 0 0 12px;
    font-size: 12px;
    color: #475569;
    line-height: 1.45;
}
.olo-sb-consent__actions {
    display: flex;
    gap: 8px;
}
.olo-sb-consent__btn {
    flex: 1;
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    transition: filter .15s ease;
}
.olo-sb-consent__btn--accept {
    background: #ef4444;
    color: #fff;
}
.olo-sb-consent__btn--accept:hover { filter: brightness(1.08); }
.olo-sb-consent__btn--reject {
    background: #f1f5f9;
    color: #475569;
}
.olo-sb-consent__btn--reject:hover { background: #e2e8f0; }

@media (max-width: 600px) {
    .olo-sb-consent {
        left: 8px;
        right: 8px;
        bottom: 8px;
        max-width: none;
    }
}
