/* Waita Market Add-on - Customer Styles - Professional UI */



/* ============================================
   Base Layout
   ============================================ */
body.elementor-template-canvas.wma-full-width {
    margin: 0 !important;
    padding: 0 !important;
}

.wma-list-builder,
.wma-order-tracking {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    font-family: var(--wma-font-text);
    min-height: 100vh;
    box-sizing: border-box;
    background: var(--wma-bg-secondary);
    color: var(--wma-text);
}

/* ============================================
   Wallet Info Card
   ============================================ */
.wma-wallet-info {
    background: var(--wma-primary) !important;
    padding: 20px 24px;
    border-radius: var(--wma-radius-lg);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--wma-shadow-lg);
    color: var(--wma-bg) !important;
}

.wma-wallet-info .wma-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.wma-balance {
    font-size: 2em;
    font-weight: 700;
    color: var(--wma-bg);
    letter-spacing: -0.02em;
}

/* ============================================
   Section Cards
   ============================================ */
.wma-items-container,
.wma-location-section {
    background: var(--wma-bg);
    border-radius: var(--wma-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--wma-shadow-sm);
    border: 1px solid var(--wma-border-light);
}

.wma-items-container h3,
.wma-location-section h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--wma-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wma-items-container h3::before {
    content: "🛒";
}

.wma-location-section h3::before {
    content: "📍";
}

/* ============================================
   Items List
   ============================================ */
.wma-items-list {
    min-height: 80px;
    border: 2px dashed var(--wma-border-light);
    border-radius: var(--wma-radius-md);
    padding: 12px;
    margin-bottom: 16px;
    background: var(--wma-bg-secondary);
    transition: var(--wma-transition);
}

.wma-items-list:empty::before,
.wma-items-list p {
    content: "No items added yet";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    color: var(--wma-text-lighter);
    font-size: 14px;
}

.wma-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: var(--wma-bg);
    border: 1px solid var(--wma-border-light);
    border-radius: var(--wma-radius-md);
    margin-bottom: 8px;
    transition: var(--wma-transition);
}

.wma-item:hover {
    border-color: var(--wma-primary);
    box-shadow: var(--wma-shadow-sm);
}

.wma-item:last-child {
    margin-bottom: 0;
}

.wma-item-info {
    flex: 1;
    min-width: 0;
}

.wma-item-name-display {
    font-weight: 600;
    font-size: 14px;
    color: var(--wma-text);
    margin-bottom: 2px;
}

.wma-item-details {
    font-size: 12px;
    color: var(--wma-text-light);
}

.wma-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wma-edit-item {
    background: var(--wma-primary-light);
    color: var(--wma-primary);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--wma-transition);
    flex-shrink: 0;
}

.wma-edit-item:hover {
    background: var(--wma-primary);
    color: var(--wma-bg);
}

.wma-remove-item {
    background: var(--wma-danger-light);
    color: var(--wma-danger);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--wma-transition);
    flex-shrink: 0;
}

.wma-remove-item:hover {
    background: var(--wma-danger);
    color: var(--wma-bg);
}

/* ============================================
   Add Item Form - Professional Inputs
   ============================================ */
.wma-add-item-form {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 10px;
    align-items: end;
    position: relative;
}

.wma-autocomplete-wrapper {
    position: relative;
    grid-column: 1 / 2;
}

.wma-add-item-form input,
.wma-add-item-form select {
    padding: 12px 14px;
    border: 1px solid var(--wma-border);
    border-radius: var(--wma-radius-md);
    font-size: 14px;
    background: var(--wma-bg);
    color: var(--wma-text);
    transition: var(--wma-transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.wma-add-item-form input:focus,
.wma-add-item-form select:focus {
    border-color: var(--wma-primary);
    box-shadow: 0 0 0 3px var(--wma-primary-light);
}

.wma-add-item-form input::placeholder {
    color: var(--wma-text-lighter);
}

.wma-add-item-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.wma-item-name { 
    min-width: 0;
    width: 100%;
}
.wma-item-qty { 
    display: none !important; /* Hidden - always defaults to 1 */
}
.wma-item-unit { 
    display: none !important; /* Hidden - always defaults to "piece" */
}
.wma-item-price { width: 150px; }

/* ============================================
   Autocomplete Dropdown
   ============================================ */
.wma-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: var(--wma-bg);
    border: 1px solid var(--wma-border);
    border-radius: var(--wma-radius-md);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--wma-shadow-lg);
    display: none;
    margin-top: 0;
}

.wma-autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: var(--wma-text);
    transition: var(--wma-transition);
    border-bottom: 1px solid var(--wma-border-light);
}

.wma-autocomplete-item:last-child {
    border-bottom: none;
}

