/* Points System Styles */
.points-section {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
}

/* Customer Shipping Fee Section - Match customer-points styling */
#customer-shipping-fee-section {
    margin-top: 0.5rem !important; /* mt-6 - increased spacing */
    padding: 1rem !important; /* p-4 - same as customer-points */
    background-color: #ffffff !important; /* bg-white */
    border-radius: 0.5rem !important; /* rounded-lg - same as customer-points */
    border: 1px solid #e5e7eb !important; /* border-gray-200 - same style as customer-points border */
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

#customer-shipping-fee-section:hover {
    background-color: #f9fafb !important; /* hover:bg-gray-50 */
}

.points-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.points-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.points-input {
    flex: 1;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.points-input:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.points-calculate-btn {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.points-calculate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.points-discount-info {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
}

.points-discount-amount {
    color: #2e7d32;
    font-weight: 700;
    font-size: 16px;
}

.header-points {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.header-tier {
    background: rgba(255, 193, 7, 0.9);
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Voucher Styles */
.voucher-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: all 0.2s ease;
    position: relative;
}

.voucher-card:hover {
    border-color: #e53935;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.1);
}

.voucher-card.selected {
    border-color: #e53935;
    background: #fef2f2;
}

.voucher-card.voucher-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.voucher-disabled-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.voucher-stub {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 12px;
    text-align: center;
    position: relative;
}

.voucher-stub::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
}

/* Voucher icon styles */
.voucher-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.voucher-icon.shipping {
    background: linear-gradient(135deg, #10b981, #059669);
}

.voucher-icon.discount {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.voucher-icon.disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
}

.voucher-stub.free-ship {
    background: linear-gradient(135deg, #10b981, #059669);
}

.voucher-stub.discount {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.voucher-stub.spaylater {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.voucher-stub.disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    opacity: 0.7;
}

.voucher-details.disabled {
    opacity: 0.7;
}

.best-choice-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    position: absolute;
    top: 8px;
    right: 8px;
}

.voucher-details {
    padding: 16px;
    position: relative;
}

.voucher-progress {
    background: #f3f4f6;
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
    margin: 8px 0;
}

.voucher-progress-bar {
    height: 100%;
    background: #f59e0b;
    transition: width 0.3s ease;
}

/* Message Styles */
.user-message {
    background-color: var(--primary-color);
    color: white;
    border-radius: 18px 18px 0 18px;
}

.bot-message {
    background-color: #FFEBEE;
    color: #333;
    border-radius: 18px 18px 18px 0;
}

.typing-indicator span {
    animation: bounce 1.5s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Bottom sheet animations */
#categories-bottom-sheet {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

