@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&display=swap');

#cb-widget {
    --cb-color: #2563eb;
    --cb-radius: 16px;
    --cb-shadow: 0 8px 32px rgba(0,0,0,.18);
    position: fixed;
    z-index: 999999;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Positioning */
#cb-widget.cb-bottom-right { bottom: 24px; right: 24px; }
#cb-widget.cb-bottom-left  { bottom: 24px; left: 24px; }
#cb-widget.cb-top-right    { top: 24px; right: 24px; }
#cb-widget.cb-top-left     { top: 24px; left: 24px; }

/* Trigger Button */
.cb-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--cb-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 6px 24px rgba(0,0,0,.25);
    transition: transform .2s, box-shadow .2s;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}
.cb-trigger:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 36px rgba(0,0,0,.3);
}
.cb-trigger:active { transform: scale(.97); }

#cb-widget.cb-size-small .cb-trigger { padding: 10px 16px; font-size: 13px; }
#cb-widget.cb-size-large .cb-trigger { padding: 15px 26px; font-size: 17px; }

.cb-trigger-icon { display: flex; align-items: center; transition: all .3s; }
.cb-trigger-icon[hidden] { display: none; }

/* Menu Panel */
.cb-menu, .cb-content-panel {
    position: absolute;
    width: 330px;
    background: #fff;
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
    border: 1px solid rgba(0,0,0,.08);
    overflow: hidden;
    transform-origin: bottom right;
    animation: cb-slide-up .25s cubic-bezier(.34,1.56,.64,1);
}

#cb-widget.cb-bottom-right .cb-menu,
#cb-widget.cb-bottom-right .cb-content-panel { bottom: calc(100% + 14px); right: 0; transform-origin: bottom right; }
#cb-widget.cb-bottom-left .cb-menu,
#cb-widget.cb-bottom-left .cb-content-panel  { bottom: calc(100% + 14px); left: 0; transform-origin: bottom left; }
#cb-widget.cb-top-right .cb-menu,
#cb-widget.cb-top-right .cb-content-panel    { top: calc(100% + 14px); right: 0; transform-origin: top right; }
#cb-widget.cb-top-left .cb-menu,
#cb-widget.cb-top-left .cb-content-panel     { top: calc(100% + 14px); left: 0; transform-origin: top left; }

[hidden] { display: none !important; }

@keyframes cb-slide-up {
    from { opacity: 0; transform: scale(.9) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.cb-menu-header {
    padding: 18px 20px 14px;
    background: var(--cb-color);
    color: #fff;
}
.cb-menu-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 3px;
    line-height: 1.2;
}
.cb-menu-header p {
    font-size: 13px;
    opacity: .85;
    margin: 0;
}

.cb-menu-body {
    padding: 8px 0;
    max-height: 320px;
    overflow-y: auto;
}

.cb-app-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    cursor: pointer;
    transition: background .15s;
}
.cb-app-item:hover { background: #f8fafc; }
.cb-app-icon { font-size: 22px; width: 36px; text-align: center; flex-shrink: 0; }
.cb-app-label { flex: 1; font-size: 14px; font-weight: 500; color: #1e293b; }
.cb-app-arrow { color: #94a3b8; flex-shrink: 0; }
.cb-app-item:hover .cb-app-arrow { color: var(--cb-color); }

/* Content panel */
.cb-content-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafafa;
}
.cb-back-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--cb-color);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px 4px 4px;
    border-radius: 6px;
    transition: background .15s;
    font-family: inherit;
}
.cb-back-btn:hover { background: rgba(37,99,235,.08); }
.cb-content-header h3 { font-size: 15px; font-weight: 700; color: #0f172a; }
.cb-content-body {
    padding: 18px;
    max-height: 340px;
    overflow-y: auto;
}

/* App-specific content styles */
.cb-hours-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cb-hours-table tr { border-bottom: 1px solid #f1f5f9; }
.cb-hours-table td { padding: 8px 4px; }
.cb-hours-table td:first-child { font-weight: 600; color: #475569; width: 100px; }

.cb-social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.cb-social-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    font-size: 13px;
    font-weight: 500;
    transition: all .2s;
}
.cb-social-link:hover { border-color: var(--cb-color); color: var(--cb-color); background: rgba(37,99,235,.04); }

.cb-list-items { list-style: none; padding: 0; }
.cb-list-items li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
}
.cb-list-items li:last-child { border-bottom: none; }

/* Contact form styles */
.cb-form-field { margin-bottom: 12px; }
.cb-form-field input, .cb-form-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #1e293b;
    transition: border-color .2s;
    box-sizing: border-box;
    background: #fafafa;
}
.cb-form-field input:focus, .cb-form-field textarea:focus {
    outline: none;
    border-color: var(--cb-color);
    background: #fff;
}
.cb-form-field textarea { height: 80px; resize: vertical; }
.cb-form-submit {
    width: 100%;
    padding: 11px;
    background: var(--cb-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
    margin-top: 4px;
}
.cb-form-submit:hover { opacity: .9; }

.cb-action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--cb-color);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: opacity .2s;
    margin-top: 10px;
}
.cb-action-link:hover { opacity: .9; color: #fff; }

.cb-map-embed { width: 100%; height: 220px; border-radius: 10px; border: none; }
.cb-embed-content iframe { width: 100%; border: none; border-radius: 8px; }
.cb-success-msg {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

/* Brand SVG icon sizing in menu list */
.cb-app-icon svg {
    width: 32px;
    height: 32px;
    display: block;
}

/* Brand button (replaces cb-action-link for platform buttons) */
.cb-brand-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    font-family: inherit;
    transition: opacity .2s, transform .15s;
    box-sizing: border-box;
    margin-top: 0;
}
.cb-brand-btn:hover { opacity: .92; transform: translateY(-1px); color: #fff; }
.cb-brand-btn-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cb-brand-btn-icon svg {
    width: 26px;
    height: 26px;
    /* remove the rounded rect bg from icon inside button — show just the mark */
    filter: brightness(10);
}
/* Social links: stack vertically */
.cb-social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* SVG icon sizing in frontend menu */
.cb-app-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cb-app-icon svg {
    width: 36px;
    height: 36px;
    display: block;
}