.wma-autocomplete-item:hover {
    background: var(--wma-primary-light);
    color: var(--wma-primary);
}

.wma-autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.wma-autocomplete-dropdown::-webkit-scrollbar-track {
    background: var(--wma-bg-secondary);
}

.wma-autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: var(--wma-border);
    border-radius: 3px;
}

.wma-autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--wma-text-light);
}

/* ============================================
   Location Fields - Dynamic Dropdowns
   ============================================ */
.wma-field {
    margin-bottom: 16px;
}

.wma-field:last-child {
    margin-bottom: 0;
}

.wma-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--wma-text);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.wma-field textarea,
.wma-field input,
.wma-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--wma-border);
    border-radius: var(--wma-radius-md);
    font-size: 14px;
    background: var(--wma-bg);
    color: var(--wma-text);
    transition: var(--wma-transition);
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.wma-field textarea:focus,
.wma-field input:focus,
.wma-field select:focus {
    border-color: var(--wma-primary);
    box-shadow: 0 0 0 3px var(--wma-primary-light);
}

.wma-field textarea::placeholder,
.wma-field input::placeholder {
    color: var(--wma-text-lighter);
}

.wma-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.wma-field select:disabled {
    background-color: var(--wma-bg-secondary);
    cursor: not-allowed;
    opacity: 0.7;
}

.wma-field-hint {
    font-size: 12px;
    color: var(--wma-text-light);
    margin-top: 6px;
}

/* Location Grid for Country/City/Street */
.wma-location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.wma-location-grid .wma-field {
    margin-bottom: 0;
}

.wma-location-grid .wma-field.wma-field-full {
    grid-column: 1 / -1;
}

/* Market field styling - visually distinct */
.wma-location-grid .wma-market-field {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px dashed var(--wma-border);
}

.wma-location-grid .wma-market-field label {
    color: var(--wma-primary);
    font-weight: 600;
}

.wma-location-grid .wma-market-field select {
    border-color: var(--wma-primary-light, #e8f5e9);
}

.wma-location-grid .wma-market-field select:not(:disabled) {
    background-color: var(--wma-success-light);
}

/* Hidden country select */
.wma-delivery-country {
    display: none !important;
}

/* Auto-populated location field indicator */
.wma-location-section select.wma-auto-populated,
.wma-location-section input.wma-auto-populated {
    background-color: var(--wma-success-light);
    border-color: var(--wma-primary);
    transition: var(--wma-transition);
}

.wma-location-section select.wma-auto-populated:focus,
.wma-location-section input.wma-auto-populated:focus {
    background-color: var(--wma-bg);
    border-color: var(--wma-primary);
}

.wma-location-section .wma-field-hint {
    font-size: 13px;
    color: var(--wma-text-light);
    margin-top: 4px;
}

.wma-location-section .wma-field-hint .dashicons {
    font-size: 14px;
    vertical-align: middle;
    margin-right: 2px;
}

/* Street Autocomplete Dropdown */
.wma-street-autocomplete-wrapper {
    position: relative;
}

.wma-street-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--wma-bg);
    border: 1px solid var(--wma-border);
    border-top: none;
    border-radius: 0 0 var(--wma-radius-sm) var(--wma-radius-sm);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--wma-shadow-md);
    display: none;
}

.wma-street-autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--wma-text);
    transition: var(--wma-transition);
    border-bottom: 1px solid var(--wma-border-light);
}

.wma-street-autocomplete-item:last-child {
    border-bottom: none;
}

.wma-street-autocomplete-item:hover {
    background-color: var(--wma-primary-light);
    color: var(--wma-primary-dark);
}

.wma-street-autocomplete-item:active {
    background-color: var(--wma-primary);
    color: var(--wma-bg);
}

/* Street input styling */
.wma-delivery-street {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--wma-border);
    border-radius: var(--wma-radius-sm);
    font-size: 14px;
    transition: var(--wma-transition);
}

.wma-delivery-street:focus {
    outline: none;
    border-color: var(--wma-primary);
    box-shadow: 0 0 0 3px var(--wma-primary-light);
}

.wma-delivery-street:disabled {
    background-color: var(--wma-bg-tertiary);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Delivery instructions textarea */
.wma-delivery-details {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--wma-border);
    border-radius: var(--wma-radius-sm);
    font-size: 14px;
    font-family: var(--wma-font-text);
    resize: vertical;
    min-height: 80px;
    transition: var(--wma-transition);
}

.wma-delivery-details:focus {
    outline: none;
    border-color: var(--wma-primary);
    box-shadow: 0 0 0 3px var(--wma-primary-light);
}

.wma-delivery-details::placeholder {
    color: var(--wma-text-lighter);
    font-size: 13px;
    line-height: 1.4;
}

