﻿.ca-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #141414;
    color: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -20px 50px rgba(0,0,0,.45);
    padding-bottom: max(env(safe-area-inset-bottom), 12px);
    transform: translateY(100%);
    opacity: 0;
    font-size: 18px;
    pointer-events: none;
    transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s ease;
}
    .ca-sheet.in {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;

    }

.ca-wrap {
    padding: 16px 16px 18px;
}

.ca-title {
    font-size: 18px;
    margin: 0 0 6px;
}

.ca-sub {
    color: #ccc;
    font-size: 16px;
    margin: 0 0 12px;
 }

.ca-row {
    display: flex;
    gap: 8px;
}

.ca-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.22);
    text-decoration: none;
    color: #fff;
    background: transparent;
    cursor: pointer;
    user-select: none;
    margin-bottom: 10px;
}

.ca-btn--pri {
    background: #ff6600;
    border-color: #ff6600;
}

.ca-form {
    display: none;
    margin-top: 10px;
}

    .ca-form.in {
        display: block;
    }

.ca-input {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.2);
    background: #0f0f0f;
    color: #fff;
    padding: 0 12px;
    margin-bottom: 8px;
    margin-top: 15px;
}

    .ca-input:focus {
        outline: 2px solid rgba(255,255,255,.25);
        outline-offset: 2px;
    }

.ca-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 12px;
    font-size: 13px;
    line-height: 1.4;
    color: #ccc;
}

    .ca-check input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 4px;
        border: 1px solid rgba(255,255,255,.4);
        background: #0f0f0f;
        cursor: pointer;
        position: relative;
        transition: all .2s ease;
        flex-shrink: 0;
    }

        .ca-check input[type="checkbox"]:hover {
            border-color: #ff6600;
        }

        .ca-check input[type="checkbox"]:checked {
            background-color: #ff6600;
            border-color: #ff6600;
            box-shadow: 0 0 0 2px rgba(255,102,0,.35);
        }

            .ca-check input[type="checkbox"]:checked::after {
                content: '✔';
                position: absolute;
                left: 3px;
                top: -1px;
                font-size: 13px;
                color: #fff;
            }

    .ca-check label {
        margin: 0;
        cursor: pointer;
        color: #ccc;
    }

.ca-close {
    position: absolute;
    right: 12px;
    top: 12px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    opacity: .75;
    cursor: pointer;
    padding: 6px;
}

@media (min-width: 992px) {
    .ca-sheet {
        display: none;
    }
}

.ca-btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.ca-form.thanks {
    background: transparent;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.ca-form .ca-thanks {
    display: block;
    background: #0b0b0b;
    color: #ff6600;
    font-weight: 600;
    text-align: center;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 102, 0, .35);
    box-shadow: 0 8px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
    margin-top: 8px;
}
