/* CARPENTER - baner zgody i ustawienia prywatnosci */
.cp-consent,
.cp-consent-modal,
.cp-consent-reopen {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.cp-consent *,
.cp-consent-modal *,
.cp-consent-reopen * {
    box-sizing: border-box;
}

.cp-consent[hidden],
.cp-consent-modal[hidden],
.cp-consent-reopen[hidden] {
    display: none !important;
}

.cp-consent {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 10000;
    max-width: 1180px;
    margin: 0 auto;
    color: #242424;
    background: #ffffff;
    border: 1px solid #d8d8d8;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.cp-consent__inner {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 22px;
}

.cp-consent__content {
    flex: 1 1 auto;
    min-width: 0;
}

.cp-consent h2,
.cp-consent-modal h2 {
    margin: 0 0 8px;
    color: #222222;
    font-size: 22px;
    line-height: 1.25;
}

.cp-consent p,
.cp-consent-modal p {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.55;
}

.cp-consent a,
.cp-consent-modal a {
    color: #1f4f7a;
    text-decoration: underline;
}

.cp-consent__small {
    color: #5b5b5b;
    font-size: 13px !important;
}

.cp-consent__actions,
.cp-consent-modal__actions {
    display: flex;
    flex: 0 0 410px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.cp-consent__btn {
    min-height: 44px;
    padding: 10px 16px;
    border: 2px solid #2f2f2f;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.cp-consent__btn:focus,
.cp-consent-modal__close:focus,
.cp-consent-reopen:focus,
.cp-consent__switch input:focus + span {
    outline: 3px solid rgba(242, 192, 0, 0.45);
    outline-offset: 2px;
}

.cp-consent__btn--accept {
    color: #1f1f1f;
    background: #f2c000;
    border-color: #f2c000;
}

.cp-consent__btn--accept:hover {
    background: #d9ad00;
    border-color: #d9ad00;
}

.cp-consent__btn--reject {
    color: #ffffff;
    background: #343434;
    border-color: #343434;
}

.cp-consent__btn--reject:hover {
    background: #1f1f1f;
    border-color: #1f1f1f;
}

.cp-consent__btn--settings,
.cp-consent__btn--save {
    color: #242424;
    background: #ffffff;
    border-color: #3a3a3a;
}

.cp-consent__btn--settings:hover,
.cp-consent__btn--save:hover {
    color: #ffffff;
    background: #343434;
}

.cp-consent-reopen {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9998;
    min-height: 42px;
    padding: 9px 14px;
    color: #1f1f1f;
    background: #f2c000;
    border: 2px solid #1f1f1f;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.cp-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
}

.cp-consent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.cp-consent-modal__panel {
    position: relative;
    z-index: 1;
    width: calc(100% - 32px);
    max-width: 720px;
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    overflow: auto;
    color: #242424;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.cp-consent-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid #e3e3e3;
}

.cp-consent-modal__head h2 {
    margin: 0;
}

.cp-consent-modal__close {
    width: 42px;
    height: 42px;
    padding: 0;
    color: #242424;
    background: #ffffff;
    border: 2px solid #3a3a3a;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.cp-consent-modal__body {
    padding: 6px 22px 18px;
}

.cp-consent-modal__actions {
    flex: none;
    padding: 18px 22px 22px;
    border-top: 1px solid #e3e3e3;
}

.cp-consent__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #eeeeee;
}

.cp-consent__row-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cp-consent__row-text strong {
    font-size: 16px;
}

.cp-consent__row-text span {
    color: #5b5b5b;
    font-size: 14px;
    line-height: 1.45;
}

.cp-consent__switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    width: 52px;
    height: 30px;
}

.cp-consent__switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cp-consent__switch span {
    position: absolute;
    inset: 0;
    background: #b6b6b6;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.cp-consent__switch span::before {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    content: '';
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.18s ease;
}

.cp-consent__switch input:checked + span {
    background: #c99f00;
}

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

.cp-consent__switch input:disabled + span {
    opacity: 0.75;
    cursor: not-allowed;
}


.cp-consent-placeholder[hidden] {
    display: none !important;
}

.cp-consent-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
    padding: 24px;
    text-align: center;
    color: #242424;
    background: #f4f4f4;
    border: 1px solid #d7d7d7;
    border-radius: 12px;
}

.cp-consent-placeholder p {
    max-width: 620px;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.cp-consent-placeholder button,
.cp-consent-footer-link {
    min-height: 42px;
    padding: 9px 14px;
    color: #1f1f1f;
    background: #f2c000;
    border: 2px solid #1f1f1f;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.cp-consent-placeholder button:focus,
.cp-consent-footer-link:focus {
    outline: 3px solid rgba(242, 192, 0, 0.45);
    outline-offset: 2px;
}

body.cp-consent-modal-open {
    overflow: hidden;
}

@media (max-width: 860px) {
    .cp-consent__inner {
        align-items: stretch;
        flex-direction: column;
    }

    .cp-consent__actions {
        flex-basis: auto;
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .cp-consent {
        right: 10px;
        bottom: 10px;
        left: 10px;
        border-radius: 12px;
    }

    .cp-consent__inner {
        gap: 14px;
        padding: 16px;
    }

    .cp-consent h2,
    .cp-consent-modal h2 {
        font-size: 19px;
    }

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

    .cp-consent__btn {
        width: 100%;
    }

    .cp-consent-modal__panel {
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
        margin: 8px auto;
        border-radius: 12px;
    }

    .cp-consent-modal__head,
    .cp-consent-modal__body,
    .cp-consent-modal__actions {
        padding-right: 16px;
        padding-left: 16px;
    }

    .cp-consent-reopen {
        right: 10px;
        bottom: 10px;
    }
}

.cp-consent-footer-link {
    min-height: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 0;
    font: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.cp-consent-footer-link:hover {
    text-decoration-thickness: 2px;
}
