/* WooCommerce Gift Thresholds Styles */

.wgt-container {
    background: linear-gradient(135deg, #fff9f0 0%, #fff 100%);
    border: 2px solid #ffecd2;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.wgt-header {
    text-align: center;
    margin-bottom: 20px;
}

.wgt-header h3 {
    margin: 0;
    font-size: 22px;
    color: #2c3e50;
    font-weight: 700;
}

/* Tiers List */
.wgt-tiers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.wgt-tier-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.wgt-tier-item.unlocked {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: var(--wgt-success);
}

.wgt-tier-item.next {
    border-color: var(--wgt-primary);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.wgt-tier-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
    font-size: 24px;
}

.wgt-tier-item.unlocked .wgt-tier-icon {
    background: var(--wgt-success);
}

.wgt-checkmark {
    color: #fff;
    font-weight: bold;
    font-size: 20px;
}

.wgt-tier-info {
    flex: 1;
}

.wgt-tier-name {
    font-weight: 700;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.wgt-tier-item.unlocked .wgt-tier-name {
    color: #155724;
}

.wgt-tier-status {
    font-size: 13px;
    color: #666;
}

.wgt-tier-status strong {
    color: var(--wgt-primary);
}

.wgt-unlocked-badge {
    display: inline-block;
    background: var(--wgt-success);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.wgt-tier-threshold {
    flex: 0 0 auto;
    font-weight: 700;
    font-size: 15px;
    color: #888;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.wgt-tier-item.unlocked .wgt-tier-threshold {
    background: var(--wgt-success);
    color: #fff;
}

/* Progress Bar */
.wgt-progress-wrapper {
    margin-top: 10px;
}

.wgt-progress-bar {
    height: 10px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.wgt-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--wgt-primary) 0%, #ff6b6b 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.wgt-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: wgt-shine 2s infinite;
}

@keyframes wgt-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.wgt-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.wgt-progress-labels span:first-child {
    font-weight: 600;
    color: var(--wgt-primary);
}

/* Gift product in cart */
.wgt-gift-product {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
}

.wgt-gift-label {
    display: inline-block;
    background: var(--wgt-success, #27ae60);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 600px) {
    .wgt-container {
        padding: 20px 15px;
    }
    
    .wgt-tier-item {
        flex-wrap: wrap;
        padding: 12px 15px;
    }
    
    .wgt-tier-icon {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .wgt-tier-info {
        flex: 1 1 calc(100% - 70px);
    }
    
    .wgt-tier-threshold {
        flex: 0 0 100%;
        text-align: center;
        margin-top: 10px;
    }
}

