/* WC Smart Promotions - 前台樣式 */

/* === Default Style（1shop 風格）=== */
.wcsp-promotions-bar {
    margin-bottom: 24px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    font-family: inherit;
}

.wcsp-promotions-header {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.wcsp-promotion-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.wcsp-promotion-item:last-child {
    border-bottom: none;
}

.wcsp-promotion-item:hover {
    background: #fafffe;
}

/* Badge */
.wcsp-promo-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    flex-shrink: 0;
    white-space: nowrap;
}

.wcsp-type-shipping .wcsp-promo-badge {
    background: #e8f5e9;
    color: #2e7d32;
}

.wcsp-type-discount .wcsp-promo-badge {
    background: #fff3e0;
    color: #e65100;
}

/* Text */
.wcsp-promo-text {
    font-size: 14px;
    color: #333;
    flex: 1;
    min-width: 120px;
}

/* Status */
.wcsp-promo-status {
    font-size: 14px;
    white-space: nowrap;
}

.wcsp-promo-status.wcsp-remaining {
    color: #00a67d;
}

.wcsp-promo-status.wcsp-remaining strong {
    font-weight: 700;
}

.wcsp-promo-status.wcsp-met {
    color: #2e7d32;
    font-weight: 600;
}

/* Progress Bar */
.wcsp-progress-bar {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    flex-basis: 100%;
}

.wcsp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00a67d, #00c896);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* === Minimal Style === */
.wcsp-style-minimal {
    border: none;
    background: transparent;
}

.wcsp-style-minimal .wcsp-promotions-header {
    display: none;
}

.wcsp-style-minimal .wcsp-promotion-item {
    padding: 8px 0;
    border-bottom: none;
}

.wcsp-style-minimal .wcsp-promo-badge {
    display: none;
}

.wcsp-style-minimal .wcsp-progress-bar {
    display: none;
}

/* === Banner Style === */
.wcsp-style-banner {
    border: none;
    border-radius: 0;
    background: #00a67d;
    color: #fff;
}

.wcsp-style-banner .wcsp-promotions-header {
    display: none;
}

.wcsp-style-banner .wcsp-promotion-item {
    justify-content: center;
    padding: 12px 16px;
    border-bottom-color: rgba(255,255,255,0.15);
}

.wcsp-style-banner .wcsp-promo-badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.wcsp-style-banner .wcsp-promo-text {
    color: #fff;
}

.wcsp-style-banner .wcsp-promo-status {
    color: #fff;
}

.wcsp-style-banner .wcsp-promo-status.wcsp-remaining {
    color: #ffe082;
}

.wcsp-style-banner .wcsp-progress-bar {
    background: rgba(255,255,255,0.2);
}

.wcsp-style-banner .wcsp-progress-fill {
    background: #ffe082;
}

/* Discount display */
.wcsp-discount-amount {
    color: #d63638;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
    .wcsp-promotion-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .wcsp-promo-status {
        font-size: 13px;
    }
}
