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

.pomgrad-consent {
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    color: #272727;
    text-align: left;
}

.pomgrad-consent *,
.pomgrad-consent *::before,
.pomgrad-consent *::after {
    box-sizing: border-box;
}

.pomgrad-consent__banner {
    position: fixed;
    right: 24px;
    bottom: 24px;
    left: 24px;
    z-index: 2147483000;
    width: auto;
    max-width: 760px;
    margin: 0 auto;
    padding: 24px;
    background: #fff;
    border-top: 4px solid #7ac143;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.pomgrad-consent__reopen {
    position: fixed;
    right: auto;
    bottom: 16px;
    left: 16px;
    z-index: 2147482999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    color: #7ac143;
    background: #444041;
    border: 1px solid #fff;
    border-radius: 0;
    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.24);
    font: inherit;
    font-size: 12px;
    line-height: 1.2;
    text-transform: none;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.pomgrad-consent__reopen:hover,
.pomgrad-consent__reopen:focus {
    color: #444041;
    background: #7ac143;
    border-color: #fff;
}

.pomgrad-consent__reopen:active {
    transform: translateY(1px);
}

.pomgrad-consent__reopen-icon {
    display: block;
    width: 22px;
    height: 22px;
    pointer-events: none;
    stroke: currentColor;
}

.pomgrad-consent__reopen::after {
    position: absolute;
    top: 50%;
    right: auto;
    left: calc(100% + 10px);
    padding: 7px 10px;
    color: #fff;
    background: #444041;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
    content: attr(data-tooltip);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: none;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-4px, -50%);
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.pomgrad-consent__reopen:hover::after,
.pomgrad-consent__reopen:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

.pomgrad-consent__content h2,
.pomgrad-consent__settings h2,
.pomgrad-consent__option h3 {
    margin: 0;
    color: #272727;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.25;
    text-transform: none;
}

.pomgrad-consent__content h2,
.pomgrad-consent__settings h2 {
    font-size: 22px;
}

.pomgrad-consent__content p,
.pomgrad-consent__settings p {
    margin: 8px 0 0;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

.pomgrad-consent__details {
    display: inline-block;
    margin-top: 10px;
    color: #4b7d25;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
}

.pomgrad-consent__actions,
.pomgrad-consent__settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.pomgrad-consent__button {
    min-height: 44px;
    margin: 0;
    padding: 11px 18px;
    border: 1px solid #4b4b4b;
    border-radius: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.pomgrad-consent__button--primary {
    color: #fff;
    background: #5d9d2f;
    border-color: #5d9d2f;
}

.pomgrad-consent__button--primary:hover,
.pomgrad-consent__button--primary:focus {
    color: #fff;
    background: #4b8126;
    border-color: #4b8126;
}

.pomgrad-consent__button--secondary {
    color: #333;
    background: #fff;
}

.pomgrad-consent__button--secondary:hover,
.pomgrad-consent__button--secondary:focus {
    color: #222;
    background: #f1f1f1;
    border-color: #333;
}

.pomgrad-consent__button:focus,
.pomgrad-consent__close:focus,
.pomgrad-consent__switch input:focus + span {
    outline: 3px solid rgba(93, 157, 47, 0.35);
    outline-offset: 2px;
}

.pomgrad-consent__reopen:focus {
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px #444041, 0 7px 24px rgba(0, 0, 0, 0.24);
}

@media (prefers-reduced-motion: reduce) {
    .pomgrad-consent__reopen,
    .pomgrad-consent__reopen::after {
        transition: none;
    }
}

.pomgrad-consent__overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    background: rgba(24, 24, 24, 0.72);
}

.pomgrad-consent__settings {
    position: relative;
    width: 100%;
    max-width: 680px;
    max-height: calc(100vh - 40px);
    padding: 28px;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

.pomgrad-consent__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #333;
    background: transparent;
    border: 0;
    font-family: Arial, sans-serif;
    font-size: 30px;
    line-height: 38px;
    cursor: pointer;
}

.pomgrad-consent__intro {
    padding-right: 32px;
}

.pomgrad-consent__option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #dedede;
}

.pomgrad-consent__option:first-of-type {
    margin-top: 16px;
    border-top: 1px solid #dedede;
}

.pomgrad-consent__option h3 {
    font-size: 17px;
}

.pomgrad-consent__option p {
    max-width: 500px;
    margin-top: 5px;
    font-size: 14px;
}

.pomgrad-consent__switch {
    position: relative;
    flex: 0 0 auto;
    width: 50px;
    height: 28px;
    margin-top: 2px;
}

.pomgrad-consent__switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.pomgrad-consent__switch span {
    position: absolute;
    inset: 0;
    background: #aaa;
    border-radius: 28px;
    cursor: pointer;
    transition: background-color 160ms ease;
}

.pomgrad-consent__switch span::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    content: '';
    transition: transform 160ms ease;
}

.pomgrad-consent__switch input:checked + span {
    background: #5d9d2f;
}

.pomgrad-consent__switch input:checked + span::after {
    transform: translateX(22px);
}

.pomgrad-consent__switch input:disabled + span {
    cursor: not-allowed;
    opacity: 0.7;
}

.pomgrad-consent-modal-open {
    overflow: hidden !important;
}

@media (min-width: 720px) {
    .pomgrad-consent__banner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 28px;
        align-items: end;
    }

    .pomgrad-consent__actions {
        max-width: 290px;
        justify-content: flex-end;
        margin-top: 0;
    }
}

@media (max-width: 520px) {
    .pomgrad-consent__banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: 20px;
    }

    .pomgrad-consent__actions,
    .pomgrad-consent__settings-actions {
        flex-direction: column;
    }

    .pomgrad-consent__button {
        width: 100%;
    }

    .pomgrad-consent__settings {
        padding: 24px 20px;
    }

    .pomgrad-consent__option {
        gap: 12px;
    }
}
