.pll-cc {
    --pll-cc-button-fill: #32373c;
    --pll-cc-button-fill-text: #ffffff;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
}

.pll-cc[hidden],
.pll-cc-modal[hidden] {
    display: none !important;
}

.pll-cc__box {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    background: #ffffff;
    border: 1px solid #d7deea;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.16), 0 4px 10px rgba(17, 24, 39, 0.12);
    padding-top: clamp(0.85rem, 1.9vw, 1.1rem);
    padding-bottom: clamp(0.85rem, 1.9vw, 1.1rem);
    padding-left: max(1rem, calc((100% - 1440px) / 2));
    padding-right: max(1rem, calc((100% - 1440px) / 2));
}

.pll-cc__title {
    margin: 0;
    padding-right: 3.1rem;
    font-size: clamp(1.22rem, 2vw, 1.6rem);
    line-height: 1.2;
    color: #111111;
}

.pll-cc__description {
    margin: 0.5rem 0 0;
    color: #334155;
    line-height: 1.45;
}

.pll-cc__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.pll-cc__btn,
.pll-cookie-open-settings {
    --pll-cc-button-fill: #32373c;
    --pll-cc-button-fill-text: #ffffff;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 40px;
    padding-top: 0.42em;
    padding-right: calc(1.7em + 2px);
    padding-bottom: 0.42em;
    padding-left: calc(1.7em + 2px);
    border: 1px solid #111111;
    border-radius: 6px;
    background-color: transparent;
    background-image:
        linear-gradient(var(--pll-cc-button-fill), var(--pll-cc-button-fill)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 48%);
    background-repeat: no-repeat;
    background-size: 100% 0, 100% 100%;
    background-position: 0 100%, 0 0;
    color: #111111;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-decoration: none;
    font-weight: 600;
    isolation: isolate;
    overflow: hidden;
    box-shadow: 0 7px 16px rgba(17, 17, 17, 0.16), 0 2px 5px rgba(17, 17, 17, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    transition: color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.pll-cc__btn::after,
.pll-cookie-open-settings::after {
    content: "";
    position: absolute;
    top: -35%;
    left: -35%;
    width: 28%;
    height: 170%;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.12) 48%, transparent 100%);
    transform: translateX(-220%) rotate(12deg);
    transition: transform 0.65s ease;
    pointer-events: none;
}

.pll-cc__btn:is(:hover, :focus-visible),
.pll-cookie-open-settings:is(:hover, :focus-visible) {
    color: var(--pll-cc-button-fill-text) !important;
    background-size: 100% 100%;
    box-shadow: 0 10px 22px rgba(17, 17, 17, 0.2), 0 3px 8px rgba(17, 17, 17, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    text-decoration: none;
}

.pll-cc__btn:is(:hover, :focus-visible)::after,
.pll-cookie-open-settings:is(:hover, :focus-visible)::after {
    transform: translateX(380%) rotate(12deg);
}

.pll-cc__btn:active,
.pll-cookie-open-settings:active {
    transform: scale(0.97);
    box-shadow: 0 4px 10px rgba(17, 17, 17, 0.16), 0 2px 5px rgba(17, 17, 17, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.pll-cc__btn--solid {
    background-size: 100% 100%, 100% 100%;
    color: #ffffff;
}

.pll-cc__btn--outline {
    background-size: 100% 0, 100% 100%;
    color: #111111;
}

.pll-cc__policy-link {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    color: #334155;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    font-weight: 600;
    white-space: nowrap;
}

.pll-cc__policy-link:is(:hover, :focus-visible) {
    color: #0f172a;
    text-decoration: underline;
}

.pll-cc__close {
    --pll-cc-button-fill: transparent;
    --pll-cc-button-fill-text: #111111;
    position: absolute;
    top: 0.7rem;
    right: calc(max(1rem, calc((100% - 1440px) / 2)) - 0.3rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    width: 38px;
    min-height: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    background-image: none !important;
    background-size: auto !important;
    background-position: center !important;
    background-size: auto;
    background-position: center;
    color: #111111 !important;
    font-size: 1.24rem;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
    isolation: auto;
    overflow: visible;
    box-shadow: none !important;
    cursor: pointer;
    transition: none;
}

.pll-cc__close::after {
    content: none !important;
}

.pll-cc__close:is(:hover, :focus-visible) {
    background: transparent !important;
    background-image: none !important;
    background-size: auto !important;
    color: #111111 !important;
    box-shadow: none !important;
    filter: none !important;
    text-decoration: none;
}

.pll-cc__close:active {
    transform: none;
    background: transparent !important;
    color: #111111 !important;
    box-shadow: none !important;
}

.pll-cc-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(0.9rem, 2vw, 1.25rem);
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(2px);
    z-index: 1000000;
}

.pll-cc-modal__panel {
    position: relative;
    width: min(100%, 560px);
    max-width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #d7deea;
    border-radius: 10px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.22);
    padding: clamp(1rem, 2.3vw, 1.3rem);
    padding-top: clamp(1.35rem, 3vw, 1.7rem);
}

.pll-cc-modal__panel h4 {
    margin: 0 0 1rem;
    padding-right: 3.35rem;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.2;
    color: #111111;
}

.pll-cc-modal__row {
    margin-bottom: 0.62rem;
}

.pll-cc-modal__row label {
    display: flex;
    align-items: center;
    gap: 0.68rem;
    margin: 0;
    padding: 0.62rem 0.74rem;
    border: 1px solid #d7deea;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    line-height: 1.32;
    cursor: pointer;
}

.pll-cc-modal__row input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1px solid #111111;
    border-radius: 6px;
    background: #ffffff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.14s ease;
}

.pll-cc-modal__row input[type="checkbox"]:checked {
    border-color: #111111;
    background-color: #32373c;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1.4 6.4 4.5 9.1 10.6 2.8'/%3E%3C/svg%3E");
}

.pll-cc-modal__row input[type="checkbox"]:is(:hover, :focus-visible) {
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.22);
}

.pll-cc-modal__row input[type="checkbox"]:active {
    transform: scale(0.94);
}

.pll-cc-modal__row input[type="checkbox"]:disabled {
    border-color: #b8c2d0;
    background-color: #e8edf5;
    background-image: none;
    box-shadow: none;
    cursor: not-allowed;
}

.pll-cc-modal__row label:has(input[type="checkbox"]:disabled) {
    color: #6b7280;
    background: #f8fafc;
    cursor: default;
}

.pll-cc-modal__actions {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.72rem;
}

@media (max-width: 720px) {
    .pll-cc__box {
        padding-top: 0.9rem;
    }

    .pll-cc__actions {
        gap: 0.56rem;
    }

    .pll-cc__policy-link {
        margin-left: 0;
    }
}

@media (max-width: 560px) {
    .pll-cc-modal {
        padding: 1rem;
    }

    .pll-cc-modal__panel {
        width: 100%;
        padding: 0.95rem;
        padding-top: 1.2rem;
        border-radius: 10px;
    }

    .pll-cc__btn,
    .pll-cookie-open-settings {
        width: 100%;
    }

    .pll-cc-modal__actions .pll-cc__btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pll-cc__btn,
    .pll-cookie-open-settings,
    .pll-cc__close,
    .pll-cc-modal__row input[type="checkbox"] {
        transition: none;
    }

    .pll-cc__btn::after,
    .pll-cookie-open-settings::after {
        transition: none;
    }

    .pll-cc__btn:is(:hover, :focus-visible)::after,
    .pll-cookie-open-settings:is(:hover, :focus-visible)::after {
        transform: translateX(-220%) rotate(12deg);
    }
}
