.pk-cookie-modal-open {
    overflow: hidden;
}

.pk-cookie-overlay[hidden],
.pk-cookie-modal [hidden] {
    display: none !important;
}

.pk-cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
}

.pk-cookie-modal {
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 28px;
    border-radius: 12px;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pk-cookie-modal h2 {
    margin: 0 0 16px;
    font-size: 1.65rem;
    line-height: 1.25;
}

.pk-cookie-modal h3 {
    margin: 0 0 7px;
    font-size: 1.05rem;
}

.pk-cookie-modal p {
    margin: 0 0 14px;
    line-height: 1.6;
}

.pk-cookie-policy-link a {
    color: inherit;
    text-decoration: underline;
}

.pk-cookie-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.pk-cookie-btn {
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #1f2937;
    border-radius: 7px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.pk-cookie-btn:hover,
.pk-cookie-btn:focus-visible {
    background: #1f2937;
    color: #ffffff;
}

.pk-cookie-btn:focus-visible,
.pk-cookie-footer-link:focus-visible {
    outline: 3px solid rgba(31, 41, 55, 0.35);
    outline-offset: 2px;
}

.pk-cookie-category {
    padding: 17px 0;
    border-bottom: 1px solid #e5e7eb;
}

.pk-cookie-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.pk-cookie-category-header p {
    margin-bottom: 0;
    color: #4b5563;
    font-size: 0.94rem;
}

.pk-cookie-switch {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.pk-cookie-switch input {
    width: 20px;
    height: 20px;
    margin: 0;
}

.pk-cookie-footer-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.pk-external-placeholder {
    padding: 28px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    text-align: center;
}

.pk-external-placeholder p {
    margin: 0 0 14px;
}

@media (max-width: 700px) {
    .pk-cookie-overlay {
        align-items: flex-end;
        padding: 10px;
    }

    .pk-cookie-modal {
        max-height: calc(100vh - 20px);
        padding: 20px;
    }

    .pk-cookie-actions {
        grid-template-columns: 1fr;
    }

    .pk-cookie-category-header {
        flex-direction: column;
        gap: 12px;
    }
}