/* ============================================
   Voice Note Controls
   ============================================ */
.wma-voice-note-controls {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wma-voice-record-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--wma-bg);
    border: 1px solid var(--wma-border);
    border-radius: var(--wma-radius-sm);
    color: var(--wma-text);
    font-size: 13px;
    cursor: pointer;
    transition: var(--wma-transition);
}

.wma-voice-record-btn:hover {
    background: var(--wma-primary-light);
    border-color: var(--wma-primary);
    color: var(--wma-primary);
}

.wma-voice-record-btn svg {
    width: 18px;
    height: 18px;
}

.wma-voice-recording-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--wma-radius-sm);
}

.wma-recording-dot {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    animation: wma-pulse 1s infinite;
}

@keyframes wma-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

.wma-recording-time {
    font-size: 14px;
    font-weight: 600;
    color: #dc2626;
    font-family: monospace;
}

.wma-voice-stop-btn {
    padding: 4px 12px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: var(--wma-radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--wma-transition);
}

.wma-voice-stop-btn:hover {
    background: #dc2626;
}

.wma-voice-playback {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--wma-primary-light);
    border: 1px solid var(--wma-primary);
    border-radius: var(--wma-radius-sm);
}

.wma-voice-audio {
    height: 32px;
    max-width: 200px;
}

.wma-voice-remove-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--wma-transition);
}

.wma-voice-remove-btn:hover {
    background: #fecaca;
}

/* ============================================
   Draft Restored Notice
   ============================================ */
.wma-draft-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--wma-radius-md);
    margin-bottom: 16px;
    font-size: 14px;
    color: #065f46;
}

.wma-draft-notice span:first-child {
    flex: 1;
}

.wma-clear-draft-btn {
    padding: 4px 10px;
    background: transparent;
    border: 1px solid #065f46;
    border-radius: var(--wma-radius-sm);
    color: #065f46;
    font-size: 12px;
    cursor: pointer;
    transition: var(--wma-transition);
}

.wma-clear-draft-btn:hover {
    background: #065f46;
    color: white;
}

.wma-dismiss-notice-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #065f46;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--wma-transition);
}

.wma-dismiss-notice-btn:hover {
    opacity: 1;
}

/* ============================================
   Totals Section
   ============================================ */
.wma-totals {
    background: var(--wma-bg);
    padding: 20px;
    border-radius: var(--wma-radius-lg);
    margin: 20px 0;
    box-shadow: var(--wma-shadow-sm);
    border: 1px solid var(--wma-border-light);
}

.wma-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: var(--wma-text-light);
}

.wma-total-row span:last-child {
    font-weight: 600;
    color: var(--wma-text);
}

.wma-platform-commission-info {
    padding: 4px 0 !important;
    font-size: 12px !important;
    color: var(--wma-text-lighter) !important;
    font-style: italic;
}

.wma-platform-commission-info span:first-child {
    color: var(--wma-text-lighter);
    font-weight: 400;
}

.wma-grand-total {
    border-top: 2px solid var(--wma-border-light);
    margin-top: 12px;
    padding-top: 16px !important;
    font-size: 18px !important;
    font-weight: 700;
}

.wma-grand-total span:first-child {
    color: var(--wma-text);
}

.wma-grand-total span:last-child {
    color: var(--wma-primary);
    font-size: 22px;
}

/* ============================================
   Buttons
   ============================================ */
