.lw-consent {
    box-sizing: border-box;
    position: fixed;
    z-index: 2147483647;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    width: min(calc(100% - 48px), 1640px);
    margin: 0;
    transform: translateX(-50%);
    background: #fff;
    color: #111;
    border: 1px solid rgba(17, 17, 17, .035);
    border-radius: 999px;
    padding: 30px 26px 30px 32px;
    box-shadow: 0 18px 36px rgba(16, 24, 40, .11), 0 4px 12px rgba(16, 24, 40, .06);
    font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.lw-consent *,
.leadwhizz-profile-form * {
    box-sizing: border-box;
}

.lw-consent-main { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.lw-consent-copy { display: flex; align-items: center; gap: 36px; min-width: 0; }
.lw-consent-icon { display: block; width: 48px; height: 48px; flex: 0 0 48px; }
.lw-consent p { margin: 0; color: #111; }
.lw-consent-copy p { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.lw-consent-actions { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.lw-consent button, .leadwhizz-profile-form button, .lw-preferences { font: inherit; cursor: pointer; }

.lw-consent button {
    min-height: 64px;
    border: 0;
    border-radius: 999px;
    padding: 0 36px;
    font-size: 18px;
    font-weight: 650;
    white-space: nowrap;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.lw-consent button:hover { transform: translateY(-1px); }
.lw-consent button:focus-visible, .lw-preferences:focus-visible { outline: 3px solid rgba(255, 91, 31, .35); outline-offset: 3px; }
.lw-consent .lw-consent-settings { min-height: 44px; background: transparent; color: #111; border-radius: 8px; padding: 0 18px; font-size: 18px; text-decoration: underline; text-underline-offset: 3px; }
.lw-consent .lw-consent-reject { background: #f3f3f3; color: #111; box-shadow: 0 2px 7px rgba(17, 17, 17, .04); }
.lw-consent .lw-consent-reject:hover { background: #e9e9e9; }
.lw-consent .lw-consent-accept { background: #ff5b1f; color: #fff; box-shadow: 0 4px 12px rgba(255, 91, 31, .18); }
.lw-consent .lw-consent-accept:hover { background: #eb4d14; }

.lw-consent-details { margin: 18px 4px 2px 74px; padding-top: 16px; border-top: 1px solid #ececec; }
.lw-consent-details[hidden], .lw-preferences[hidden] { display: none; }
.lw-consent-details p { max-width: 960px; color: #4b4b4b; font-size: 14px; line-height: 1.55; }
.lw-consent-details a { color: #111; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.lw-consent.is-expanded { border-radius: 32px; }

.lw-preferences {
    position: fixed;
    z-index: 2147483646;
    left: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    min-height: 42px;
    border: 1px solid #e4e4e4;
    border-radius: 999px;
    padding: 0 16px;
    background: #fff;
    color: #111;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
    font-size: 13px;
    font-weight: 650;
}

.leadwhizz-profile-form { border: 1px solid #dce5de; border-radius: 14px; padding: 1.25rem; background: #fff; }
.lw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.lw-grid label { display: grid; gap: .3rem; font-weight: 650; }
.lw-grid input, .lw-grid textarea { width: 100%; border: 1px solid #bdc9c1; border-radius: 8px; padding: .7rem; font: inherit; }
.lw-wide { grid-column: 1/-1; }
.lw-check { display: flex; gap: .5rem; align-items: flex-start; margin: .9rem 0; }
.lw-check input { margin-top: .3rem; }
.leadwhizz-profile-form button { border: 0; border-radius: 8px; padding: .7rem .9rem; background: #10251d; color: #fff; font-weight: 700; }
.leadwhizz-profile-form button:disabled { opacity: .55; }
.lw-message { min-height: 1.5em; }
.lw-hp { position: absolute !important; left: -9999px !important; }

@media (max-width: 820px) {
    .lw-consent { bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 24px); border-radius: 26px; padding: 20px; }
    .lw-consent-main { display: block; }
    .lw-consent-copy { gap: 14px; }
    .lw-consent-icon { width: 34px; height: 34px; flex-basis: 34px; }
    .lw-consent-copy p { font-size: 16px; line-height: 1.4; }
    .lw-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
    .lw-consent button { min-height: 48px; padding: 0 16px; font-size: 16px; }
    .lw-consent .lw-consent-settings { grid-column: 1/-1; justify-self: center; min-height: 36px; padding: 0 8px; font-size: 16px; }
    .lw-consent-details { margin: 16px 0 0; padding-top: 14px; }
    .lw-consent.is-expanded { border-radius: 26px; }
    .lw-preferences { left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); min-height: 40px; }
    .lw-grid { grid-template-columns: 1fr; }
    .lw-wide { grid-column: auto; }
}

@media (max-width: 390px) {
    .lw-consent-actions { grid-template-columns: 1fr; }
    .lw-consent .lw-consent-settings { grid-column: auto; }
    .lw-consent button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .lw-consent button { transition: none; }
}
