/* Baner zgody na pliki cookies */
.cc-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 10000;
    max-width: 760px;
    max-height: calc(100vh - 32px);
    margin: 0 auto;
    overflow-y: auto;
    background: #fff;
    color: #444;
    border-radius: 6px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    display: none;
}

.cc-banner--visible {
    display: block;
}

.cc-inner {
    padding: 24px;
    border-top: 4px solid #244cfd;
    border-image: linear-gradient(to right, #244cfd, #15e4fd) 1;
}

.cc-title {
    font-size: 20px !important;
    margin: 0 0 10px;
}

.cc-desc p {
    margin: 0 0 10px;
}

.cc-banner a,
.cc-placeholder a {
    color: #244cfd;
    text-decoration: underline;
}

.cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.cc-btn {
    flex: 1 1 180px;
    padding: 10px 18px;
    border-radius: 4px;
    border: 2px solid #244cfd;
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.cc-btn[hidden] {
    display: none;
}

.cc-btn--primary {
    background: #244cfd;
    color: #fff;
}

.cc-btn--primary:hover {
    background: #1a3ad1;
    border-color: #1a3ad1;
}

.cc-btn--secondary {
    background: #fff;
    color: #244cfd;
}

.cc-btn--secondary:hover {
    background: #eef1ff;
}

.cc-btn:focus-visible,
.cc-switch input:focus-visible + .cc-slider {
    outline: 3px solid #15e4fd;
    outline-offset: 2px;
}

/* Panel ustawień */
.cc-services {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.cc-service {
    padding: 12px 0;
    border-top: 1px solid #e6e6e6;
}

.cc-service p {
    margin: 4px 0 0 56px;
    font-size: 13px;
    color: #777;
}

.cc-switch {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

.cc-switch--disabled {
    cursor: default;
}

.cc-switch input {
    position: absolute;
    opacity: 0;
    width: 44px;
    height: 24px;
    margin: 0;
}

.cc-slider {
    position: relative;
    flex: 0 0 44px;
    height: 24px;
    margin-right: 12px;
    background: #c8c8c8;
    border-radius: 12px;
    transition: background 0.2s;
}

.cc-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.cc-switch input:checked + .cc-slider {
    background: #244cfd;
}

.cc-switch input:checked + .cc-slider::after {
    transform: translateX(20px);
}

.cc-switch--disabled .cc-slider {
    opacity: 0.6;
}

.cc-service-name {
    font-weight: 500;
    color: #222;
}

/* Zaślepki w miejscu zablokowanych usług */
.cc-placeholder {
    padding: 24px;
    margin: 0 auto;
    text-align: center;
    background: #f4f6ff;
    border: 1px dashed #244cfd;
    border-radius: 6px;
    color: #555;
}

.cc-placeholder p {
    margin: 0 0 14px;
}

.cc-placeholder .cc-btn {
    flex: none;
}

.cc-placeholder--maps {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cc-placeholder--mydr {
    display: inline-block;
    max-width: 420px;
    margin-top: 60px;
    background: rgba(255, 255, 255, 0.92);
}

/* Linki w stopce */
.footer-links {
    margin-top: 6px;
}

.footer-links a {
    color: inherit;
    text-decoration: underline;
}

.footer-links a + a {
    margin-left: 16px;
}

@media (max-width: 600px) {
    .cc-banner {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }

    .cc-inner {
        padding: 18px;
    }

    .cc-service p {
        margin-left: 0;
    }
}