.wma-btn {
    padding: var(--wma-button-padding-y) var(--wma-button-padding-x);
    border: var(--wma-button-border-width) var(--wma-button-border-style) transparent;
    border-radius: var(--wma-button-radius);
    cursor: pointer;
    font-size: var(--wma-button-font-size);
    font-weight: var(--wma-button-font-weight);
    font-family: var(--wma-button-font-family);
    transition: var(--wma-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.wma-btn-primary {
    background: var(--wma-primary);
    color: var(--wma-bg);
    border-color: var(--wma-primary);
}

.wma-btn-primary:hover {
    background: var(--wma-primary-dark);
    border-color: var(--wma-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--wma-shadow-md);
}

.wma-btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.wma-btn-primary:disabled {
    background: var(--wma-border);
    border-color: var(--wma-border);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.wma-add-item {
    background: var(--wma-primary);
    color: var(--wma-bg);
    padding: 12px 20px;
    font-weight: 600;
}

.wma-add-item:hover {
    opacity: 0.9;
}

.wma-btn-success {
    background: var(--wma-success);
    color: var(--wma-bg);
    border-color: var(--wma-success);
}

.wma-btn-success:hover {
    background: color-mix(in srgb, var(--wma-success) 85%, black);
    border-color: color-mix(in srgb, var(--wma-success) 85%, black);
    opacity: 0.9;
}

.wma-btn-danger {
    background: var(--wma-danger);
    color: var(--wma-bg);
    border-color: var(--wma-danger);
}

.wma-btn-danger:hover {
    background: color-mix(in srgb, var(--wma-danger) 85%, black);
    border-color: color-mix(in srgb, var(--wma-danger) 85%, black);
    opacity: 0.9;
}

.wma-btn-secondary {
    background: var(--wma-secondary);
    color: var(--wma-bg);
    border-color: var(--wma-secondary);
}

.wma-btn-secondary:hover {
    background: var(--wma-secondary-dark);
    border-color: var(--wma-secondary-dark);
}

/* ============================================
   Tabs
   ============================================ */
.wma-tabs {
    display: flex;
    background: var(--wma-bg);
    border-radius: var(--wma-radius-lg);
    padding: 6px;
    margin-bottom: 20px;
    box-shadow: var(--wma-shadow-sm);
    border: 1px solid var(--wma-border-light);
}

.wma-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--wma-text-light);
    border-radius: var(--wma-radius-md);
    transition: var(--wma-transition);
}

.wma-tab:hover {
    color: var(--wma-text);
    background: var(--wma-bg-secondary);
}

.wma-tab.active {
    color: var(--wma-primary);
    background: var(--wma-primary-light);
    font-weight: 600;
}

/* ============================================
   Orders List
   ============================================ */
.wma-orders-list {
    min-height: 200px;
}

.wma-order-card {
    background: var(--wma-bg);
    border: 1px solid var(--wma-border-light);
    border-radius: var(--wma-radius-lg);
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: var(--wma-transition);
}

.wma-order-card:hover {
    box-shadow: var(--wma-shadow-md);
    border-color: var(--wma-border);
}

.wma-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.wma-order-id {
    font-weight: 700;
    font-size: 15px;
    color: var(--wma-text);
}

.wma-order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wma-status-pending-shopper { background: var(--wma-warning-light); color: var(--wma-warning); }
.wma-status-accepted { background: var(--wma-primary-light); color: var(--wma-primary); }
.wma-status-shopping { background: var(--wma-success-light); color: var(--wma-success); }
.wma-status-delivering { background: var(--wma-primary-light); color: var(--wma-primary); }
.wma-status-completed { background: var(--wma-success-light); color: var(--wma-success); }

.wma-order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--wma-text-light);
    margin-bottom: 12px;
}

.wma-order-time {
    color: var(--wma-text-lighter);
    font-size: 12px;
    font-style: italic;
}

.wma-order-total {
    font-weight: 700;
    font-size: 16px;
    color: var(--wma-text);
}

.wma-order-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--wma-border-light);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wma-order-chat-btn {
    background: var(--wma-primary);
    color: var(--wma-bg);
    text-decoration: none;
}

.wma-order-chat-btn:hover {
    opacity: 0.9;
    color: var(--wma-bg);
}

/* ============================================
   Login Required
   ============================================ */
.wma-login-required {
    text-align: center;
    padding: 60px 40px;
    background: var(--wma-bg);
    border-radius: var(--wma-radius-xl);
    width: 100%;
    max-width: 420px;
    margin: 40px auto;
    box-shadow: var(--wma-shadow-xl);
}

.wma-login-required p {
    color: var(--wma-text-light);
    margin-bottom: 24px;
    font-size: 16px;
}

.wma-error {
    color: var(--wma-danger);
    padding: 16px;
    background: var(--wma-danger-light);
    border-radius: var(--wma-radius-md);
    font-size: 14px;
}

/* ============================================
   Utility Classes
   ============================================ */
.wma-hidden {
    display: none !important;
}

.wma-location-hint {
    margin-top: 4px;
    color: var(--wma-success);
}

.wma-location-hint .dashicons {
    font-size: 14px;
    vertical-align: middle;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 640px) {
    .wma-list-builder,
    .wma-order-tracking {
        padding: 16px 12px 32px;
    }
    
    .wma-wallet-info {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .wma-add-item-form {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .wma-autocomplete-wrapper {
        grid-column: 1 / -1;
    }
    
    .wma-item-name,
    .wma-item-price {
        width: 100%;
    }
    
    .wma-add-item {
        grid-column: 1 / -1;
        width: 100%;
    }
    
    .wma-location-grid {
        grid-template-columns: 1fr;
    }
    
    .wma-order-actions {
        flex-direction: column;
    }
    
    .wma-order-actions .wma-btn {
        width: 100%;
    }
    
    /* Submit Order Button - Full Width on Mobile */
    .wma-submit-order {
        width: 100% !important;
        display: block !important;
    }
}


/* ============================================
   Additional Wallet Info Styles
   ============================================ */
.wma-wallet-info .wma-wallet-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wma-wallet-info .wma-wallet-link {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--wma-transition);
}

.wma-wallet-info .wma-wallet-link:hover {
    color: var(--wma-bg);
    text-decoration: underline;
}

.wma-balance small {
    font-size: 0.5em;
    font-weight: 500;
    opacity: 0.9;
}

/* ============================================
   Enhanced Add Item Form
   ============================================ */
.wma-add-item span {
    font-size: 18px;
    font-weight: 700;
}

/* ============================================
   Location Grid Enhancements
   ============================================ */
.wma-location-section .wma-field > label:first-of-type {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--wma-text);
    text-transform: none;
    letter-spacing: 0;
}

