
/* Główne zmienne kolorystyczne */
:root {
    --main-bg-color: #f9f5f0;
    --card-bg-color: #FEF6EA;
    --primary-color: #f04e7e;
    --title-color: #333;
    --text-color: #555;
    --secondary-text: #777;
    --border-color: #e5e5e5;
    --shadow-color: rgba(0,0,0,0.05);
}

/* Reset i podstawowe style */
body {
    background-color: var(--main-bg-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Główny kontener profilu */
.dog-profile-container {
    margin: 0 auto;
    padding: 0 0 30px;
}

/* Główny tytuł sekcji */
.dog-details-section h2 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
    margin: 25px 15px 15px;
}

/* Karta profilu psa */
.dog-profile-card {
    background: var(--card-bg-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

/* Nagłówek profilu psa */
.dog-profile-header {
    padding: 20px;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.dog-profile-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    margin-right: 30px !important;
}

.dog-profile-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 0 !important;
}
.dog-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dog-profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding-top: 5px;
}

.dog-profile-info h2 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 600;
    color: var(--title-color);
    text-align: left;
}

/* Detale profilu */
.dog-profile-details {
    width: 100%;
}

.dog-profile-details .detail-row {
    display: flex;
    margin-bottom: 6px;
    font-size: 14px;
}

.dog-profile-details .detail-label {
    font-weight: 500;
    color: var(--secondary-text);
    width: 50px;
    flex-shrink: 0;
}

.dog-profile-details .detail-value {
    color: var(--text-color);
    font-weight: 400;
}

/* Edycja zdjęcia */
.edit-image-button-container {
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

.edit-dog-button {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: 20px !important;
    padding: 4px 12px !important;
    font-size: 11px !important;
    text-decoration: none !important;
    display: inline-block;
    line-height: 1.4;
}

/* Tytuł głównej sekcji */
h2.dog-profile-title {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin: 30px 15px 15px;
    display: flex;
    align-items: center;
}

h2.w-szczegolach {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    margin: 25px 15px 10px;
}

/* Style dla kategorii szczegółów psa */
.dog-detail-category {
    margin-bottom: 15px;
    background: var(--card-bg-color);
    position: relative;
    border-radius: 20px; /* Zmieniono */
    overflow: hidden;
    border: 1px solid #C1C2C1 !important;
    padding: 24px; /* Zmieniono */
}

.category-header {
    display: flex;
    align-items: center;
}

.category-icon {
    width: 44px; /* Zmieniono */
    height: 44px; /* Zmieniono */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    color: white;
    font-weight: bold;
    background-color: white; /* Dodano */
}

.category-icon.ukl-pok { background-color: var(--category-ukl-pok); }
.category-icon.zachow { background-color: var(--category-zachow); }
.category-icon.zdrowie { background-color: var(--category-zdrowie); }
.category-icon.siersc { background-color: var(--category-siersc); }
.category-icon.stawy { background-color: var(--category-stawy); }

.category-icon img {
    width: 24px; /* Zmieniono */
    height: 24px; /* Zmieniono */
    filter: none; /* Zmieniono */
}

.category-title {
    font-size: 18px; /* Zmieniono */
    font-weight: 600;
    color: var(--title-color);
    margin: 0;
    text-transform: uppercase;
}

.category-edit {
    position: absolute;
    top: 24px; /* Zmieniono */
    right: 24px; /* Zmieniono */
    color: #aaa;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 16px;
}
 .category-edit:hover {
    color: var(--primary-color);
}

/* Zawartość kategorii */
.category-content { /* Główny styl dla zawartości */
    padding: 0 15px 15px 60px; /* Dostosowane do ikony i tytułu */
}
.dog-detail-category .category-content { /* Doprecyzowanie dla sekcji detali */
     padding: 15px 0 0 0; /* Usunięcie lewego paddingu, gdy jest w .dog-detail-category */
}

.dog-detail-category .category-content ul {
    list-style-type: disc;
    margin: 0;
    padding-left: 20px; /* Dodano wcięcie dla listy */
}

.dog-detail-category .category-content li {
    margin-bottom: 3px;
    font-size: 15px;
    color: var(--text-color);
    /* position: relative; */ /* Usunięto, bo kropka z list-style-type */
    /* padding-left: 12px; */ /* Usunięto */
}
/* .dog-detail-category .category-content li:before { */ /* Usunięto */
    /* content: '\2022';
    position: absolute;
    left: 0;
    color: var(--text-color); */
/* } */
.dog-detail-category .category-content p {
    margin: 0 0 4px;
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.4;
}

/* Tryb edycji */
.edit-mode { /* Ogólny styl dla trybu edycji */
    display: none;
    padding: 15px;
    background: #FFF7EB;
    padding-bottom: 20px;
    border-top: 1px solid var(--border-color);
}
.dog-detail-category .edit-mode { /* Doprecyzowanie dla sekcji detali */
    background: transparent;
    border-radius: 0;
    padding: 20px 0 0;
    margin-top: 15px;
    border-top: 1px dashed #e0e0e0;
    box-shadow: none;
}

.edit-mode .form-row {
    margin-bottom: 15px;
}
.edit-mode .form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}
.edit-mode .form-row input[type="text"],
.edit-mode .form-row select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.question-header {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}
.dog-detail-category .question-header {
    font-size: 16px;
}

