/**
 * Style dla produktów szkolenia
 */

.course-info {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
}

.course-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

/* Komunikat o braku dostępnych sesji - spójny z .course-info */
.course-no-sessions {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
}

.course-no-sessions .course-no-sessions-message {
    margin: 0;
    color: #333;
}

.course-details {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.course-details li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.course-details li:last-child {
    border-bottom: none;
}

.course-details strong {
    color: #495057;
    margin-right: 10px;
}

.course-curriculum {
    margin-top: 20px;
}

.course-curriculum h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.1em;
}

.curriculum-content {
    background: #fff;
    padding: 15px;
    border-radius: 3px;
    border: 1px solid #dee2e6;
}

/* ========== Blok „Informacje dodatkowe” na stronie produktu ========== */
.course-additional-block {
    margin: 20px 0;
    padding: 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.course-additional-block-inner {
    padding: 24px;
}

.course-additional-block-title {
    margin: 0 0 20px 0;
    padding: 0 0 12px 0;
    color: #333;
    font-size: 1.25em;
    font-weight: 600;
    border-bottom: 2px solid #0073aa;
}

.course-additional-subtitle {
    margin: 0 0 12px 0;
    color: #495057;
    font-size: 1.05em;
    font-weight: 600;
}

.course-additional-details {
    margin-bottom: 24px;
}

.course-additional-details .course-details {
    margin: 0 0 0 0;
}

.course-additional-details .course-details li:last-child {
    border-bottom: none;
}

/* Program szkolenia – zakładki (Dzień 1, Dzień 2, …) */
.course-curriculum-tabs {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.course-curriculum-tabs .course-additional-subtitle {
    margin-bottom: 14px;
}

.curriculum-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.curriculum-tab-label {
    display: inline-block;
    padding: 10px 18px;
    margin-right: 6px;
    margin-bottom: 10px;
    background: #e9ecef;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
}

.curriculum-tab-label:hover {
    background: #dee2e6;
    color: #333;
}

.curriculum-tab-input:checked + .curriculum-tab-label {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.curriculum-tab-panels {
    margin-top: 0;
}

.curriculum-tab-panel {
    display: none;
}

.curriculum-tab-panel .curriculum-content {
    margin-top: 0;
}

/* Pokazuj panel N gdy zaznaczony jest input N (rodzeństwo) */
.curriculum-tab-input:nth-of-type(1):checked ~ .curriculum-tab-panels .curriculum-tab-panel:nth-child(1),
.curriculum-tab-input:nth-of-type(2):checked ~ .curriculum-tab-panels .curriculum-tab-panel:nth-child(2),
.curriculum-tab-input:nth-of-type(3):checked ~ .curriculum-tab-panels .curriculum-tab-panel:nth-child(3),
.curriculum-tab-input:nth-of-type(4):checked ~ .curriculum-tab-panels .curriculum-tab-panel:nth-child(4),
.curriculum-tab-input:nth-of-type(5):checked ~ .curriculum-tab-panels .curriculum-tab-panel:nth-child(5),
.curriculum-tab-input:nth-of-type(6):checked ~ .curriculum-tab-panels .curriculum-tab-panel:nth-child(6),
.curriculum-tab-input:nth-of-type(7):checked ~ .curriculum-tab-panels .curriculum-tab-panel:nth-child(7),
.curriculum-tab-input:nth-of-type(8):checked ~ .curriculum-tab-panels .curriculum-tab-panel:nth-child(8),
.curriculum-tab-input:nth-of-type(9):checked ~ .curriculum-tab-panels .curriculum-tab-panel:nth-child(9),
.curriculum-tab-input:nth-of-type(10):checked ~ .curriculum-tab-panels .curriculum-tab-panel:nth-child(10) {
    display: block;
}

.curriculum-single {
    margin-top: 0;
}

/* Tabela rozkładu dnia (Godzina | Zajęcia) */
.curriculum-schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 15px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.curriculum-schedule-table thead {
    background: #0073aa;
    color: #fff;
}

.curriculum-schedule-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.curriculum-schedule-table .curriculum-time-col {
    width: 140px;
    white-space: nowrap;
}

.curriculum-schedule-table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.curriculum-schedule-table tbody tr:last-child {
    border-bottom: none;
}

.curriculum-schedule-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.curriculum-schedule-table tbody tr:hover {
    background: #f0f4f8;
}

.curriculum-schedule-table td {
    padding: 10px 16px;
    vertical-align: top;
}

.curriculum-schedule-table .curriculum-time-cell {
    color: #495057;
    font-weight: 500;
}

.curriculum-schedule-table .curriculum-desc-cell {
    color: #333;
}

@media (max-width: 480px) {
    .curriculum-schedule-table {
        font-size: 14px;
    }
    .curriculum-schedule-table th,
    .curriculum-schedule-table td {
        padding: 8px 12px;
    }
    .curriculum-schedule-table .curriculum-time-col {
        width: 100px;
    }
}

/* Style dla zakładek w panelu administracyjnym */
.woocommerce_options_panel .course-info {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

/* Style dla przycisku szkolenia */
.single-product .course-info + .cart {
    margin-top: 20px;
}

.single-product .course-info + .cart .single_add_to_cart_button {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #fff;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.single-product .course-info + .cart .single_add_to_cart_button:hover {
    background-color: #005a87;
    border-color: #005a87;
    color: #fff;
}

/* Ukryj pole ilości dla produktów szkolenia */
.single-product .course-info + .cart .quantity {
    display: none !important;
}

/* Style dla przycisku "Zapisz się na szkolenie" */
.single_add_to_cart_button.button.alt {
    background: #0073aa !important;
    color: #fff !important;
    border: 1px solid #0073aa !important;
    padding: 16px 24px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    min-height: 56px !important;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.single_add_to_cart_button.button.alt:hover {
    background: #005a87 !important;
    border-color: #005a87 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4) !important;
}

.single_add_to_cart_button.button.alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.single_add_to_cart_button.button.alt:hover::before {
    left: 100%;
}

.single_add_to_cart_button.button.alt:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.2) !important;
}

.single_add_to_cart_button.button.alt:focus {
    outline: 2px solid #0073aa !important;
    outline-offset: 2px !important;
}

/* Style dla tabeli programu szkolenia */
.curriculum-table {
    margin: 0;
}

.curriculum-day {
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.day-header {
    background: #0073aa;
    color: #fff;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.day-content {
    padding: 15px;
}

.curriculum-item {
    display: flex;
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.curriculum-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.curriculum-time {
    font-weight: 600;
    color: #0073aa;
    min-width: 100px;
    margin-right: 15px;
    flex-shrink: 0;
}

.curriculum-topic {
    flex: 1;
    color: #333;
}

.curriculum-text {
    margin-bottom: 8px;
    color: #666;
    font-style: italic;
}

.curriculum-text:last-child {
    margin-bottom: 0;
}

/* Responsywność dla tabeli programu */
@media (max-width: 768px) {
    .curriculum-item {
        flex-direction: column;
    }
    
    .curriculum-time {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 14px;
    }
    
    .curriculum-topic {
        font-size: 14px;
    }
}

/* Style dla wyboru sesji szkolenia */
.course-session-selection {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.course-session-selection h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
    font-weight: 500;
    text-align: center;
}

.course-session-selection h4::before {
    content: "🎓";
    margin-right: 8px;
    font-size: 1em;
}

.course-session-option {
    margin-bottom: 15px;
    padding: 18px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s ease;
    position: relative;
}

.course-session-option:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.course-session-option.available {
    cursor: pointer;
}

.course-session-option.full {
    background: #f8f9fa;
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.course-session-option.full::after {
    content: 'Brak miejsc';
    position: absolute;
    top: 12px;
    right: 15px;
    background: #dc3545;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

/* Nowy układ dwukolumnowy */
.session-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.session-main {
    flex: 1;
    min-width: 0;
}

.session-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    min-width: 120px;
    flex-shrink: 0;
}

.course-session-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    gap: 12px;
}

.course-session-option input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

.course-session-option.full input[type="radio"] {
    cursor: not-allowed;
}

.session-info {
    flex: 1;
    min-width: 0;
    position: relative;
    padding-bottom: 5px;
}

.session-info strong {
    color: #333;
    font-size: 16px;
    display: block;
    margin-bottom: 2px;
    font-weight: 500;
    line-height: 1.2;
}

.session-info strong::before {
    content: "📍";
    margin-right: 6px;
    font-size: 14px;
}

.session-date {
    color: #666;
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
    line-height: 1.2;
}

.session-date::before {
    content: "📅";
    margin-right: 4px;
    font-size: 12px;
}

.session-participants {
    margin-top: 1px;
    line-height: 1.2;
}

.participants-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    position: absolute;
    bottom: 12px;
    right: 15px;
    z-index: 5;
}

.participants-badge.available {
    background: #e8f5e8;
    color: #2d5a2d;
    border: 1px solid #c3e6c3;
}

.participants-badge.full {
    background: #ffeaea;
    color: #8b0000;
    border: 1px solid #ffcccc;
}

.participants-icon {
    font-size: 11px;
    line-height: 1;
}

.participants-count {
    font-weight: 600;
    line-height: 1;
}

.full-session {
    color: #dc3545;
    font-weight: bold;
}

/* Zaznaczona sesja */
.course-session-option:has(input:checked) {
    border-color: #28a745;
    background: #f8fff9;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.course-session-option:has(input:checked)::after {
    content: 'Wybrane';
    position: absolute;
    top: 8px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    z-index: 15;
}

/* Style dla sesji w koszyku */
.course-session-info {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.course-session-info strong {
    color: #333;
}

/* Style dla okresów szkolenia */
.course-periods-container {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.course-periods-container h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
}

.course-period-row {
    margin-bottom: 15px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.course-period-row:last-child {
    margin-bottom: 10px;
}

.course-period-row .form-field {
    display: inline-block;
    margin-right: 15px;
    vertical-align: top;
}

.course-period-row .form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.course-period-row .form-field input {
    width: 120px;
}

.course-period-row .form-field:last-child {
    margin-right: 0;
}

.add-course-period {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.add-course-period:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.remove-course-period {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.remove-course-period:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Style dla szkoleń zewnętrznych */
.course-session-option.external {
    background: #fffbf0;
    border-color: #ffc107;
    border-left: 3px solid #ffc107;
}

.course-session-option.external .session-info {
    cursor: default;
}

.course-session-option.external .session-info strong::before {
    content: "🌐";
}

/* Ukryj licznik uczestników dla szkoleń zewnętrznych */
.course-session-option.external .participants-badge {
    display: none !important;
}

/* Style dla komunikatu o posiadaniu szkolenia */
.course-owned-message {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8ff 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
}

.course-owned-header {
    text-align: center;
    margin-bottom: 25px;
}

.course-owned-header h3 {
    color: #28a745;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.course-owned-header p {
    color: #555;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

.course-owned-content {
    margin-bottom: 25px;
}

.course-owned-info h4 {
    color: #0073aa;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.course-owned-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-owned-info li {
    margin-bottom: 10px;
    padding: 8px 0;
}

.course-material-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

.course-material-link:hover {
    color: #005a87;
    text-decoration: underline;
    transform: translateX(5px);
}


.course-owned-support {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.course-owned-support p {
    margin: 0 0 10px 0;
    color: #856404;
}

.course-owned-support p:last-child {
    margin-bottom: 0;
}

.course-support-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.course-support-link:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Style dla komunikatu o zarezerwowanym miejscu */
.course-reserved-message {
    background: linear-gradient(135deg, #fff3cd 0%, #f0f8ff 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.1);
}

.course-reserved-header {
    text-align: center;
    margin-bottom: 25px;
}

.course-reserved-header h3 {
    color: #856404;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.course-reserved-header p {
    color: #555;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

.course-reserved-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.course-reserved-info h4,
.course-reserved-payment h4 {
    color: #0073aa;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.course-reserved-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-reserved-info li {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.course-reserved-info li:last-child {
    border-bottom: none;
}

.status-pending {
    color: #856404;
    font-weight: 600;
    background: #fff3cd;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.course-reserved-payment p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.course-reserved-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.course-payment-button,
.course-orders-button {
    background: #0073aa !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2) !important;
}

.course-payment-button:hover,
.course-orders-button:hover {
    background: #005a87 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3) !important;
}

.course-reserved-support {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.course-reserved-support p {
    margin: 0 0 10px 0;
    color: #856404;
}

.course-reserved-support p:last-child {
    margin-bottom: 0;
}

/* Responsywne style dla komunikatu */
@media (max-width: 768px) {
    .course-owned-message,
    .course-reserved-message {
        padding: 20px;
        margin: 15px 0;
    }
    
    .course-owned-header h3,
    .course-reserved-header h3 {
        font-size: 20px;
    }
    
    .course-reserved-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .course-reserved-actions {
        flex-direction: column;
    }
}

.external-badge {
    display: inline-block;
    background: #ffc107;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

.external-badge::before {
    content: "🔗";
    margin-right: 3px;
    font-size: 10px;
}

.external-training-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.external-training-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.session-external {
    color: #856404;
    font-size: 12px;
    margin-top: 6px;
    display: block;
    background: #fff3cd;
    padding: 6px 10px;
    border-radius: 4px;
    border-left: 2px solid #ffc107;
}

.session-external strong {
    color: #856404;
    font-weight: 500;
}

.session-external strong::before {
    content: "ℹ️";
    margin-right: 3px;
    font-size: 10px;
}

/* Responsywność */
@media (max-width: 768px) {
    .course-info {
        padding: 15px;
        margin: 15px 0;
    }
    
    .course-additional-block {
        margin: 15px 0;
        border-radius: 6px;
    }
    
    .course-additional-block-inner {
        padding: 18px;
    }
    
    .course-additional-block-title {
        font-size: 1.15em;
    }
    
    .curriculum-tab-label {
        padding: 8px 14px;
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .course-details li {
        padding: 6px 0;
    }
    
    .single-product .course-info + .cart {
        text-align: center;
    }
    
    .course-session-selection {
        padding: 15px;
        margin: 20px 0;
    }
    
    .course-session-option {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .course-session-option label {
        gap: 10px;
    }
    
    .session-info strong {
        font-size: 15px;
        margin-bottom: 1px;
    }
    
    .session-date {
        font-size: 13px;
        margin-bottom: 1px;
    }
    
    .session-participants {
        margin-top: 0;
    }
    
    .session-content {
        gap: 10px;
    }
    
    .session-badges {
        min-width: 100px;
    }
    
    .participants-badge {
        padding: 3px 6px;
        font-size: 11px;
        bottom: 10px;
        right: 10px;
    }
    
    .participants-icon {
        font-size: 10px;
    }
    
    .single_add_to_cart_button.button.alt {
        padding: 14px 20px !important;
        font-size: 16px !important;
        min-height: 50px !important;
    }
}

/* Dodatkowe style dla bardzo małych ekranów */
@media (max-width: 480px) {
    .course-session-option {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .session-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .session-badges {
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
        width: 100%;
    }
    
    .session-info strong {
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .session-date {
        font-size: 12px;
        margin-bottom: 2px;
        line-height: 1.3;
    }
    
    .participants-badge {
        position: static;
        margin-top: 8px;
        width: 100%;
        text-align: center;
        padding: 4px 8px;
        font-size: 11px;
        max-width: none;
    }
    
    .participants-count {
        font-size: 10px;
    }
    
    .participants-icon {
        font-size: 10px;
    }
    
    .single_add_to_cart_button.button.alt {
        padding: 12px 16px !important;
        font-size: 14px !important;
        min-height: 48px !important;
        letter-spacing: 0.5px !important;
    }
    
    /* Ulepszenia dla lepszej czytelności */
    .course-session-selection {
        padding: 12px;
        margin: 15px 0;
    }
    
    .course-session-selection h4 {
        font-size: 1.1em;
        margin-bottom: 12px;
    }
    
    .session-info strong {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .session-date {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .session-participants {
        font-size: 10px;
        margin-top: 4px;
    }
}

/* Style dla ekranów w orientacji poziomej */
@media (max-width: 768px) and (orientation: landscape) {
    .participants-badge {
        bottom: 8px;
        right: 8px;
        padding: 2px 5px;
        font-size: 10px;
    }
    
    .session-content {
        gap: 8px;
    }
    
    .session-badges {
        min-width: 90px;
    }
    
    .external-badge {
        top: 10px;
        right: 10px;
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .course-session-option.full::after,
    .course-session-option:has(input:checked)::after {
        top: 10px;
        right: 10px;
        font-size: 9px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .course-session-selection h4 {
        font-size: 1.1em;
    }
    
    .session-info strong {
        font-size: 14px;
    }
    
    .session-date {
        font-size: 12px;
    }
    
    .session-participants {
        font-size: 10px;
    }
}

/* Style dla odznak szkoleń */
.course-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-badge-no-dates {
    background: #dc3545;
    color: #fff;
    padding: 6px 10px;
    border: 1px solid #c82333;
}

.course-badge-no-dates::before {
    content: "⚠️";
    margin-right: 4px;
    font-size: 10px;
}

.course-badge-text {
    display: inline-block;
    line-height: 1;
}

/* Pozycjonowanie odznaki na liście produktów */
.woocommerce ul.products li.product {
    position: relative;
}

.woocommerce ul.products li.product .course-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Responsywność dla odznak */
@media (max-width: 768px) {
    .course-badge {
        top: 8px;
        right: 8px;
        font-size: 11px;
        padding: 5px 8px;
    }
}

@media (max-width: 480px) {
    .course-badge {
        top: 6px;
        right: 6px;
        font-size: 10px;
        padding: 4px 6px;
    }
    
    .course-badge-no-dates::before {
        font-size: 9px;
        margin-right: 3px;
    }
}