/* ============================================
   Empty State Styling
   ============================================ */
.wma-items-list:has(p) {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Loading Spinner
   ============================================ */
.wma-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--wma-text-lighter);
}

.wma-loading .wma-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--wma-border-light);
    border-top-color: var(--wma-primary);
    border-radius: 50%;
    animation: wma-spin 0.8s linear infinite;
    margin-bottom: 12px;
}

@keyframes wma-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Modal Styles (for deposit on list builder)
   ============================================ */
.wma-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.wma-modal-content {
    background: var(--wma-bg);
    border-radius: var(--wma-radius-lg);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--wma-shadow-xl);
}

.wma-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--wma-border-light);
}

.wma-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--wma-text);
}

.wma-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--wma-text-lighter);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.wma-modal-close:hover {
    color: var(--wma-text);
}

.wma-modal-body {
    padding: 24px;
}

/* Order Info Sections in Modals */
.wma-order-info-section {
    margin-bottom: 20px;
}

.wma-order-info-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--wma-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wma-order-info-section p {
    margin: 0;
    color: var(--wma-text-light);
    line-height: 1.6;
}

/* Voice Note Section in Order Details */
.wma-voice-note-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #a7f3d0;
    border-radius: var(--wma-radius-md);
    padding: 16px;
}

.wma-voice-note-section h4 {
    color: #065f46;
    margin-bottom: 8px;
}

.wma-voice-note-player {
    margin-top: 8px;
}

.wma-order-voice-note {
    width: 100%;
    max-width: 100%;
    min-height: 45px;
    height: auto;
    border-radius: 8px;
    background: #d1fae5;
}

.wma-order-voice-note::-webkit-media-controls-panel {
    background: #d1fae5;
}

.wma-order-voice-note::-webkit-media-controls-play-button,
.wma-order-voice-note::-webkit-media-controls-current-time-display,
.wma-order-voice-note::-webkit-media-controls-time-remaining-display {
    color: #065f46;
}

.wma-voice-note-fallback {
    text-align: center;
}

.wma-voice-note-fallback a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wma-form-group {
    margin-bottom: 20px;
}

.wma-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--wma-text);
    margin-bottom: 8px;
}

.wma-form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--wma-border);
    border-radius: var(--wma-radius-md);
    font-size: 15px;
    transition: var(--wma-transition);
    box-sizing: border-box;
    background: var(--wma-bg);
    color: var(--wma-text);
}

.wma-form-group input:focus {
    outline: none;
    border-color: var(--wma-primary);
    box-shadow: 0 0 0 3px var(--wma-primary-light);
}

.wma-form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--wma-text-light);
}

.wma-phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--wma-border);
    border-radius: var(--wma-radius-md);
    overflow: hidden;
    transition: var(--wma-transition);
    background: var(--wma-bg);
}

.wma-phone-input-wrapper:focus-within {
    border-color: var(--wma-primary);
    box-shadow: 0 0 0 3px var(--wma-primary-light);
}

.wma-phone-prefix {
    background: var(--wma-bg-secondary);
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--wma-text);
    border-right: 1px solid var(--wma-border);
    white-space: nowrap;
}

.wma-phone-input-wrapper input {
    border: none !important;
    box-shadow: none !important;
    flex: 1;
    padding: 12px 14px;
}

.wma-phone-input-wrapper input:focus {
    outline: none;
    box-shadow: none !important;
}

.wma-btn-block {
    width: 100%;
}

.wma-deposit-status,
.wma-deposit-success {
    text-align: center;
}

.wma-status-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.wma-status-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--wma-text);
    margin-bottom: 8px;
}

.wma-status-hint {
    font-size: 14px;
    color: var(--wma-text-light);
    margin-bottom: 16px;
}

.wma-payment-instructions {
    background: var(--wma-success-light);
    border: 1px solid var(--wma-success);
    border-radius: var(--wma-radius-md);
    padding: 14px 16px;
    margin-top: 16px;
    text-align: left;
}

