/*
 * PS Cookie Consent
 * RC1 - Front Styles
 */

.psc-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 999998;
}

.psc-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.psc-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.psc-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.psc-buttons button {
    cursor: pointer;
}


/* =========================
   MODAL
========================= */

.psc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 520px;
    max-width: calc(100% - 40px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    z-index: 1000001;
    overflow: hidden;

    /* ВАЖНО: убираем конфликт transform */
    transform: translate(-50%, -50%);
    display: block;
}

.psc-modal-content {
    display: flex;
    flex-direction: column;
}

.psc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.psc-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.psc-modal-body {
    padding: 20px;

    /* ВАЖНО */
    display: flex;
    flex-direction: column;
    gap: 12px;

    font-size: 14px;
    font-weight: 400;
}

.psc-modal-body label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
}

.psc-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}


/* =========================
   OVERLAY
========================= */

.psc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000000;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .psc-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .psc-buttons {
        flex-direction: column;
    }

    .psc-buttons button {
        width: 100%;
    }

    .psc-modal {
        width: auto;
        left: 10px;
        right: 10px;
        transform: translateY(-50%);
    }
}