.plc-counter {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Style dla modułów Divi tylko wewnątrz licznika */
.plc-counter .et_pb_module.et_pb_text,
.plc-counter .et_pb_text_align_left,
.plc-counter .et_pb_bg_layout_light,
.plc-counter .et_pb_text_inner,
.plc-counter-content .et_pb_module,
.plc-counter-content .et_pb_text_inner,
.plc-counter-after-content .et_pb_module,
.plc-counter-after-content .et_pb_text_inner {
    background-color: transparent !important;
}

/* Przezroczyste tło dla treści licznika */
.plc-counter-content,
.plc-counter-after-content {
    background-color: transparent !important;
}

.plc-counter-title {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: bold;
}

.plc-counter-header {
    text-align: center;
    font-size: 10px;
    margin: 5px 0;
    font-weight: normal;
    color: inherit;
}

.plc-counter-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.plc-counter-section {
    text-align: center;
}

.plc-counter-digit {
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.plc-counter-label {
    font-size: 14px;
    text-transform: uppercase;
}

.plc-counter-content {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.plc-counter-button {
    margin-top: 20px;
}

.plc-counter-button a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s ease;
    color: #ffffff !important;
    font-size: 14px;
}

.plc-counter-button a:hover {
    opacity: 0.9;
    color: #ffffff !important;
}

.plc-counter-finished {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.plc-counter-after-content {
    font-size: 16px;
    line-height: 1.5;
    font-weight: bold;
    text-align: center;
}

/* Okres trwania promocji */
.plc-promotion-period {
    text-align: center;
    font-size: 12px;
    margin: 10px 0;
    color: #666;
    font-weight: normal;
}

/* Ograniczenia promocyjne */
.plc-promotion-constraints {
    text-align: center;
    margin: 10px 0;
}

.plc-constraint-item {
    font-size: 11px;
    color: #555;
    margin: 5px 0;
    font-weight: normal;
    line-height: 1.3;
}

/* Responsywność */
@media screen and (max-width: 768px) {
    .plc-counter-display {
        gap: 10px;
    }
    
    .plc-counter-digit {
        font-size: 28px;
    }
    
    .plc-counter-label {
        font-size: 12px;
    }
    
    .plc-counter-title {
        font-size: 20px;
    }
    
    .plc-counter-content,
    .plc-counter-after-content {
        font-size: 14px;
    }
    
    .plc-promotion-period {
        font-size: 11px;
    }
    
    .plc-constraint-item {
        font-size: 10px;
    }
}

@media screen and (max-width: 480px) {
    .plc-counter-display {
        gap: 5px;
    }
    
    .plc-counter-digit {
        font-size: 24px;
    }
    
    .plc-counter-label {
        font-size: 10px;
    }
    
    .plc-counter-title {
        font-size: 18px;
    }
    
    .plc-counter-content,
    .plc-counter-after-content {
        font-size: 13px;
    }
    
    .plc-counter-button a {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .plc-promotion-period {
        font-size: 10px;
    }
    
    .plc-constraint-item {
        font-size: 9px;
    }
}

/* Style dla oznaczeń języka w panelu administratora */
.plc-language-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.plc-language-pl {
    background-color: #0073aa;
    color: white;
}

.plc-language-en {
    background-color: #d63638;
    color: white;
}

/* Style dla różnych stanów licznika */

.plc-counter--finished .plc-counter-display,
.plc-counter--finished .plc-counter-header {
    display: none !important;
}

.plc-counter--finished .plc-counter-after-content {
    display: block;
    text-align: center;
    font-weight: bold;
    margin: 20px 0;
}

/* Tooltip dla ograniczeń promocyjnych */
.plc-constraint-icon {
    position: relative;
    cursor: pointer;
    margin: 0 5px;
    padding: 5px;
    user-select: none;
    transition: transform 0.2s ease;
}

.plc-constraint-icon:hover {
    transform: scale(1.1);
}

.plc-constraint-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 200px;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.plc-constraint-icon::after {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.plc-constraint-icon:hover::before,
.plc-constraint-icon:hover::after,
.plc-constraint-icon.active::before,
.plc-constraint-icon.active::after {
    opacity: 1;
    visibility: visible;
}

/* Inteligentne pozycjonowanie tooltipów */
.plc-constraint-icon.tooltip-left::before {
    left: 0;
    transform: translateX(0);
}

.plc-constraint-icon.tooltip-left::after {
    left: 20px;
    transform: translateX(0);
}

.plc-constraint-icon.tooltip-right::before {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.plc-constraint-icon.tooltip-right::after {
    left: auto;
    right: 20px;
    transform: translateX(0);
}

/* Responsywne poprawki dla urządzeń mobilnych */
@media (max-width: 768px) {
    .plc-constraint-icon::before {
        max-width: 180px;
        min-width: 100px;
        font-size: 13px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .plc-constraint-icon::before {
        max-width: 160px;
        min-width: 80px;
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .plc-constraint-icon {
        margin: 0 3px;
        padding: 3px;
    }
    
    .plc-promotion-constraints {
        font-size: 20px !important;
    }
    
    /* Na bardzo małych ekranach bardziej agresywne pozycjonowanie */
    .plc-constraint-icon.tooltip-left::before {
        left: 10px;
        max-width: 140px;
    }
    
    .plc-constraint-icon.tooltip-right::before {
        right: 10px;
        max-width: 140px;
    }
}  