.wma-payment-instructions p {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--wma-success);
}

.wma-payment-instructions ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.wma-payment-instructions li {
    font-size: 13px;
    color: var(--wma-success);
    margin-bottom: 4px;
}

.wma-payment-instructions li:last-child {
    margin-bottom: 0;
}

/* ============================================
   Responsive Improvements
   ============================================ */
@media (max-width: 480px) {
    .wma-wallet-info {
        padding: 16px;
    }
    
    .wma-balance {
        font-size: 1.5em;
    }
    
    .wma-items-container,
    .wma-location-section {
        padding: 16px;
    }
    
    .wma-totals {
        padding: 16px;
    }
    
    .wma-grand-total span:last-child {
        font-size: 18px;
    }
}


/* ============================================
   Price Comparison & Review Modal
   ============================================ */
.wma-price-comparison-table {
    background: var(--wma-bg);
    border-radius: var(--wma-radius-md);
    overflow: hidden;
    border: 1px solid var(--wma-border-light);
}

.wma-price-comparison-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 12px 16px;
    background: var(--wma-bg-secondary);
    font-weight: 600;
    font-size: 13px;
    color: var(--wma-text);
    border-bottom: 2px solid var(--wma-border);
}

.wma-price-comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--wma-border-light);
    align-items: center;
}

.wma-price-comparison-row:last-child {
    border-bottom: none;
}

.wma-item-col {
    font-size: 14px;
}

.wma-item-col strong {
    color: var(--wma-text);
    display: block;
    margin-bottom: 4px;
}

.wma-item-col small {
    color: var(--wma-text-light);
    font-size: 12px;
}

.wma-price-col {
    font-size: 14px;
    color: var(--wma-text);
    text-align: right;
}

.wma-diff-col {
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

.wma-price-increase {
    color: var(--wma-danger);
}

.wma-price-decrease {
    color: var(--wma-success);
}

.wma-price-same {
    color: var(--wma-text-light);
}

.wma-price-summary {
    background: var(--wma-bg-secondary);
    padding: 20px;
    border-radius: var(--wma-radius-md);
    margin-top: 20px;
}

.wma-price-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
    color: var(--wma-text);
}

.wma-price-summary-row:not(:last-child) {
    border-bottom: 1px solid var(--wma-border-light);
}

.wma-price-summary-total {
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid var(--wma-border) !important;
    font-size: 17px;
}

.wma-price-summary-note {
    margin-top: 16px;
    padding: 12px;
    background: var(--wma-bg);
    border-radius: var(--wma-radius-sm);
    font-size: 13px;
    color: var(--wma-text-light);
    border-left: 3px solid var(--wma-primary);
}

.wma-alert {
    padding: 16px;
    border-radius: var(--wma-radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.wma-alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.wma-alert-success {
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}

.wma-alert-info {
    background: #d1ecf1;
    border: 1px solid #17a2b8;
    color: #0c5460;
}

/* Mobile responsive for price comparison */
@media (max-width: 640px) {
    .wma-price-comparison-header,
    .wma-price-comparison-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .wma-price-comparison-header {
        display: none;
    }
    
    .wma-price-comparison-row {
        padding: 16px;
        background: var(--wma-bg);
        margin-bottom: 8px;
        border-radius: var(--wma-radius-sm);
        border: 1px solid var(--wma-border-light);
    }
    
    .wma-item-col,
    .wma-price-col,
    .wma-diff-col {
        text-align: left;
    }
    
    .wma-price-col::before,
    .wma-diff-col::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 8px;
        color: var(--wma-text-light);
    }
}


/* ============================================
   PENDING PRICE APPROVALS
   ============================================ */

.wma-price-approval-alert {
    animation: pulse-warning 2s ease-in-out infinite;
}

.wma-pending-approval-badge {
    animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

.wma-pending-approvals-list {
    max-height: 70vh;
    overflow-y: auto;
}

.wma-pending-approval-item {
    transition: all 0.3s ease;
}

.wma-pending-approval-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.wma-price-increase {
    color: var(--wma-danger);
}

.wma-price-decrease {
    color: var(--wma-success);
}

.wma-btn-large {
    font-size: 16px !important;
    padding: 14px 24px !important;
    font-weight: 600 !important;
}

.wma-btn-small {
    font-size: 13px !important;
    padding: 8px 16px !important;
}

/* ============================================
   Shopper Photo Display
   ============================================ */
.wma-shopper-info-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--wma-bg-light);
    border-radius: var(--wma-radius-md);
    margin-bottom: 20px;
}

.wma-shopper-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--wma-primary);
    flex-shrink: 0;
}

