/* Retail Price Widget - Frontend Styles */

.rpw-price-container {
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.rpw-layout-horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.rpw-layout-inline {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
}

.rpw-price-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.rpw-layout-horizontal .rpw-price-item,
.rpw-layout-inline .rpw-price-item {
    display: inline-flex;
}

.rpw-label {
    font-weight: 600;
    margin-right: 8px;
    white-space: nowrap;
}

.rpw-price {
    font-weight: bold;
    white-space: nowrap;
}

/* Retail Price */
.rpw-retail-price .rpw-price {
    position: relative;
    display: inline-block;
}

.rpw-strikethrough {
    text-decoration-line: line-through;
    text-decoration-color: #ff0000;
    text-decoration-thickness: 2px;
}

.rpw-strikethrough-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff0000;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Sale Price */
.rpw-sale-price .rpw-price {
    color: #ff0000;
    font-size: 1.2em;
}

/* Savings */
.rpw-savings {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: #f0f8ff;
}

.rpw-savings-badge {
    background-color: #00a32a;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9em;
}

.rpw-savings-ribbon {
    position: relative;
    background-color: #00a32a;
    color: white;
    padding: 6px 20px;
    border-radius: 0 4px 4px 0;
}

.rpw-savings-ribbon:before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    border-right: 10px solid #008a23;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.rpw-savings-tag {
    background-color: #00a32a;
    color: white;
    padding: 4px 10px;
    border-radius: 3px;
    position: relative;
}

.rpw-savings-tag:after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    border-left: 10px solid #00a32a;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.rpw-savings-amount {
    font-weight: bold;
    color: #00a32a;
}

.rpw-savings-percentage {
    font-weight: bold;
    color: #00a32a;
}

.rpw-savings-separator {
    margin: 0 4px;
}

.rpw-no-savings {
    color: #666;
    font-style: italic;
}

/* Editor Preview */
.rpw-editor-preview {
    border: 1px dashed #ddd;
    padding: 20px;
    background-color: #f9f9f9;
}

/* Shortcodes */
.rpw-shortcode {
    display: inline-block;
}

.rpw-shortcode-display {
    display: flex;
}

/* Responsive */
@media (max-width: 768px) {
    .rpw-layout-horizontal,
    .rpw-layout-inline {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rpw-layout-horizontal .rpw-price-item,
    .rpw-layout-inline .rpw-price-item {
        margin-right: 0 !important;
        margin-bottom: 10px;
        display: flex;
    }
    
    .rpw-price-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rpw-label {
        margin-right: 0;
        margin-bottom: 4px;
    }
    
    .rpw-price {
        margin-left: 0 !important;
    }
}

/* Animations */
@keyframes rpw-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.rpw-price-change {
    animation: rpw-pulse 0.5s ease;
}