.persis-cookie-consent,
.persis-cookie-modal {
    box-sizing: border-box;
    color: #1f2933;
    font-family: inherit;
}

.persis-cookie-consent *,
.persis-cookie-modal * {
    box-sizing: border-box;
}

.persis-cookie-consent[hidden],
.persis-cookie-modal[hidden] {
    display: none;
}

.persis-cookie-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483000;
    background: #ffffff;
    border-top: 1px solid #d8dee8;
    box-shadow: 0 -8px 28px rgba(16, 24, 40, 0.14);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.persis-cookie-consent.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.persis-cookie-consent__inner {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 18px 20px;
}

.persis-cookie-consent__text {
    max-width: 760px;
    font-size: 15px;
    line-height: 1.45;
}

.persis-cookie-consent__title {
    display: block;
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.3;
}

.persis-cookie-consent__text p {
    margin: 0 0 6px;
}

.persis-cookie-consent__policy {
    color: #0b63ce;
    text-decoration: underline;
}

.persis-cookie-consent__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: min(344px, 100%);
}

.persis-cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.persis-cookie-consent__button {
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 9px 16px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

.persis-cookie-consent__actions .persis-cookie-consent__button--primary {
    grid-column: 1 / -1;
}

.persis-cookie-consent__button--primary {
    background: #0b63ce;
    border-color: #0b63ce;
    color: #ffffff;
}

.persis-cookie-consent__button--secondary {
    background: #ffffff;
    border-color: #b9c3d3;
    color: #1f2933;
}

.persis-cookie-consent__button:focus-visible,
.persis-cookie-modal__close:focus-visible {
    outline: 3px solid rgba(11, 99, 206, 0.35);
    outline-offset: 2px;
}

.persis-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.persis-cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
}

.persis-cookie-modal__dialog {
    position: relative;
    width: min(560px, calc(100% - 28px));
    max-height: calc(100vh - 28px);
    margin: 7vh auto;
    overflow: auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 20px 70px rgba(15, 23, 42, 0.28);
}

.persis-cookie-modal__header,
.persis-cookie-modal__body,
.persis-cookie-modal__actions {
    padding: 20px;
}

.persis-cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e9f0;
}

.persis-cookie-modal__header h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
}

.persis-cookie-modal__close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #1f2933;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.persis-cookie-modal__body {
    display: grid;
    gap: 14px;
}

.persis-cookie-toggle {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
}

.persis-cookie-toggle strong,
.persis-cookie-toggle small {
    display: block;
}

.persis-cookie-toggle small {
    margin-top: 4px;
    color: #5b677a;
    font-size: 13px;
    line-height: 1.35;
}

.persis-cookie-toggle input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.persis-cookie-toggle--locked {
    background: #f7f9fc;
}

.persis-cookie-modal__actions {
    border-top: 1px solid #e5e9f0;
}

@media (max-width: 720px) {
    .persis-cookie-consent__inner {
        display: grid;
        gap: 14px;
        padding: 16px;
    }

    .persis-cookie-consent__text {
        font-size: 14px;
    }

    .persis-cookie-consent__actions,
    .persis-cookie-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .persis-cookie-consent__button {
        width: 100%;
    }

    .persis-cookie-modal__dialog {
        margin: 14px auto;
    }

    .persis-cookie-toggle {
        align-items: flex-start;
    }
}
