.consent-root {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    pointer-events: none;
}

.consent-hidden {
    display: none !important;
}

.consent-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(21, 15, 11, 0.22);
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.consent-sheet {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 24px;
    transform: translateX(-50%);
    width: min(980px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    border-radius: 30px;
    background: rgba(255, 251, 246, 0.98);
    border: 1px solid rgba(122, 74, 47, 0.12);
    box-shadow: 0 28px 80px rgba(26, 17, 12, 0.24);
    pointer-events: auto;
}

.consent-sheet:focus {
    outline: none;
}

.consent-sheet-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff7e8 0%, #f5c967 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    flex-shrink: 0;
}

.consent-sheet-icon-glyph {
    font-size: 34px;
    line-height: 1;
}

.consent-sheet-copy {
    min-width: 0;
}

.consent-sheet-eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a45a2a;
}

.consent-sheet-title {
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
    max-width: 30ch;
}

.consent-sheet-text {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.55;
    max-width: 58ch;
}

.consent-sheet-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-width: 190px;
}

.consent-button {
    appearance: none;
    border-radius: 999px;
    padding: 13px 22px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.consent-button:hover {
    transform: translateY(-1px);
}

.consent-button-primary {
    border: 1px solid #59713d;
    background: #ffffff;
    color: #2e4320;
}

.consent-button-primary:hover {
    box-shadow: 0 8px 18px rgba(89, 113, 61, 0.16);
}

.consent-button-secondary {
    border: 1px solid rgba(122, 74, 47, 0.18);
    background: #fffaf3;
    color: #3b2a1d;
}

.consent-button-secondary:hover {
    box-shadow: 0 8px 18px rgba(43, 29, 21, 0.08);
}

body.jules-consent-modal-active {
    padding-bottom: 0;
}

@media (max-width: 900px) {
    .consent-sheet {
        width: min(760px, calc(100vw - 32px));
        grid-template-columns: auto minmax(0, 1fr);
    }

    .consent-sheet-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        min-width: 0;
    }

    .consent-sheet-actions .consent-button {
        flex: 1 1 0;
    }
}

@media (max-width: 640px) {
    .consent-sheet {
        bottom: 16px;
        width: calc(100vw - 32px);
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 20px 20px;
        border-radius: 34px 34px 24px 24px;
    }

    .consent-sheet-icon {
        width: 68px;
        height: 68px;
        margin: 0 auto;
    }

    .consent-sheet-copy {
        text-align: left;
    }

    .consent-sheet-title {
        font-size: 20px;
        max-width: none;
    }

    .consent-sheet-text {
        max-width: none;
        font-size: 15px;
    }

    .consent-sheet-actions {
        flex-direction: column;
        gap: 12px;
    }
}