.wma-shopper-photo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--wma-primary);
    color: var(--wma-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    flex-shrink: 0;
}

.wma-shopper-details {
    flex: 1;
}

.wma-shopper-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--wma-text);
    margin: 0 0 4px 0;
}

.wma-shopper-label {
    font-size: 13px;
    color: var(--wma-text-light);
    margin: 0;
}

/* Inline shopper photo in order list */
.wma-order-shopper-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--wma-border-light);
}

.wma-shopper-photo-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--wma-primary);
}

.wma-shopper-photo-placeholder-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--wma-primary);
    color: var(--wma-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.wma-shopper-name-small {
    font-size: 13px;
    color: var(--wma-text);
    font-weight: 500;
}

/* ============================================
   Rating System Styles
   ============================================ */

/* Star Rating Display */
.wma-star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 16px;
    line-height: 1;
}

.wma-star-rating.wma-small {
    font-size: 14px;
}

.wma-star-rating.wma-large {
    font-size: 20px;
}

.wma-star {
    color: #e5e7eb;
    transition: color 0.2s ease;
}

.wma-star.wma-filled {
    color: #fbbf24;
}

.wma-star.wma-half {
    background: linear-gradient(90deg, #fbbf24 50%, #e5e7eb 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Interactive Star Rating (for rating input) */
.wma-rating-input {
    display: flex;
    gap: 4px;
    margin: 12px 0;
}

.wma-rating-input .wma-star {
    cursor: pointer;
    font-size: 24px;
    color: #e5e7eb;
    transition: all 0.2s ease;
    user-select: none;
}

.wma-rating-input .wma-star:hover,
.wma-rating-input .wma-star.wma-hover {
    color: #fbbf24;
    transform: scale(1.1);
}

.wma-rating-input .wma-star.wma-selected {
    color: #fbbf24;
}

/* Rating Summary */
.wma-rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--wma-text-light);
}

.wma-rating-summary .wma-rating-number {
    font-weight: 600;
    color: var(--wma-text);
}

.wma-rating-summary .wma-rating-count {
    color: var(--wma-text-light);
}

/* Rating Modal */
.wma-rating-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.wma-rating-modal-content {
    background: var(--wma-bg);
    border-radius: var(--wma-radius-lg);
    padding: 32px 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--wma-shadow-xl);
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.wma-rating-modal h3 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 600;
    color: var(--wma-text);
}

.wma-rating-modal .wma-shopper-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--wma-bg-secondary);
    border-radius: var(--wma-radius-md);
    text-align: left;
}

.wma-rating-modal .wma-shopper-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--wma-border-light);
    flex-shrink: 0;
}

.wma-rating-modal .wma-shopper-name {
    font-weight: 600;
    color: var(--wma-text);
    margin-bottom: 4px;
}

.wma-rating-modal .wma-shopper-rating {
    font-size: 12px;
    color: var(--wma-text-light);
}

.wma-rating-modal textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--wma-border-light);
    border-radius: var(--wma-radius-md);
    font-family: var(--wma-font-text);
    font-size: 14px;
    resize: vertical;
    margin-top: 16px;
    box-sizing: border-box;
}

.wma-rating-modal textarea:focus {
    outline: none;
    border-color: var(--wma-primary);
    box-shadow: 0 0 0 3px rgba(var(--wma-primary-rgb), 0.1);
}

.wma-rating-modal .wma-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

/* Prevent body scroll when modal is open */
body.wma-modal-open {
    overflow: hidden;
}

/* Rating in Order Cards */
.wma-order-card .wma-shopper-rating {
    margin-top: 8px;
}

.wma-order-card .wma-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--wma-bg-secondary);
    padding: 4px 8px;
    border-radius: var(--wma-radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.wma-order-card .wma-rating-badge .wma-star {
    font-size: 12px;
}

/* Rate Button */
.wma-rate-button {
    background: var(--wma-secondary) !important;
    color: var(--wma-bg) !important;
    border: none;
    padding: 8px 16px;
    border-radius: var(--wma-radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wma-rate-button:hover {
    background: var(--wma-secondary-dark) !important;
    transform: translateY(-1px);
}

.wma-rate-button:disabled {
    background: var(--wma-border-light) !important;
    color: var(--wma-text-light) !important;
    cursor: not-allowed;
    transform: none;
}

.wma-rated-badge {
    background: var(--wma-success-light) !important;
    color: var(--wma-success) !important;
    padding: 4px 12px;
    border-radius: var(--wma-radius-md);
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .wma-rating-modal {
        padding: 16px;
    }
    
    .wma-rating-modal-content {
        padding: 24px 20px;
    }
    
    .wma-rating-input .wma-star {
        font-size: 20px;
    }
    
    .wma-rating-modal .wma-modal-actions {
        flex-direction: column;
    }
}


/* ============================================
   Request Type Toggle (Market List vs Errand)
   ============================================ */
.wma-request-type-toggle {
    background: var(--wma-bg);
    border-radius: var(--wma-radius-lg);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--wma-shadow-sm);
    border: 1px solid var(--wma-border-light);
}

.wma-toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--wma-text);
    margin-bottom: 12px;
    text-align: center;
}