/* Style dla checkboxów */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}
.dog-detail-category .checkbox-grid {
    gap: 12px;
    margin-bottom: 20px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background-color: #fff7eb;
    border: 1px solid #C1C2C1 !important;
    cursor: pointer;
}
.dog-detail-category .checkbox-item {
    align-items: flex-start;
    padding: 10px 15px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.checkbox-item:has(input:checked),
.checkbox-item.selected {
    background-color: #fff0f4;
    border: 2px solid #F04E7E !important; /* Dodano !important dla pewności */
    padding: 11px; /* Dostosowanie dla grubszej ramki */
}
.dog-detail-category .checkbox-item.selected {
    background-color: #fcf0f2;
    border: 2px solid #F04E7E !important;
    padding: 9px 14px;
}

.checkbox-item label {
    font-size: 13px;
    cursor: pointer;
    color: #444;
    margin-left: 8px;
    user-select: none;
}
.dog-detail-category .checkbox-item label {
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background-color: #ffffff;
    border: 1.5px solid #7A7A7A !important;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}
.dog-detail-category .checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 1px solid #EA4E6E;
    margin-right: 10px;
    margin-top: 2px;
}

.checkbox-item input[type="checkbox"]:checked {
    background-color: #EA4E6E;
    border-color: #EA4E6E;
}

.checkbox-item input[type="checkbox"]:checked::before {
    content: '\2713';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 0px; /* Dostosuj dla wyrównania */
    left: 3px;  /* Dostosuj dla wyrównania */
    line-height: 18px; /* Dla lepszego centrowania w FF */
}

/* Style dla opcji radio */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}
.radio-options { /* Dla sekcji 'siersc' */
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

/* Fix for Thrive Leads link color */
.subscription-info-link a,
.subscription-info-link a:visited {
    color: #555555 !important;
    text-decoration: underline !important;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background-color: #fff7eb;
    border: 1px solid #e9e9e9;
    cursor: pointer;
}

.radio-option:has(input:checked),
.radio-option.selected {
    background-color: #fff0f4;
    border: 2px solid #EA4E6E;
    padding: 11px;
}

.radio-option label {
    font-size: 13px;
    cursor: pointer;
    color: #444;
    margin-left: 8px;
    user-select: none;
}

.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background-color: #ffffff;
    border: 1.5px solid #333;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + label {
    font-weight: 600;
}

.radio-option input[type="radio"]:checked {
    background-color: #EA4E6E;
    border-color: #EA4E6E;
}

.radio-option input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    background-color: white;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Notatka ostrzegawcza */
.warning-note {
    color: #EA4E6E !important;
    font-weight: 700 !important;
    font-size: 12px;
    margin: 20px 0 15px;
    line-height: 1.4;
}
.dog-detail-category .warning-note {
    font-size: 14px;
}

/* Przyciski akcji w trybie edycji */
.edit-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 5px;
}
.dog-detail-category .edit-actions {
    margin-top: 20px;
    gap: 15px;
}

button.save-button,
.zapiszZmiany { /* Zakładając, że .zapiszZmiany to też przycisk zapisu */
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    padding: 12px 30px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(255, 78, 126, 0.15);
    transition: background-color 0.2s ease;
}
button.save-button:hover,
.zapiszZmiany:hover {
    background-color: #d63a5a;
}
.dog-detail-category button.save-button,
.dog-detail-category .zapiszZmiany {
    font-size: 15px;
    min-width: 160px;
    justify-content: center;
    margin: 0 auto;
    box-shadow: none;
}

