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

.mk-consent {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    background: rgba(18, 22, 28, 0.48);
    font-family: inherit;
}

.mk-consent__panel {
    width: min(1120px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 24px;
    border-radius: 14px;
    background: #fff;
    color: #20242a;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.mk-consent__summary {
    display: flex;
    align-items: center;
    gap: 28px;
}

.mk-consent__copy {
    flex: 1;
}

.mk-consent__copy h2 {
    margin: 0 0 8px;
    color: #20242a;
    font-size: 22px;
    line-height: 1.25;
}

.mk-consent__copy p,
.mk-consent__category p,
.mk-consent__category-description {
    margin: 0;
    color: #545b66;
    font-size: 14px;
    line-height: 1.55;
}

.mk-consent__copy a {
    color: #1769aa;
    text-decoration: underline;
}

.mk-consent__actions,
.mk-consent__details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mk-consent__button {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #c9ced6;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#mk-consent .mk-consent__button--primary {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
}

#mk-consent .mk-consent__button--primary:hover,
#mk-consent .mk-consent__button--primary:focus-visible {
    border-color: #1e3a8a;
    background: #1e40af;
    color: #fff;
}

#mk-consent .mk-consent__button[data-mk-action="accept"] {
    min-width: 180px;
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.28);
}

.mk-consent__button--secondary {
    background: #fff;
    color: #20242a;
}

.mk-consent__button--secondary:hover,
.mk-consent__button--secondary:focus-visible {
    background: #f2f4f7;
}

.mk-consent__button:focus-visible,
.mk-consent-reopen:focus-visible,
.mk-consent__category input:focus-visible {
    outline: 3px solid rgba(23, 105, 170, 0.35);
    outline-offset: 2px;
}

.mk-consent__details {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e2e5e9;
}

.mk-consent__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f2;
}

.mk-consent__category strong {
    display: block;
    margin-bottom: 3px;
}

.mk-consent__category input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    accent-color: #1d4ed8;
}

.mk-consent__always {
    flex: 0 0 auto;
    color: #257342;
    font-size: 13px;
    font-weight: 600;
}

.mk-consent__details-actions {
    justify-content: flex-end;
    margin-top: 18px;
}

.mk-consent-reopen {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2147482000;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: #20242a;
    color: #fff;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 760px) {
    .mk-consent {
        padding: 10px;
    }

    .mk-consent__panel {
        max-height: calc(100vh - 20px);
        padding: 18px;
        border-radius: 11px;
    }

    .mk-consent__summary {
        display: block;
    }

    .mk-consent__actions {
        margin-top: 18px;
    }

    .mk-consent__button {
        flex: 1 1 100%;
    }

    .mk-consent__copy h2 {
        font-size: 20px;
    }

    .mk-consent-reopen {
        right: 12px;
        bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mk-consent *,
    .mk-consent-reopen {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

.mk-cookie-policy {
    margin-top: 42px;
    padding-top: 30px;
    border-top: 1px solid #dfe3e8;
}

.mk-cookie-policy h2,
.mk-cookie-policy h3 {
    color: #20242a;
}

.mk-cookie-policy h3 {
    margin-top: 30px;
}

.mk-cookie-policy__note {
    padding: 14px 16px;
    border-left: 4px solid #1d4ed8;
    background: #f4f7ff;
}

.mk-cookie-policy__table-wrap {
    margin: 24px 0 12px;
    overflow-x: auto;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
}

.mk-cookie-policy table {
    width: 100%;
    min-width: 820px;
    margin: 0;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.45;
}

.mk-cookie-policy th,
.mk-cookie-policy td {
    padding: 12px 13px;
    border-right: 1px solid #e5e8ec;
    border-bottom: 1px solid #e5e8ec;
    text-align: left;
    vertical-align: top;
}

.mk-cookie-policy th:last-child,
.mk-cookie-policy td:last-child {
    border-right: 0;
}

.mk-cookie-policy tbody tr:last-child td {
    border-bottom: 0;
}

.mk-cookie-policy th {
    background: #f3f5f7;
    color: #20242a;
    font-weight: 700;
}

.mk-cookie-policy td:nth-child(2) {
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

.mk-cookie-policy__variation,
.mk-cookie-policy__updated {
    color: #5b626d;
    font-size: 14px;
}

@media (max-width: 760px) {
    .mk-cookie-policy {
        margin-top: 30px;
        padding-top: 24px;
    }
}