.wma-toggle-buttons {
    display: flex;
    gap: 8px;
    background: var(--wma-bg-secondary);
    border-radius: var(--wma-radius-md);
    padding: 4px;
}

.wma-toggle-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: var(--wma-radius-md);
    cursor: pointer;
    transition: var(--wma-transition);
    color: var(--wma-text-light);
}

.wma-toggle-btn:hover {
    background: var(--wma-bg);
    color: var(--wma-text);
}

.wma-toggle-btn.active {
    background: var(--wma-primary);
    color: var(--wma-bg);
    box-shadow: var(--wma-shadow-sm);
}

.wma-toggle-icon {
    font-size: 24px;
    line-height: 1;
}

.wma-toggle-text {
    font-size: 13px;
    font-weight: 600;
}

/* ============================================
   Errand Section
   ============================================ */
.wma-errand-section {
    background: var(--wma-bg);
    border-radius: var(--wma-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--wma-shadow-sm);
    border: 1px solid var(--wma-border-light);
}

.wma-errand-section h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--wma-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wma-errand-section h3::before {
    content: "📋";
}

.wma-errand-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wma-errand-form .wma-field {
    margin-bottom: 0;
}

.wma-errand-form .wma-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--wma-text);
}

.wma-errand-form .wma-field input,
.wma-errand-form .wma-field select,
.wma-errand-form .wma-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--wma-border);
    border-radius: var(--wma-radius-md);
    font-size: 14px;
    background: var(--wma-bg);
    color: var(--wma-text);
    transition: var(--wma-transition);
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.wma-errand-form .wma-field input:focus,
.wma-errand-form .wma-field select:focus,
.wma-errand-form .wma-field textarea:focus {
    border-color: var(--wma-primary);
    box-shadow: 0 0 0 3px var(--wma-primary-light);
}

.wma-errand-form .wma-field input::placeholder {
    color: var(--wma-text-lighter);
}

.wma-errand-form .wma-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.wma-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 640px) {
    .wma-field-row {
        grid-template-columns: 1fr;
    }
}

/* Errand Title Input */
.wma-errand-title {
    font-size: 15px !important;
}

/* Offer Amount Input */
.wma-errand-offer {
    font-weight: 600;
}

/* Due Date Input */
.wma-errand-due-date {
    cursor: pointer;
}

/* Subcategory Field Animation */
.wma-subcategory-field {
    transition: all 0.3s ease;
}

/* ============================================
   Errand Badge (for order cards)
   ============================================ */
.wma-errand-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wma-errand-badge::before {
    content: "📋";
    font-size: 10px;
}

/* ============================================
   Errand Order Card Styles
   ============================================ */
.wma-order-card.wma-errand-card {
    border-left: 4px solid #f59e0b;
}

.wma-order-card.wma-errand-card .wma-order-header {
    position: relative;
}

.wma-errand-title-display {
    font-size: 15px;
    font-weight: 600;
    color: var(--wma-text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.wma-errand-category-display {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--wma-bg-secondary);
    color: var(--wma-text-light);
    font-size: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.wma-errand-offer-display {
    font-size: 20px;
    font-weight: 700;
    color: var(--wma-primary);
}

.wma-errand-due-date-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--wma-text-light);
    margin-top: 8px;
}

.wma-errand-due-date-display.wma-urgent {
    color: var(--wma-danger);
    font-weight: 600;
}

/* ============================================
   Status Badge for Errands
   ============================================ */
.wma-status-in_progress {
    background: var(--wma-primary-light);
    color: var(--wma-primary);
}

/* ============================================
   Errand Summary in Totals
   ============================================ */
.wma-totals.wma-errand-totals .wma-total-row:first-child span:first-child {
    color: var(--wma-text);
}

/* ============================================
   Responsive Adjustments for Errand Form
   ============================================ */
@media (max-width: 640px) {
    .wma-toggle-buttons {
        flex-direction: row;
    }
    
    .wma-toggle-btn {
        padding: 10px 12px;
    }
    
    .wma-toggle-icon {
        font-size: 20px;
    }
    
    .wma-toggle-text {
        font-size: 12px;
    }
    
    .wma-errand-form .wma-field-row {
        grid-template-columns: 1fr;
    }
}