button.cancel-button {
    display: inline-block;
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ccc;
    border-radius: 30px;
    font-size: 14px;
    padding: 12px 30px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
button.cancel-button:hover {
    background-color: #e0e0e0;
}
.dog-detail-category button.cancel-button {
    font-size: 15px;
    min-width: 120px;
}

/* Komunikaty */
.woocommerce-notices-wrapper {
    max-width: 480px; /* Ogranicz szerokość dla czytelności */
    margin: 0 auto 15px; /* Wyśrodkuj komunikaty */
}
.woocommerce-notices-container { /* Wrapper dla komunikatów WC na górze */
    max-width: 800px; /* Lub dopasuj do szerokości strony */
    margin: 20px auto 20px; /* Odstępy i centrowanie */
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice { /* Ogólne style dla wszystkich komunikatów */
    margin-bottom: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    border-left-width: 4px; /* Dodaj kolorową lewą ramkę */
    border-left-style: solid;
}
.woocommerce-message { background-color: #edf7ed; color: #2e7d32; border-left-color: #4caf50; } /* Zielony dla sukcesu */
.woocommerce-error { background-color: #fdecea; color: #d32f2f; border-left-color: #f44336; } /* Czerwony dla błędu */
.woocommerce-info { background-color: #e6f4fa; color: #0d67c0; border-left-color: #2196f3; } /* Niebieski dla info */


/* Przyciski akcji */
.dog-profile-actions { /* Używane do ikon edycji/usuwania na karcie profilu psa */
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 10; /* Upewnij się, że są nad innymi elementami karty */
}
.dog-profile-actions a { color: #999; font-size: 18px; text-decoration: none; }
.dog-profile-actions a:hover { color: var(--primary-color); }
.edit-action .dashicons, .delete-action .dashicons { font-size: 20px; }

.dog-profile-actions button.delete-action {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.dog-profile-actions button.delete-action:hover {
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
}

.dog-profile-actions button.delete-action:active {
    transform: scale(0.95);
}

.dog-profile-actions button.delete-action.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.dog-profile-actions button.delete-action svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Popup informacyjny o subskrypcji */
.psiapsi-delete-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.psiapsi-delete-popup-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.psiapsi-delete-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.psiapsi-delete-popup-header h3 {
    font-family: Poppins, sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #333;
    margin: 0;
}

.psiapsi-delete-popup-close {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.psiapsi-delete-popup-close:hover {
    color: #333;
}

.psiapsi-delete-popup-body {
    padding: 24px;
    text-align: center;
}

.psiapsi-delete-info-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.psiapsi-delete-popup-body p {
    font-family: Poppins, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #333;
    margin: 0 0 12px 0;
}

.psiapsi-delete-popup-body p:last-child {
    margin-bottom: 0;
}

.psiapsi-delete-info-text {
    font-size: 14px !important;
    color: #666 !important;
    margin-top: 12px !important;
}

.psiapsi-delete-popup-body strong {
    color: #EA4E6E;
    font-weight: 600;
}

.psiapsi-delete-popup-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.psiapsi-delete-popup-close-btn {
    background-color: #EA4E6E !important;
    color: white !important;
    border: none !important;
    padding: 12px 32px !important;
    border-radius: 50px !important;
    font-family: Poppins, sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.psiapsi-delete-popup-close-btn:hover {
    background-color: #d94663 !important;
}

@media (max-width: 768px) {
    .psiapsi-delete-popup-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
}

/* Usuwanie zbędnych marginesów */
.dog-detail-category:last-child { margin-bottom: 0; }

/* Modal edycji zdjęcia */
.dog-image-popup {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    display: none; /* Domyślnie ukryty */
    align-items: center; /* Wyśrodkowanie pionowe */
    justify-content: center; /* Wyśrodkowanie poziome */
}
.dog-image-popup .popup-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.dog-image-popup .popup-content h3 { margin-top: 0; margin-bottom: 20px; font-size: 18px; font-weight: 600; color: #333; text-align: center; }
.dog-image-popup .close-popup { position: absolute; top: 10px; right: 15px; font-size: 24px; color: #888; cursor: pointer; }
.dog-image-popup .close-popup:hover { color: #333; }
.popup-image-area { text-align: center; margin-bottom: 20px; background: #f8f8f8; padding: 20px; border-radius: 8px; min-height: 200px; display: flex; align-items: center; justify-content: center; }
.popup-image-area img { max-width: 100%; max-height: 250px; border-radius: 8px; }
.no-image-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #999; width: 100%; height: 200px; }
.no-image-placeholder .dashicons { font-size: 40px; width: 40px; height: 40px; margin-bottom: 10px; }
.popup-actions { /* Ogólna klasa, używana w wielu popupach. Upewnij się, że style są kompatybilne */
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px; /* Dodano dla odstępu */
}
.upload-button, .remove-button { /* Styl dla przycisków w popupie zdjęcia */
    background-color: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 30px; /* Kształt pigułki */
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex; /* Wyrównaj ikonę i tekst */
    align-items: center;
    transition: all 0.2s;
}
.upload-button .dashicons, .remove-button .dashicons { margin-right: 5px; }
.upload-button:hover { background-color: #e0e0e0; }
.remove-button { color: #d32f2f; background-color: #ffebee; }
.remove-button:hover { background-color: #ffcdd2; }
.popup-submit { text-align: center; }

/* Chart styles */
.chart-with-legend { display: flex; align-items: center; justify-content: space-between; flex-direction: row; flex-wrap: nowrap; gap: 20px; margin: 15px 0; width: 100%; max-width: 1000px; margin-left: auto; margin-right: auto; }
.chart-wrapper { width: 70%; max-width: 700px; height: 700px; position: relative; flex: 0 0 auto; }
.chart-title { text-align: center; margin-bottom: 15px; font-size: 18px; color: #333; font-weight: 600; }
.dog-chart-section .chart-legend { display: flex; flex-direction: column; gap: 10px; padding-left: 15px; flex: 1; } /* Zmienione z chart-legend */
.dog-chart-section .legend-item { display: flex; align-items: center; gap: 8px; } /* Zmienione z legend-item */
.dog-chart-section .legend-color { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; } /* Zmienione z legend-color */
.dog-chart-section .legend-icon { width: 24px; height: 24px; object-fit: contain; filter: brightness(2); max-width: 100%; max-height: 100%; } /* Zmienione z legend-icon */
.dog-chart-section .legend-label { font-size: 14px; color: #333; } /* Zmienione z legend-label */

/* Sekcja "Mieszanka Twojego pupila" */
h2.mieszanka-title { color: #EA4E6E; font-size: 24px; font-weight: 500; margin-bottom: 20px; margin-top: 40px; }
.mieszanka-detail { background: #FDF5E9; border-radius: 20px; padding: 24px; color: #333; font-size: 14px; line-height: 1.6; }
.dawkowanie-label { font-weight: 600; color: #333; margin-top: 20px; display: block; }

/* Style dla sekcji produktów rekomendowanych */
.recommended-products-section { margin-top: 30px; }
.recommended-products-section h2 { color: var(--primary-color); font-size: 20px; margin-bottom: 15px; }
.recommended-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.recommended-product-item { border: 1px solid #e0e0e0; border-radius: 8px; text-align: center; transition: all 0.3s ease; display: flex; flex-direction: column; background-color: #fff; }
.recommended-product-item:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.product-type-label { background-color: var(--primary-color); color: white; padding: 5px 10px; border-radius: 8px 8px 0 0; font-size: 12px; font-weight: bold; margin-bottom: 10px; }
.recommended-product-item .product-image { margin-bottom: 10px; padding: 15px 15px 0; }
.recommended-product-item .product-image img { max-width: 100%; height: auto; max-height: 180px; object-fit: contain; border-radius: 4px; }
.recommended-product-item .product-info { padding: 0 15px 15px; display: flex; flex-direction: column; flex-grow: 1; }
.recommended-product-item h3 { margin: 0 0 10px; font-size: 16px; color: #333; flex-grow: 1; min-height: 3em; }
.product-meta { margin-bottom: 10px; }
.product-price { font-weight: bold; color: #4caf50; }
.product-description { font-size: 13px; color: #555; margin-bottom: 15px; flex-grow: 1; }
.product-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.product-button, button.add_to_cart_button { padding: 10px 16px; border-radius: 20px; text-decoration: none; transition: all 0.3s ease; border: none; cursor: pointer; font-weight: bold; font-size: 14px; text-align: center; display: block; }
.product-button { background-color: #f5f5f5; color: #333; border: 1px solid #ddd; }
.product-button:hover { background-color: #e0e0e0; }
button.add_to_cart_button, .button.alt.add-to-cart-button { background-color: #4caf50; color: #fff; }
button.add_to_cart_button:hover, .button.alt.add-to-cart-button:hover { background-color: #388e3c; }
form.cart { margin-bottom: 0; }

/* Style dla wykresu kołowego */
.dog-chart-section { margin-top: 20px; margin-bottom: 30px; padding: 20px; background-color: #FFF7EB; border-radius: 12px; }
.dog-chart-section h3 { font-size: 20px; color: #555; margin-bottom: 15px; text-align: center; font-weight: 500; }
.chart-container { display: flex; flex-direction: column; align-items: center; max-width: 700px; margin: 0 auto; }
.chart-container canvas { max-width: 700px; max-height: 700px; }
.dog-chart-section .chart-legend { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 20px; width: 100%; gap: 10px 20px; } /* Już zdefiniowane */
.legend-column { flex: 1; min-width: 150px; max-width: 250px; padding: 0 10px; display: flex; flex-direction: column; gap: 10px; }
/* .dog-chart-section .legend-item - Już zdefiniowane */
/* .dog-chart-section .legend-color - Już zdefiniowane */
/* .dog-chart-section .legend-icon - Już zdefiniowane */
/* .dog-chart-section .legend-label - Już zdefiniowane */

/* Style dla sekcji składników - tylko kontener */
.ingredients-carousel-section { margin-top: 50px; padding: 20px; background-color: #FFF7EB; border-radius: 12px; }
.ingredients-title { font-size: 22px; font-weight: 700; color: #333; margin-top: 0; margin-bottom: 20px; }
.ingredients-section .ingredients-title { margin-bottom: 30px; }
.ingredients-carousel-container { position: relative; }

/* Wszystkie style dla slidera składników zostały przeniesione do klasy PsiaPsi_Ingredient_Slider */

.back-to-dogs { margin: 15px 0; padding: 0 15px; }
.back-to-dogs .back-button { color: var(--primary-color); text-decoration: none; font-weight: 500; }
.back-to-dogs .dashicons { margin-right: 5px; vertical-align: middle; }

.dog-update-message { padding: 10px 15px; margin: 0 0 15px 0; border-radius: 4px; font-size: 14px; animation: fadeOut 5s forwards; position: fixed; top: 20px; right: 20px; z-index: 99999; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dog-update-message.success { background-color: #e8f5e9; border-left: 3px solid #4caf50; color: #388e3c; }
.dog-update-message.error { background-color: #ffebee; border-left: 3px solid #f44336; color: #d32f2f; }
@keyframes fadeOut { 0% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

/* Style dla popupu zmiany subskrypcji */
.subscription-change-popup {
    display: none; /* Hidden by default, shown by JS */
    position: fixed;
    z-index: 999999; /* Very high z-index */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7); /* Darker overlay */
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.subscription-change-popup.force-visible,
body.showing-subscription-popup .subscription-change-popup { /* Ensure JS can force display */
    display: flex !important; /* Use flex for centering */
    opacity: 1 !important;
    visibility: visible !important;
}

.subscription-change-popup .popup-content {
    background-color: white;
    padding: 30px; /* More padding */
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* Softer shadow */
    animation: popupFadeInScale 0.3s ease-out;
    border-top: 5px solid var(--primary-color); /* Accent border */
}

@keyframes popupFadeInScale {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.subscription-change-popup h3 {
    color: #333;
    font-size: 22px; /* Larger title */
    margin-top: 0;
    margin-bottom: 15px;
    /* padding-bottom: 15px; */
    /* border-bottom: 1px solid #eee; */
    text-align: center;
}
.subscription-change-popup p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.subscription-change-popup .close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #aaa; /* Lighter close icon */
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}
.subscription-change-popup .close-popup:hover {
    color: #777;
}

.subscription-change-popup .price-difference {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px; /* Slightly larger text */
    font-weight: 500;
}

.subscription-change-popup .price-increase {
    background-color: #fff8e1; /* Softer yellow */
    color: #b06200; /* Darker text for contrast */
    border-left: 4px solid #ffc107; /* Amber border */
}

.subscription-change-popup .price-decrease {
    background-color: #e8f5e9; /* Softer green */
    color: #255d28; /* Darker text for contrast */
    border-left: 4px solid #4caf50; /* Green border */
}

.subscription-change-popup .popup-actions {
    display: flex;
    justify-content: center; /* Center buttons */
    gap: 20px; /* More space between buttons */
    margin-top: 30px; /* More space above buttons */
}

.subscription-change-popup .confirm-button,
.subscription-change-popup .cancel-button {
    border: none;
    border-radius: 30px;
    padding: 12px 28px; /* Adjust padding */
    font-size: 15px;
    font-weight: 500; /* Bolder text */
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    min-width: 150px; /* Ensure buttons have decent width */
    text-align: center;
}

.subscription-change-popup .confirm-button {
    background-color: var(--primary-color); /* Use CSS var */
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.subscription-change-popup .confirm-button:hover {
    background-color: #d63a5a; /* Darken primary */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(234, 78, 110, 0.3);
}

.subscription-change-popup .cancel-button {
    background-color: #f0f0f0; /* Lighter grey */
    color: #555;
    border: 1px solid #ccc; /* Subtle border */
}
.subscription-change-popup .cancel-button:hover {
    background-color: #e0e0e0;
    border-color: #bbb;
}

/* Style dla sekcji EM Points */
.em-points-section h2 { color: var(--primary-color); font-size: 20px; margin-bottom: 15px; }
.em-points-summary { background-color: #f1f8e9; padding: 15px; border-radius: 5px; margin-bottom: 20px; text-align: center; }
.em-points-summary h3 { margin: 0; color: #558b2f; }
.em-points-value { font-size: 24px; font-weight: bold; color: #33691e; }
.m-points-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.m-point-category { padding: 10px; border-radius: 4px; background-color: #f5f5f5; }
.m-point-category.has-value { background-color: #e8f5e9; }
.m-point-category p { margin: 0; }
.m-point-value { float: right; font-weight: bold; }

/* Style dla nagłówka "Pełny skład" */
.em-points-container .em-points-header .em-points-title {
    margin-top: 50px !important;
    margin-bottom: 20px !important;
    color: #EA4E6E !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    font-family: Poppins, sans-serif !important;
}

/* Style dla opisów z points legend */
.points-legend-description { font-size: 14px; line-height: 1.5; color: #333; margin-bottom: 10px; background-color: #fef6ea; padding: 10px; border-radius: 5px; border-left: 3px solid #EA4E6E; }

/* Stare style slidera zostały usunięte - obecnie skladniki wykorzystują komponent PsiaPsi_Ingredient_Slider */


/* Responsywność */
@media (max-width: 768px) {
    /* Mobile chart layout - full width chart with legend below */
    .chart-with-legend {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }
    
    .chart-wrapper {
        width: 100% !important;
        max-width: 350px !important;
        height: 350px !important;
    }
    
    .dog-chart-section .chart-legend {
        width: 100% !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px 20px !important;
        padding-left: 0 !important;
    }
    
    .dog-chart-section .legend-item {
        flex-direction: column !important;
        text-align: center !important;
        gap: 5px !important;
        min-width: 80px !important;
    }
    
    .dog-chart-section .legend-color {
        width: 50px !important;
        height: 50px !important;
        border-radius: 12px !important;
        margin: 0 auto !important;
    }
    
    .dog-chart-section .legend-icon {
        width: 30px !important;
        height: 30px !important;
    }
    
    .dog-chart-section .legend-label {
        font-size: 12px !important;
        font-weight: 600 !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }
    
    /* Mobile mieszanka title */
    h2.mieszanka-title {
        font-size: 24px !important;
        text-align: center !important;
        margin-bottom: 20px !important;
        margin-top: 30px !important;
    }
    
    .legend-column { width: 100%; max-width: 100%; margin-bottom: 15px; }
    .legend-column:last-child { margin-bottom: 0; }
}
@media (max-width: 767px) {
}
@media (max-width: 480px) {
    .dog-profile-container { padding: 0 0 20px 0; }
    .checkbox-grid, .radio-grid { grid-template-columns: 1fr; }
    .dog-profile-header { flex-direction: column; align-items: center; }
    .dog-profile-left { margin-right: 0 !important; margin-bottom: 15px; }
    .dog-profile-info h2 { text-align: center; }
    .category-content { padding: 0 15px 15px 15px; }
    .dog-detail-category .category-content { padding: 15px; } /* Dostosowanie dla mobilnych */
}

