.pc-consent[hidden],
.pc-consent [hidden] {
    display: none !important;
}

.pc-consent {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    background: rgba(26, 32, 44, 0.42);
    font-family: Verdana, Geneva, sans-serif;
}

.pc-consent__panel {
    width: min(100%, 960px);
    padding: 26px 30px 22px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(10, 37, 64, 0.22);
}

.pc-consent__main h2 {
    margin: 0 0 10px;
    color: #1A202C;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    line-height: 1.25;
}

.pc-consent__main > p {
    margin: 0;
    color: #4A5568;
    font-size: 14px;
    line-height: 1.65;
}

.pc-consent__preferences {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.pc-consent__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 15px;
    background: #F7FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    color: #1A202C;
    cursor: pointer;
}

.pc-consent__option--necessary {
    cursor: default;
}

.pc-consent__option span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pc-consent__option strong {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.pc-consent__option small {
    color: #4A5568;
    font-size: 12px;
    line-height: 1.45;
}

.pc-consent__option input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: #00D09C;
}

.pc-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.pc-consent__button {
    min-height: 42px;
    padding: 10px 17px;
    border: 1px solid #0A2540;
    border-radius: 7px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease;
}

.pc-consent__button--accept,
.pc-consent__button--save {
    background: #0A2540;
    color: #FFFFFF;
}

.pc-consent__button--accept:hover,
.pc-consent__button--save:hover {
    background: #00D09C;
    border-color: #00D09C;
    color: #0A2540;
}

.pc-consent__button--reject,
.pc-consent__button--preferences {
    background: #FFFFFF;
    color: #0A2540;
}

.pc-consent__button--reject:hover,
.pc-consent__button--preferences:hover {
    background: #F7FAFC;
    border-color: #00D09C;
}

.pc-consent__policy {
    margin: 16px 0 0;
    color: #4A5568;
    font-size: 12px;
}

.pc-consent__policy a {
    color: #0A2540;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pc-consent__policy a:hover {
    color: #00D09C;
}

@media (max-width: 767px) {
    .pc-consent {
        padding: 12px;
    }

    .pc-consent__panel {
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        padding: 21px 18px 18px;
        border-radius: 11px;
    }

    .pc-consent__main h2 {
        font-size: 21px;
    }

    .pc-consent__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pc-consent__button {
        width: 100%;
    }
}
