/* ─────────────────────────────────────────────────────
   ACADP Location Tracker — Consent Banner (Frontend)
   v1.0.2 — Modern pill-button redesign
   ───────────────────────────────────────────────────── */

/* ── Consent Banner ─── */
#acadp-lt-consent-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(140%);
    z-index: 99999;
    width: min(560px, calc(100vw - 32px));
    background: #ffffff;
    border-radius: 20px;
    box-shadow:
        0 0 0 1px rgba(76,70,224,.10),
        0 8px 32px rgba(0,0,0,.13),
        0 2px 8px rgba(0,0,0,.06);
    padding: 20px 22px 22px;
    transition: transform .45s cubic-bezier(.34,1.56,.64,1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
#acadp-lt-consent-banner.visible {
    transform: translateX(-50%) translateY(0);
}

/* ── Inner layout ─── */
.acadp-lt-consent-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

/* ── Icon square ─── */
.acadp-lt-consent-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #EEEDFE;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
}

/* ── Text block ─── */
.acadp-lt-consent-text { flex: 1; }

.acadp-lt-consent-chip {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    background: #EEEDFE;
    color: #534AB7;
    border-radius: 999px;
    padding: 2px 9px;
    margin-bottom: 8px;
}

.acadp-lt-consent-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 5px;
    line-height: 1.4;
}
.acadp-lt-consent-text p {
    margin: 0 0 14px;
    font-size: 13px;
    color: #555;
    line-height: 1.65;
}

/* ── Action row ─── */
.acadp-lt-consent-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Buttons — pill shape ─── */
.acadp-lt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: filter .15s ease, box-shadow .15s ease, transform .1s ease;
    white-space: nowrap;
    line-height: 1;
    font-family: inherit;
}
.acadp-lt-btn:focus-visible {
    outline: 2px solid #4C46E0;
    outline-offset: 2px;
}
.acadp-lt-btn:active { transform: scale(.97); }

/* Accept — filled indigo */
.acadp-lt-btn-primary {
    background: #4C46E0;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(76,70,224,.35);
    padding: 10px 22px;
}
.acadp-lt-btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 14px rgba(76,70,224,.45);
}

/* Decline — outline ghost */
.acadp-lt-btn-ghost {
    background: transparent;
    color: #555;
    border: 1.5px solid #d1d5db;
    padding: 8.5px 18px;
}
.acadp-lt-btn-ghost:hover {
    background: #f5f5f5;
    border-color: #9ca3af;
    color: #222;
}

/* ── Toast notification ─── */
.acadp-lt-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    background: #0F6E56;
    color: #fff;
    padding: 10px 18px 10px 14px;
    border-radius: 999px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(15,110,86,.35);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.acadp-lt-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ─── */
@media (max-width: 540px) {
    .acadp-lt-consent-inner { flex-wrap: wrap; }
    .acadp-lt-consent-actions { width: 100%; }
    .acadp-lt-btn { flex: 1; justify-content: center; }
}
