/**
 * Elecpromo Points Rewards - Cart/Checkout Styles
 */

/* Earn Message */
.epr-earn-message {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px dashed #f59e0b;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #92400e;
}

.epr-earn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.epr-earn-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.epr-earn-text {
    font-weight: 600;
}

/* Login Prompt */
.epr-login-prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

.epr-login-icon {
    color: #9ca3af;
}

.epr-login-icon svg {
    width: 20px;
    height: 20px;
}

.epr-login-text a {
    color: #2563eb;
    font-weight: 500;
}

/* Points Container */
.epr-points-container {
    margin: 20px 0;
    width: 100%;
}

/* Toggle Bar */
.epr-toggle-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(to bottom, #fff, #f7f8f8);
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(15, 17, 17, 0.08);
}

.epr-toggle-bar:hover {
    border-color: #a6a6a6;
}

.epr-toggle-bar.epr-open,
.epr-toggle-bar.epr-active {
    border-radius: 8px 8px 0 0;
    border-bottom-color: transparent;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.epr-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #f59e0b;
}

.epr-toggle-icon svg {
    width: 22px;
    height: 22px;
}

.epr-toggle-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #0f1111;
}

.epr-subscriber-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    margin-left: 8px;
}

.epr-toggle-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #007185;
    font-weight: 500;
    font-size: 14px;
}

.epr-arrow {
    transition: transform 0.3s ease;
}

.epr-toggle-bar.epr-open .epr-arrow,
.epr-toggle-bar.epr-active .epr-arrow {
    transform: rotate(180deg);
}

/* Form Wrapper */
.epr-form-wrapper {
    display: none;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 20px;
}

.epr-points-container.epr-expanded .epr-form-wrapper {
    display: block;
    animation: eprSlideDown 0.3s ease;
}

/* Min Notice */
.epr-min-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 12px;
    color: #991b1b;
    font-size: 13px;
}

.epr-min-notice svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Points Info */
.epr-points-info {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
}

.epr-info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.epr-info-row:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}

.epr-info-label {
    color: #6b7280;
}

.epr-info-value {
    font-weight: 600;
    color: #111827;
}

.epr-bonus-tag {
    display: inline-block;
    background: #8b5cf6;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

/* Slider */
.epr-slider-wrapper {
    margin-bottom: 16px;
}

.epr-slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.epr-slider-value {
    color: #f59e0b;
    font-weight: 700;
}

.epr-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.epr-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.epr-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.epr-slider-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Discount Preview */
.epr-discount-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.epr-discount-label {
    font-weight: 500;
    color: #991b1b;
}

.epr-discount-value {
    font-size: 20px;
    font-weight: 700;
    color: #dc2626;
}

/* Actions */
.epr-actions {
    display: flex;
    gap: 10px;
}

.epr-apply-btn,
.epr-remove-btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.epr-apply-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

.epr-apply-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.epr-remove-btn {
    background: #fff;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.epr-remove-btn:hover {
    background: #fef2f2;
}

/* Message */
.epr-message {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    display: none;
}

.epr-message.epr-success {
    display: block;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.epr-message.epr-error {
    display: block;
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Coupon Label in Cart */
.epr-coupon-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.epr-star {
    color: #f59e0b;
}

.epr-coupon-amount {
    color: #dc2626;
    font-weight: 600;
}

/* Animations */
@keyframes eprSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Checkout - Earn Message */
.epr-checkout-earn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px dashed #f59e0b;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 15px 0;
    font-size: 14px;
    color: #92400e;
    font-weight: 600;
}

.epr-checkout-earn-icon {
    font-size: 20px;
    color: #f59e0b;
}

/* Checkout - Points Interface */
.epr-checkout-points {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 15px 0;
    overflow: hidden;
}

.epr-checkout-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.epr-checkout-header:hover {
    background: #f9fafb;
}

.epr-checkout-icon {
    font-size: 20px;
    color: #d97706;
}

.epr-checkout-info {
    flex: 1;
    font-size: 14px;
    color: #374151;
}

.epr-checkout-toggle-btn {
    font-size: 13px;
    color: #f59e0b;
    font-weight: 600;
}

.epr-checkout-body {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
}

.epr-checkout-slider-wrap {
    margin-bottom: 12px;
}

.epr-checkout-slider-wrap .epr-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    margin: 0;
}

.epr-checkout-slider-wrap .epr-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.epr-checkout-slider-wrap .epr-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.epr-checkout-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
}

.epr-checkout-slider-labels #epr-points-value {
    font-weight: 700;
    color: #f59e0b;
    font-size: 13px;
}

.epr-checkout-discount {
    text-align: center;
    font-size: 16px;
    color: #dc2626;
    font-weight: 700;
    margin: 16px 0;
    padding: 10px;
    background: #fef2f2;
    border-radius: 6px;
}

.epr-checkout-actions {
    text-align: center;
}

.epr-checkout-btn {
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.epr-checkout-btn-apply {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

.epr-checkout-btn-apply:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.epr-checkout-btn-remove {
    background: #fee2e2;
    color: #dc2626;
}

.epr-checkout-btn-remove:hover {
    background: #fecaca;
}

.epr-checkout-message {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    padding: 8px;
    border-radius: 4px;
}

.epr-checkout-message.success {
    color: #16a34a;
    background: #f0fdf4;
}

.epr-checkout-message.error {
    color: #dc2626;
    background: #fef2f2;
}

/* Responsive */
@media (max-width: 768px) {
    .epr-toggle-bar {
        flex-wrap: wrap;
    }
    
    .epr-toggle-link {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }
    
    .epr-actions {
        flex-direction: column;
    }
    
    .epr-checkout-header {
        flex-wrap: wrap;
    }
    
    .epr-checkout-toggle-btn {
        width: 100%;
        text-align: right;
        margin-top: 8px;
    }
}
