/* Dynamic Pricing Frontend Styles */

.dynamic-price {
    display: inline;
    font-weight: inherit;
    color: inherit;
}

.dynamic-price-error {
    display: inline;
    color: #d63638;
    font-style: italic;
    font-size: 0.9em;
}

/* Predefined Style Options */

/* Highlight style - yellow background */
.dynamic-price-highlight {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 3px;
    padding: 2px 6px;
    font-weight: bold;
}

/* Badge style - blue badge */
.dynamic-price-badge {
    background: #007cba;
    color: #fff;
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 0.9em;
    font-weight: bold;
    display: inline-block;
}

/* Size variations */
.dynamic-price-large {
    font-size: 1.4em;
    font-weight: bold;
}

.dynamic-price-small {
    font-size: 0.85em;
}

/* Text formatting */
.dynamic-price-bold {
    font-weight: bold;
}

.dynamic-price-italic {
    font-style: italic;
}

.dynamic-price-underline {
    text-decoration: underline;
}

/* Additional predefined styles for common use cases */

/* Success/positive pricing */
.dynamic-price-success {
    color: #28a745;
    font-weight: bold;
}

/* Warning/attention pricing */
.dynamic-price-warning {
    color: #ffc107;
    background: #fff3cd;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

/* Danger/urgent pricing */
.dynamic-price-danger {
    color: #dc3545;
    font-weight: bold;
}

/* Info/neutral pricing */
.dynamic-price-info {
    color: #17a2b8;
    font-weight: bold;
}

/* Box styles */
.dynamic-price-box {
    border: 2px solid #007cba;
    padding: 8px 12px;
    border-radius: 5px;
    display: inline-block;
    background: #f8f9fa;
}

.dynamic-price-rounded {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 15px;
    display: inline-block;
}

/* Currency-specific styles */
.dynamic-price-currency {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #2c5530;
}

/* Sale/discount styles */
.dynamic-price-sale {
    background: #ff6b6b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dynamic-price-large {
        font-size: 1.2em;
    }
    
    .dynamic-price-badge,
    .dynamic-price-box {
        font-size: 0.9em;
        padding: 3px 8px;
    }
}

/* Theme compatibility - ensure prices don't inherit unwanted styles */
.dynamic-price,
.dynamic-price * {
    box-sizing: border-box;
}

/* Print styles */
@media print {
    .dynamic-price-badge {
        background: transparent !important;
        color: #000 !important;
        border: 1px solid #000;
    }
    
    .dynamic-price-sale {
        animation: none;
        background: transparent !important;
        color: #000 !important;
        border: 1px solid #000;
    }
}