:root {
    --button-patient-color: #55A663; /* Domyślny zielony */
    --button-doctor-color: #2755C2; /* Domyślny niebieski */
}

.cookie-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cookie-popup::-webkit-scrollbar {
    display: none;
}

.cookie-popup .popup-content {
    background-color: rgb(255, 255, 255);
    padding: 40px;
    border-radius: 10px;
    width: 70%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cookie-popup .popup-content::-webkit-scrollbar {
    display: none;
}

.cookie-popup h1 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.cookie-popup .main-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    margin-bottom: 20px;
    color: #555;
    text-align: left;
    max-height: 90px;
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    scrollbar-width: thin;
    scrollbar-color: var(--button-patient-color) transparent;
}

.cookie-popup .main-text::-webkit-scrollbar {
    width: 8px;
}

.cookie-popup .main-text::-webkit-scrollbar-thumb {
    background-color: var(--button-patient-color);
    border-radius: 4px;
}

.cookie-popup .main-text::-webkit-scrollbar-track {
    background: transparent;
}

.cookie-popup .separator {
    border: 0;
    border-top: 2px solid var(--button-patient-color);
    margin: 20px 0;
}

html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
}

.cookie-popup .buttons {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.cookie-popup button {
    width: 48%;
    padding: 12px 20px;
    margin: 10px 0;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: 'Inter', sans-serif;
}

/* Pacjent (zielony) */
.cookie-popup #btn-patient.enabled {
    background-color: var(--button-patient-color);
    color: white;
    border: 2px solid var(--button-patient-color);
}
.cookie-popup #btn-patient.enabled:hover {
    background-color: white;
    color: var(--button-doctor-color);
    border: 2px solid var(--button-doctor-color);
}

/* Lekarz (niebieski) */
.cookie-popup #btn-doctor.enabled {
    background-color: var(--button-doctor-color);
    color: white;
    border: 2px solid var(--button-doctor-color);
}
.cookie-popup #btn-doctor.enabled:hover {
    background-color: white;
    color: var(--button-patient-color);
    border: 2px solid var(--button-patient-color);
}

/* Specjalista (jak lekarz) */
.cookie-popup #btn-other.enabled {
    background-color: var(--button-doctor-color);
    color: white;
    border: 2px solid var(--button-doctor-color);
}
.cookie-popup #btn-other.enabled:hover {
    background-color: white !important;
    color: var(--button-patient-color) !important;
    border: 2px solid var(--button-patient-color) !important;
}

/* Nieaktywny przycisk: biały, szary tekst i obramowanie */
.cookie-popup button.disabled {
    background-color: white !important;
    color: #9B9B9B !important;
    border: 2px solid #9B9B9B !important;
    cursor: not-allowed !important;
}

.cookie-popup #pwzl-verification {
    margin-top: 10px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.cookie-popup .pwzl-input-container {
    display: flex;
    align-items: center;
    margin-top: 5px;
    flex-wrap: nowrap;
}

.cookie-popup .pwzl-label {
    font-size: 14px;
    margin-right: 10px;
    font-weight: bold;
}

.cookie-popup #pwzl-input {
    width: 150px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid var(--button-patient-color);
    border-radius: 5px;
    margin-right: 10px;
    flex-shrink: 0;
}

.cookie-popup #btn-verify-pwzl {
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    background-color: var(--button-doctor-color);
    color: white;
    border: 2px solid var(--button-doctor-color);
    cursor: pointer;
    width: auto;
    flex-shrink: 0;
    flex-grow: 0;
}

.cookie-popup #btn-verify-pwzl:hover {
    background-color: white;
    color: var(--button-patient-color);
    border: 2px solid var(--button-patient-color);
}

.cookie-popup #pwzl-error {
    font-size: 14px;
    color: red;
    margin-top: 5px;
}

.cookie-popup .advanced-settings-button-container,
.cookie-popup #advanced-text {
    display: none !important;
}

.informacja-o-pwzl {
    font-size: 11px;
    font-weight: normal;
    margin-top: 10px;
}

.cookie-popup #other-verification {
    margin-top: 10px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.cookie-popup #other-input {
    width: 150px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid var(--button-patient-color);
    border-radius: 5px;
    margin-right: 10px;
    flex-shrink: 0;
}

.cookie-popup #btn-verify-other {
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    background-color: var(--button-doctor-color);
    color: white;
    border: 2px solid var(--button-doctor-color);
    cursor: pointer;
    width: auto;
    flex-shrink: 0;
    flex-grow: 0;
}

.cookie-popup #btn-verify-other:hover {
    background-color: white;
    color: var(--button-patient-color);
    border: 2px solid var(--button-patient-color);
}

.cookie-popup #other-error {
    font-size: 14px;
    color: red;
    margin-top: 5px;
}

/* Style dla uproszczonej weryfikacji */
.cookie-popup #simplified-verification {
    margin-top: 10px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.cookie-popup .simplified-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.cookie-popup .checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-top: 10px;
}

.cookie-popup #simplified-checkbox {
    margin-top: 3px;
    margin-right: 10px;
    cursor: pointer;
}

.cookie-popup .simplified-label {
    font-size: 14px;
    font-weight: normal;
}

.cookie-popup #btn-verify-simplified {
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    background-color: var(--button-doctor-color);
    color: white;
    border: 2px solid var(--button-doctor-color);
    cursor: pointer;
    width: auto;
    float: right;
    margin-top: 15px;
    transition: all 0.3s ease;
}

/* Wzmocnienie selektora dla przycisków w trybie uproszczonym */
.cookie-popup #btn-verify-simplified.enabled {
    background-color: var(--button-doctor-color);
    color: white;
    border: 2px solid var(--button-doctor-color);
}

.cookie-popup #btn-verify-simplified.enabled:hover {
    background-color: white;
    color: var(--button-patient-color);
    border: 2px solid var(--button-patient-color);
}

/* Upewnienie się, że wszystkie przyciski disabled mają ten sam styl */
.cookie-popup button.disabled,
.cookie-popup #btn-doctor.disabled,
.cookie-popup #btn-patient.disabled,
.cookie-popup #btn-other.disabled,
.cookie-popup #btn-verify-simplified.disabled {
    background-color: white !important;
    color: #9B9B9B !important;
    border: 2px solid #9B9B9B !important;
    cursor: not-allowed !important;
}

@media (max-width: 1024px) {
    .cookie-popup .popup-content {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .cookie-popup .popup-content {
        width: 85%;
        max-width: 90%;
        padding: 30px;
    }

    .cookie-popup h1 {
        font-size: 22px;
    }

    .cookie-popup .checkbox-label {
        font-size: 13px;
    }

    .cookie-popup button {
        font-size: 14px;
        padding: 10px 16px;
    }

    .cookie-popup #pwzl-input,
    .cookie-popup #other-input {
        width: 130px;
    }

    .cookie-popup #pwzl-error,
    .cookie-popup #other-error {
        font-size: 13px;
    }
    
    .cookie-popup .simplified-label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cookie-popup .popup-content {
        width: 95%;
        max-width: 95%;
        padding: 20px;
    }

    .cookie-popup h1 {
        font-size: 20px;
    }

    .cookie-popup .checkbox-label {
        font-size: 12px;
    }

    .cookie-popup button {
        font-size: 13px;
        padding: 8px 14px;
    }

    .cookie-popup #pwzl-input,
    .cookie-popup #other-input {
        width: 120px;
    }

    .cookie-popup #pwzl-error,
    .cookie-popup #other-error {
        font-size: 12px;
    }
    
    .cookie-popup .simplified-label {
        font-size: 12px;
    }
}