html.sell-consent-open,
html.sell-consent-open body {
    overflow: hidden;
}

.sell-consent {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem max(1rem, env(safe-area-inset-bottom, 0px));
    background: rgba(15, 23, 42, 0.62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: sellConsentFade 0.22s ease-out;
}

.sell-consent.is-leaving {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sell-consent__panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    max-height: min(92vh, 860px);
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(21, 154, 69, 0.12);
    animation: sellConsentRise 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.sell-consent__head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 1.35rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 60%, #ffffff 100%);
    border-bottom: 1px solid #d1fae5;
}

.sell-consent__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #34d399 0%, #159a45 100%);
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 8px 18px -8px rgba(21, 154, 69, 0.7);
}

.sell-consent__eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #159a45;
}

.sell-consent__title {
    margin: 0.1rem 0 0;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
}

.sell-consent__body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.1rem 1.35rem 0.4rem;
}

.sell-consent__lead {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #334155;
}

.sell-consent__lead strong {
    color: #0f172a;
}

.sell-consent__block {
    margin-bottom: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.sell-consent__block--good {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.sell-consent__block--warn {
    border-color: #fde68a;
    background: #fffbeb;
}

.sell-consent__block-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.55rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
}

.sell-consent__block-title i {
    color: #0f766e;
}

.sell-consent__block--good .sell-consent__block-title i {
    color: #159a45;
}

.sell-consent__block--warn .sell-consent__block-title i {
    color: #d97706;
}

.sell-consent__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.sell-consent__list li {
    position: relative;
    padding-left: 1.15rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #475569;
}

.sell-consent__list li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 0.62em;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: #94a3b8;
}

.sell-consent__block--good .sell-consent__list li::before {
    background: #22c55e;
}

.sell-consent__block--warn .sell-consent__list li::before {
    background: #f59e0b;
}

.sell-consent__list strong {
    color: #0f172a;
    font-weight: 750;
}

.sell-consent__foot {
    padding: 0.9rem 1.35rem 1.15rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.sell-consent__check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    cursor: pointer;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #1e293b;
    font-weight: 600;
}

.sell-consent__check input {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    accent-color: #159a45;
    cursor: pointer;
}

.sell-consent__actions {
    display: flex;
    gap: 0.6rem;
}

.sell-consent__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.9rem;
    padding: 0.65rem 1.1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.sell-consent__btn--ghost {
    flex: 0 0 auto;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
}

.sell-consent__btn--ghost:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.sell-consent__btn--primary {
    flex: 1 1 auto;
    border: 0;
    background: linear-gradient(135deg, #22c55e 0%, #159a45 100%);
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(21, 154, 69, 0.8);
}

.sell-consent__btn--primary:hover:not(:disabled) {
    transform: translateY(-1px);
}

.sell-consent__btn--primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

@keyframes sellConsentFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes sellConsentRise {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
    .sell-consent {
        align-items: flex-end;
        padding: 0;
    }

    .sell-consent__panel {
        max-width: none;
        max-height: 94vh;
        max-height: 94dvh;
        border-radius: 20px 20px 0 0;
    }

    .sell-consent__head {
        padding: 1rem 1rem 0.9rem;
    }

    .sell-consent__title {
        font-size: 1.02rem;
    }

    .sell-consent__body {
        padding: 0.95rem 1rem 0.3rem;
    }

    .sell-consent__block {
        padding: 0.8rem 0.85rem;
    }

    .sell-consent__foot {
        padding: 0.8rem 1rem max(0.95rem, env(safe-area-inset-bottom, 0px));
    }

    .sell-consent__actions {
        flex-direction: column-reverse;
    }

    .sell-consent__btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sell-consent,
    .sell-consent__panel {
        animation: none;
    }
}
