/* Waita Market Add-on - Shopper Dashboard Styles - Elementor Canvas Full Width */

/* Elementor Canvas Full Width Base Styles */
body.elementor-template-canvas.wma-full-width {
    margin: 0 !important;
    padding: 0 !important;
}

.elementor-section-full_width {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    min-height: 100vh;
    background: var(--wma-bg-secondary);
}

.elementor-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wma-shopper-dashboard {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: var(--wma-font-text);
    min-height: 100vh;
    box-sizing: border-box;
}

.wma-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--wma-primary) 0%, color-mix(in srgb, var(--wma-primary) 90%, black) 100%);
    color: var(--wma-bg);
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--wma-shadow-md);
    position: relative;
    overflow: hidden;
}

.wma-dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.wma-stats {
    display: flex;
    gap: 20px;
    color: white !important;
    position: relative;
    z-index: 1;
}

.wma-stat {
    text-align: left;
    color: white !important;
    min-width: 0;
    position: relative;
}

.wma-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
}

.wma-stat-label {
    display: block;
    font-size: 10px;
    opacity: 0.8;
    margin-bottom: 2px;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.wma-stat-value {
    font-size: 1.25em;
    font-weight: 600;
    color: white !important;
    line-height: 1.2;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.wma-stat-value small {
    font-size: 0.65em;
    opacity: 0.8;
    font-weight: 400;
    margin-left: 2px;
}

.wma-shopper-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.wma-online-toggle {
    display: flex;
    align-items: center;
}

.wma-online-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: white !important;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    user-select: none;
}

.wma-online-checkbox {
    width: 44px;
    height: 24px;
    appearance: none;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wma-online-checkbox:checked {
    background: var(--wma-success) !important;
    border-color: var(--wma-success);
}

.wma-online-checkbox::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--wma-bg) !important;
    border-radius: 50%;
    top: 1px;
    left: 1px;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.wma-online-checkbox:checked::before {
    transform: translateX(20px);
}


/* Available Orders */
.wma-available-order {
    background: var(--wma-bg);
    border: 1px solid var(--wma-border-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--wma-shadow-sm);
}

.wma-order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    font-size: 14px;
    color: var(--wma-text-light);
}

.wma-order-meta i {
    margin-right: 5px;
}

.wma-order-time {
    color: var(--wma-text-light);
    font-size: 13px;
    font-style: italic;
}

.wma-items-preview {
    background: var(--wma-bg-secondary);
    padding: 10px 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.wma-items-preview ul {
    margin: 0;
    padding-left: 20px;
}

.wma-accept-btn {
    background: var(--wma-success);
    color: var(--wma-bg);
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
}

.wma-accept-btn:hover {
    opacity: 0.9;
}

/* Active Order */
.wma-active-order {
    background: var(--wma-bg);
    border: 2px solid var(--wma-primary);
    border-radius: 12px;
    padding: 20px;
}

.wma-order-progress {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    position: relative;
}

.wma-order-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--wma-border-light);
    z-index: 0;
}

.wma-progress-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.wma-progress-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--wma-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 12px;
}

.wma-progress-step.active .wma-progress-dot {
    background: var(--wma-primary);
    color: var(--wma-bg);
}

.wma-progress-step.completed .wma-progress-dot {
    background: var(--wma-success);
    color: var(--wma-bg);
}

.wma-progress-label {
    font-size: 12px;
    color: var(--wma-text-light);
}

/* Item Price Input */
.wma-item-input {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--wma-bg-secondary);
    border-radius: 8px;
    margin-bottom: 10px;
}

.wma-item-input .wma-item-info {
    flex: 1;
}

.wma-item-input input {
    width: 100px;
    padding: 8px;
    border: 1px solid var(--wma-border);
    border-radius: 6px;
    text-align: right;
    background: var(--wma-bg);
    color: var(--wma-text);
}

.wma-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.wma-action-buttons .wma-btn {
    flex: 1;
    padding: 12px;
}

.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);
}

.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);
}

/* Shopper Registration */
.wma-shopper-registration {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 30px;
    background: var(--wma-bg);
    border-radius: 16px;
    box-shadow: var(--wma-shadow-xl);
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wma-shopper-registration h2 {
    margin-bottom: 10px;
    color: var(--wma-text);
}

.wma-shopper-registration p {
    color: var(--wma-text-light);
    margin-bottom: 25px;
}

.wma-registration-form .wma-field {
    margin-bottom: 20px;
}

/* Verification States */
.wma-verification-pending,
.wma-verification-rejected {
    text-align: center;
    padding: 60px 40px;
    background: var(--wma-bg);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--wma-shadow-xl);
}

.wma-verification-pending {
    border: 2px solid var(--wma-warning);
}

.wma-verification-rejected {
    border: 2px solid var(--wma-danger);
}

/* Utility Classes */
.wma-hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wma-shopper-dashboard {
        padding: 15px;
        min-height: calc(100vh - 56px); /* Smaller header on mobile */
    }
    
    .wma-dashboard-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 14px 16px;
    }
    
    .wma-stats {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .wma-stat {
        text-align: center;
        min-width: 70px;
    }
    
    .wma-stat:not(:last-child)::after {
        display: none;
    }
    
    .wma-stat-value {
        font-size: 1.2em;
    }
    
    .wma-shopper-controls {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .wma-location-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    .wma-action-buttons {
        flex-direction: column;
    }
    
    .wma-shopper-registration,
    .wma-verification-pending,
    .wma-verification-rejected {
        padding: 30px 15px;
        margin: 15px;
        min-height: calc(100vh - 86px); /* Account for header + margins */
    }
}

/* Update Prices Modal */
.wma-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.wma-modal-content {
    background-color: var(--wma-bg);
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--wma-shadow-xl);
}

.wma-modal-header {
    background: var(--wma-bg-secondary);
    padding: 15px 20px;
    border-bottom: 1px solid var(--wma-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wma-modal-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--wma-text);
}

.wma-modal-close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: var(--wma-text-lighter);
    line-height: 1;
}

.wma-modal-close:hover {
    color: var(--wma-text);
}

.wma-modal-body {
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

.wma-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--wma-border-light);
    border-radius: 6px;
    margin-bottom: 10px;
    background: var(--wma-bg-secondary);
}

.wma-item-info {
    flex: 1;
}

.wma-item-info strong {
    display: block;
    margin-bottom: 5px;
    color: var(--wma-text);
}

.wma-item-info small {
    color: var(--wma-text-light);
}

.wma-price-input {
    text-align: right;
}

.wma-price-input label {
    display: block;
    font-size: 12px;
    color: var(--wma-text-light);
    margin-bottom: 5px;
}

.wma-actual-price {
    width: 100px;
    padding: 8px;
    border: 1px solid var(--wma-border);
    border-radius: 4px;
    text-align: right;
    font-size: 14px;
    background: var(--wma-bg);
    color: var(--wma-text);
}

.wma-modal-footer {
    background: var(--wma-bg-secondary);
    padding: 15px 20px;
    border-top: 1px solid var(--wma-border-light);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.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);
}

/* Order Details Modal */
.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, 8px);
    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-items-table {
    background: var(--wma-bg-secondary);
    border-radius: 6px;
    padding: 10px;
}

.wma-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--wma-border-light);
}

.wma-item-row:last-child {
    border-bottom: none;
}

.wma-item-name {
    flex: 1;
    font-weight: 500;
    color: var(--wma-text);
}

.wma-item-details {
    color: var(--wma-text-light);
    font-size: 13px;
    margin-right: 15px;
}

.wma-item-total {
    font-weight: 600;
    color: var(--wma-success);
}

.wma-earnings-section {
    background: var(--wma-success-light);
    border: 2px solid var(--wma-success);
    border-radius: 8px;
    padding: 15px;
}

.wma-earnings-breakdown {
    margin-top: 10px;
}

.wma-earnings-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--wma-success) 10%, transparent);
}

.wma-earnings-row:last-child {
    border-bottom: none;
}

.wma-earnings-row.wma-earnings-total {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid var(--wma-success);
    font-size: 1.1em;
}

.wma-earning-amount {
    color: var(--wma-success);
    font-weight: 700;
    font-size: 1.2em;
}

.wma-negative {
    color: var(--wma-danger);
}

.wma-earnings-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--wma-success);
    font-style: italic;
}

.wma-modal-reject-order {
    background: var(--wma-danger);
    color: var(--wma-bg);
    border-color: var(--wma-danger);
}

.wma-modal-reject-order:hover {
    background: color-mix(in srgb, var(--wma-danger) 85%, black);
    border-color: color-mix(in srgb, var(--wma-danger) 85%, black);
}

.wma-modal-accept-order {
    background: var(--wma-primary);
    color: var(--wma-bg);
    border-color: var(--wma-primary);
}

.wma-modal-accept-order:hover {
    background: var(--wma-primary-dark);
    border-color: var(--wma-primary-dark);
    opacity: 0.9;
}

/* Disabled / At-capacity styling */
.wma-btn[disabled], .wma-btn-disabled, .wma-modal-accept-order[disabled] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    filter: grayscale(50%);
}

/* Optional: visually hide the accept button if you want to fully remove it instead of greying out
.wma-modal-accept-order[disabled] {
    display: none !important;
}
*/

.wma-totals-section {
    background: var(--wma-primary-light);
    border: 2px solid var(--wma-primary);
    border-radius: 8px;
    padding: 15px;
}

/* Responsive modal */
@media (max-width: 768px) {
    .wma-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .wma-price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .wma-price-input {
        text-align: left;
        width: 100%;
    }
    
    .wma-actual-price {
        width: 100%;
    }
    
    .wma-item-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .wma-item-details {
        margin-right: 0;
    }
    
    .wma-modal-footer {
        flex-direction: column;
    }
    
    .wma-modal-footer .wma-btn {
        width: 100%;
    }
}


/* ============================================
   PRICE APPROVAL STATUS INDICATORS
   ============================================ */

.wma-modal-large {
    max-width: 800px !important;
}

.wma-price-approval-info {
    background: linear-gradient(135deg, #f0fdf4 0%, #dbeafe 100%);
    border: 1px solid #d1fae5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.wma-prices-grid {
    display: grid;
    gap: 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 4px;
}

.wma-price-item-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wma-price-item-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Approval status colors for cards */
.wma-price-item-card.wma-approval-pending {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.wma-price-item-card.wma-approval-approved {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
}

.wma-price-item-card.wma-approval-rejected {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.wma-price-item-card.wma-approval-not_required {
    border-color: #e5e7eb;
    background: #fff;
}

.wma-price-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.wma-item-name-section h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #0A4834;
}

.wma-item-quantity {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.wma-price-comparison-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.wma-price-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.wma-price-box label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 600;
}

.wma-price-value {
    font-size: 20px;
    font-weight: 700;
    color: #0A4834;
}

.wma-price-value span {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-left: 4px;
}

.wma-price-arrow {
    font-size: 24px;
    color: #F7941D;
    font-weight: bold;
}

.wma-price-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.wma-actual-price-input {
    width: 100%;
    padding: 12px 50px 12px 12px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #0A4834;
    text-align: center;
    transition: all 0.2s ease;
}

.wma-actual-price-input:focus {
    outline: none;
    border-color: #F7941D;
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.1);
}

.wma-currency-label {
    position: absolute;
    right: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    pointer-events: none;
}

.wma-price-difference {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.wma-diff-increase {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.wma-diff-decrease {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.wma-diff-icon {
    font-size: 16px;
    font-weight: bold;
}

.wma-update-single-price {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wma-btn-icon {
    font-size: 16px;
}

/* ============================================
   MOBILE RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .wma-modal-large {
        max-width: 100% !important;
        margin: 0 !important;
        height: 100vh !important;
        border-radius: 0 !important;
    }
    
    .wma-modal-large .wma-modal-content {
        max-height: 100vh !important;
        border-radius: 0 !important;
        display: flex;
        flex-direction: column;
    }
    
    .wma-modal-header {
        padding: 16px !important;
        border-bottom: 1px solid #e5e7eb;
        flex-shrink: 0;
    }
    
    .wma-modal-header h3 {
        font-size: 18px !important;
    }
    
    .wma-modal-header p {
        font-size: 12px !important;
    }
    
    .wma-modal-body {
        flex: 1;
        overflow-y: auto;
        padding: 16px !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .wma-modal-footer {
        padding: 12px 16px !important;
        border-top: 1px solid #e5e7eb;
        flex-shrink: 0;
    }
    
    .wma-price-approval-info {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .wma-price-approval-info > div {
        flex-direction: column;
        gap: 8px;
    }
    
    .wma-price-approval-info strong {
        font-size: 13px !important;
    }
    
    .wma-price-approval-info span {
        font-size: 12px !important;
    }
    
    .wma-prices-grid {
        gap: 16px;
        max-height: none;
        padding: 0;
    }
    
    .wma-price-item-card {
        padding: 16px;
        border-radius: 8px;
    }
    
    .wma-price-item-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .wma-item-name-section {
        width: 100%;
    }
    
    .wma-item-name-section h4 {
        font-size: 15px;
    }
    
    .wma-item-quantity {
        font-size: 12px;
    }
    
    .wma-approval-badge {
        align-self: flex-start;
    }
    
    .wma-price-comparison-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .wma-price-arrow {
        display: none;
    }
    
    .wma-price-box {
        padding: 12px;
    }
    
    .wma-price-box label {
        font-size: 10px;
        margin-bottom: 6px;
    }
    
    .wma-price-value {
        font-size: 18px;
    }
    
    .wma-price-value span {
        font-size: 11px;
    }
    
    .wma-actual-price-input {
        padding: 10px 45px 10px 10px;
        font-size: 16px;
    }
    
    .wma-currency-label {
        right: 10px;
        font-size: 11px;
    }
    
    .wma-price-difference {
        padding: 6px 10px;
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .wma-diff-icon {
        font-size: 14px;
    }
    
    .wma-update-single-price {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .wma-btn-icon {
        font-size: 14px;
    }
    
    .wma-modal-footer .wma-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .wma-modal-header h3 {
        font-size: 16px !important;
    }
    
    .wma-modal-body {
        padding: 12px !important;
    }
    
    .wma-price-item-card {
        padding: 12px;
    }
    
    .wma-item-name-section h4 {
        font-size: 14px;
    }
    
    .wma-price-value {
        font-size: 16px;
    }
    
    .wma-actual-price-input {
        font-size: 15px;
        padding: 10px 40px 10px 10px;
    }
    
    .wma-update-single-price {
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .wma-modal-large .wma-modal-content {
        max-height: 100vh;
    }
    
    .wma-modal-body {
        max-height: calc(100vh - 140px);
    }
    
    .wma-prices-grid {
        max-height: none;
    }
}

/* Tablet portrait */
@media (min-width: 769px) and (max-width: 1024px) {
    .wma-modal-large {
        max-width: 90% !important;
    }
    
    .wma-price-comparison-row {
        grid-template-columns: 1fr auto 1fr;
        gap: 12px;
    }
    
    .wma-price-arrow {
        display: block;
        font-size: 20px;
    }
}

.wma-approval-badge {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.wma-price-input {
    margin-top: 12px;
}

.wma-price-input label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.wma-price-input input[type="number"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.wma-price-input input[type="number"]:focus {
    outline: none;
    border-color: var(--wma-primary);
    box-shadow: 0 0 0 3px rgba(10, 72, 52, 0.1);
}

/* Pending approval animation */
.wma-approval-pending .wma-approval-badge {
    animation: pulse-pending 2s ease-in-out infinite;
}

@keyframes pulse-pending {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}


/* ============================================
   CUSTOMER CONTACT INFO
   ============================================ */

.wma-customer-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dbeafe 100%);
    border: 1px solid #d1fae5;
    border-radius: 8px;
    margin: 12px 0;
}

.wma-customer-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--wma-text);
}

.wma-customer-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    color: var(--wma-primary);
    text-decoration: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
    box-shadow: none;
}

.wma-customer-phone-link:hover {
    background: transparent;
    text-decoration: underline;
    color: var(--wma-primary-dark);
    transform: none;
    box-shadow: none;
}

.wma-customer-phone-link:active {
    transform: none;
    box-shadow: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wma-customer-contact {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 12px;
        flex-wrap: nowrap;
    }
    
    .wma-customer-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 100px);
    }
    
    .wma-customer-phone-link {
        width: auto;
        justify-content: flex-start;
        padding: 0;
    }
}

/* ============================================
   LOCATION UPDATE MODAL - MODERN DESIGN
   ============================================ */

.wma-location-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.wma-location-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.wma-location-modal-content {
    background: var(--wma-bg);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wma-location-modal-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--wma-border-light);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, var(--wma-primary) 0%, color-mix(in srgb, var(--wma-primary) 85%, black) 100%);
    color: var(--wma-bg);
}

.wma-modal-title-section {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.wma-modal-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wma-modal-icon svg {
    color: var(--wma-bg);
}

.wma-location-modal-header h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--wma-bg);
    font-family: var(--wma-font-primary);
}

.wma-location-modal-header p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.wma-location-modal-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: var(--wma-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wma-location-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.wma-location-modal-close svg {
    width: 20px;
    height: 20px;
}

.wma-location-modal-body {
    padding: 24px;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

/* Current Location Status Card */
.wma-current-location-card {
    background: var(--wma-bg-secondary);
    border: 2px solid var(--wma-border-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.wma-location-status-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.wma-location-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wma-status-success {
    background: linear-gradient(135deg, var(--wma-success) 0%, color-mix(in srgb, var(--wma-success) 85%, black) 100%);
    color: var(--wma-bg);
}

.wma-status-warning {
    background: linear-gradient(135deg, var(--wma-warning) 0%, color-mix(in srgb, var(--wma-warning) 85%, black) 100%);
    color: var(--wma-bg);
}

.wma-location-info {
    flex: 1;
}

.wma-location-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--wma-text);
    font-family: var(--wma-font-primary);
}

.wma-location-info p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--wma-text-light);
    line-height: 1.5;
}

.wma-location-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.wma-city-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--wma-primary);
    font-family: var(--wma-font-primary);
}

.wma-area-name {
    font-size: 14px;
    color: var(--wma-text-light);
    font-weight: 500;
}

.wma-last-updated {
    font-size: 12px;
    color: var(--wma-text-lighter);
    font-style: italic;
}

/* Location Update Section */
.wma-location-update-section {
    margin-top: 8px;
}

.wma-section-title {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--wma-text);
    font-family: var(--wma-font-primary);
}

.wma-location-method-card {
    background: var(--wma-bg);
    border: 2px solid var(--wma-border-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.wma-location-method-card:hover {
    border-color: var(--wma-primary);
    box-shadow: 0 4px 12px rgba(10, 72, 52, 0.1);
}

.wma-method-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.wma-method-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--wma-secondary) 0%, color-mix(in srgb, var(--wma-secondary) 85%, black) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--wma-bg);
}

.wma-method-info {
    flex: 1;
}

.wma-method-info h5 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--wma-text);
    font-family: var(--wma-font-primary);
}

.wma-method-info p {
    margin: 0;
    font-size: 14px;
    color: var(--wma-text-light);
    line-height: 1.4;
}

/* Manual Location Form */
.wma-manual-location-form {
    margin-top: 8px;
}

.wma-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.wma-form-group {
    display: flex;
    flex-direction: column;
}

.wma-form-group label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--wma-text);
    font-family: var(--wma-font-primary);
}

.wma-select-wrapper {
    position: relative;
}

.wma-select-wrapper select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid var(--wma-border);
    border-radius: 8px;
    background: var(--wma-bg);
    color: var(--wma-text);
    font-size: 14px;
    font-family: var(--wma-font-text);
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wma-select-wrapper select:focus {
    outline: none;
    border-color: var(--wma-primary);
    box-shadow: 0 0 0 3px rgba(10, 72, 52, 0.1);
}

.wma-select-wrapper select:disabled {
    background: var(--wma-bg-secondary);
    color: var(--wma-text-lighter);
    cursor: not-allowed;
}

.wma-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wma-text-light);
    pointer-events: none;
}

/* Location Divider */
.wma-location-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    text-align: center;
}

.wma-location-divider::before,
.wma-location-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--wma-border-light);
}

.wma-location-divider span {
    padding: 0 16px;
    font-size: 14px;
    color: var(--wma-text-light);
    font-weight: 500;
    background: var(--wma-bg);
}

/* Loading State */
.wma-location-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    z-index: 10;
}

.wma-loading-content {
    text-align: center;
    padding: 40px;
}

.wma-loading-content h4 {
    margin: 16px 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--wma-text);
    font-family: var(--wma-font-primary);
}

.wma-loading-content p {
    margin: 0;
    font-size: 14px;
    color: var(--wma-text-light);
}

.wma-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--wma-border-light);
    border-top: 4px solid var(--wma-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Styles for Location Modal */
.wma-detect-location-btn,
.wma-set-manual-location-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--wma-font-text);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.wma-detect-location-btn {
    background: linear-gradient(135deg, var(--wma-primary) 0%, color-mix(in srgb, var(--wma-primary) 85%, black) 100%);
    color: var(--wma-bg);
    width: 100%;
}

.wma-detect-location-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 72, 52, 0.3);
}

.wma-set-manual-location-btn {
    background: var(--wma-bg);
    color: var(--wma-primary);
    border-color: var(--wma-primary);
    width: 100%;
}

.wma-set-manual-location-btn:hover {
    background: var(--wma-primary);
    color: var(--wma-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 72, 52, 0.2);
}

.wma-set-manual-location-btn:disabled {
    background: var(--wma-bg-secondary);
    color: var(--wma-text-lighter);
    border-color: var(--wma-border-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Update Location Button in Header */
.wma-location-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    background: transparent !important;
    color: var(--wma-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.wma-location-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: var(--wma-bg) !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.wma-location-btn svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
}

/* Override any conflicting button styles */
.wma-shopper-controls .wma-location-btn {
    margin: 0 !important;
    min-width: auto !important;
    white-space: nowrap !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wma-location-modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .wma-location-modal-content {
        max-width: 100%;
        max-height: calc(100vh - 40px);
        border-radius: 12px;
    }
    
    .wma-location-modal-header {
        padding: 20px 16px 16px;
    }
    
    .wma-modal-title-section {
        gap: 12px;
    }
    
    .wma-modal-icon {
        width: 40px;
        height: 40px;
    }
    
    .wma-location-modal-header h3 {
        font-size: 18px;
    }
    
    .wma-location-modal-header p {
        font-size: 13px;
    }
    
    .wma-location-modal-close {
        width: 36px;
        height: 36px;
    }
    
    .wma-location-modal-body {
        padding: 16px;
        max-height: calc(100vh - 120px);
    }
    
    .wma-current-location-card {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .wma-location-status-header {
        gap: 12px;
    }
    
    .wma-location-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .wma-location-info h4 {
        font-size: 15px;
    }
    
    .wma-city-name {
        font-size: 16px;
    }
    
    .wma-location-method-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .wma-method-header {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .wma-method-icon {
        width: 36px;
        height: 36px;
    }
    
    .wma-method-info h5 {
        font-size: 15px;
    }
    
    .wma-method-info p {
        font-size: 13px;
    }
    
    .wma-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .wma-select-wrapper select {
        padding: 10px 36px 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .wma-detect-location-btn,
    .wma-set-manual-location-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .wma-loading-content {
        padding: 30px 20px;
    }
    
    .wma-loading-content h4 {
        font-size: 16px;
    }
    
    .wma-loading-content p {
        font-size: 13px;
    }
    
    /* Dashboard header adjustments for mobile */
    .wma-dashboard-header {
        flex-direction: column;
        gap: 14px;
        text-align: center;
        padding: 14px 16px;
    }
    
    .wma-stats {
        justify-content: center;
        gap: 18px;
        flex-wrap: wrap;
    }
    
    .wma-stat {
        min-width: 65px;
        text-align: center;
    }
    
    .wma-stat:not(:last-child)::after {
        display: none;
    }
    
    .wma-stat-value {
        font-size: 1.1em;
    }
    
    .wma-shopper-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .wma-online-toggle {
        order: 1;
    }
    
    .wma-location-btn {
        order: 2;
        padding: 10px 14px !important;
        font-size: 13px !important;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .wma-location-modal-header {
        padding: 16px 12px 12px;
    }
    
    .wma-location-modal-body {
        padding: 12px;
    }
    
    .wma-current-location-card {
        padding: 12px;
    }
    
    .wma-location-method-card {
        padding: 12px;
    }
    
    .wma-modal-title-section {
        gap: 10px;
    }
    
    .wma-modal-icon {
        width: 36px;
        height: 36px;
    }
    
    .wma-location-modal-header h3 {
        font-size: 16px;
    }
    
    .wma-location-modal-header p {
        font-size: 12px;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .wma-location-modal {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .wma-location-loading {
        background: rgba(0, 0, 0, 0.95);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wma-location-method-card {
        border-width: 3px;
    }
    
    .wma-select-wrapper select {
        border-width: 3px;
    }
    
    .wma-detect-location-btn,
    .wma-set-manual-location-btn {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .wma-location-modal-content {
        animation: none;
    }
    
    .wma-spinner {
        animation: none;
        border-top-color: transparent;
    }
    
    .wma-detect-location-btn:hover,
    .wma-set-manual-location-btn:hover,
    .wma-location-btn:hover {
        transform: none;
    }
    
    .wma-location-method-card {
        transition: none;
    }
}
/* Success Animation for Location Update */
.wma-location-success-animation {
    animation: locationUpdateSuccess 0.6s ease-out;
}

@keyframes locationUpdateSuccess {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Improved location status transitions */
.wma-current-location-card {
    transition: all 0.3s ease;
}

.wma-location-status.wma-location-set {
    border-left: 4px solid var(--wma-success);
}

.wma-location-status.wma-location-not-set {
    border-left: 4px solid var(--wma-warning);
}
/* ============================================
   Shopper Ratings View Styles
   ============================================ */

/* Ratings Overview Cards */
.wma-ratings-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.wma-rating-stat-card {
    background: var(--wma-bg);
    border-radius: var(--wma-radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--wma-shadow-md);
    border: 1px solid var(--wma-border-light);
}

.wma-rating-stat-card.wma-primary {
    background: var(--wma-primary);
    color: var(--wma-bg);
    border-color: var(--wma-primary);
}

.wma-rating-stat-card .wma-stat-value {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wma-rating-stat-card .wma-stat-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

.wma-rating-stat-card .wma-stat-subtitle {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 4px;
}

/* Rating Distribution Chart */
.wma-rating-distribution {
    background: var(--wma-bg);
    border-radius: var(--wma-radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--wma-shadow-md);
    border: 1px solid var(--wma-border-light);
}

.wma-rating-distribution h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--wma-text);
}

.wma-distribution-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.wma-distribution-bar:last-child {
    margin-bottom: 0;
}

.wma-distribution-label {
    min-width: 60px;
    font-size: 14px;
    font-weight: 500;
    color: var(--wma-text);
}

.wma-distribution-progress {
    flex: 1;
    height: 20px;
    background: var(--wma-bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.wma-distribution-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.wma-distribution-count {
    min-width: 40px;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    color: var(--wma-text-light);
}

/* Recent Reviews List */
.wma-recent-reviews {
    background: var(--wma-bg);
    border-radius: var(--wma-radius-lg);
    padding: 20px;
    box-shadow: var(--wma-shadow-md);
    border: 1px solid var(--wma-border-light);
}

.wma-recent-reviews h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--wma-text);
}

.wma-review-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--wma-border-light);
}

.wma-review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wma-review-item:first-child {
    padding-top: 0;
}

.wma-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.wma-review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wma-review-stars {
    color: #fbbf24;
    font-size: 16px;
}

.wma-review-date {
    font-size: 12px;
    color: var(--wma-text-light);
}

.wma-review-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--wma-text);
    margin-bottom: 8px;
}

.wma-review-customer {
    font-size: 12px;
    color: var(--wma-text-light);
    font-style: italic;
}

.wma-review-order {
    font-size: 12px;
    color: var(--wma-text-light);
}

/* Empty State */
.wma-no-ratings {
    text-align: center;
    padding: 40px 20px;
    color: var(--wma-text-light);
}

.wma-no-ratings .wma-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.wma-no-ratings h4 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--wma-text);
}

.wma-no-ratings p {
    margin: 0;
    font-size: 14px;
}

/* Load More Button */
.wma-load-more-ratings {
    width: 100%;
    margin-top: 16px;
    background: var(--wma-bg-secondary) !important;
    color: var(--wma-text) !important;
    border: 1px solid var(--wma-border-light) !important;
}

.wma-load-more-ratings:hover {
    background: var(--wma-border-light) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wma-ratings-overview {
        grid-template-columns: 1fr;
    }
    
    .wma-rating-stat-card .wma-stat-value {
        font-size: 2em;
    }
    
    .wma-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .wma-distribution-bar {
        gap: 8px;
    }
    
    .wma-distribution-label {
        min-width: 50px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .wma-rating-distribution,
    .wma-recent-reviews {
        padding: 16px;
    }
    
    .wma-rating-stat-card {
        padding: 16px;
    }
    
    .wma-rating-stat-card .wma-stat-value {
        font-size: 1.8em;
    }
}

/* ============================================
   ERRAND ORDER CARD STYLES
   ============================================ */

/* Errand Badge */
.wma-errand-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

/* Errand Card Styling */
.wma-errand-card {
    border-left: 4px solid #f59e0b !important;
    background: linear-gradient(135deg, #fffbeb 0%, #fff 50%) !important;
}

.wma-errand-card .wma-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.wma-errand-card .wma-order-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wma-errand-card .wma-order-id {
    font-size: 13px;
    color: var(--wma-text-light);
}

/* Errand Title */
.wma-errand-title {
    margin: 12px 0;
}

.wma-errand-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--wma-text);
    line-height: 1.4;
}

/* Errand Category Tag */
.wma-errand-category {
    margin-bottom: 10px;
}

.wma-category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--wma-bg-secondary);
    color: var(--wma-text-light);
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid var(--wma-border-light);
}

/* Errand Meta Info */
.wma-errand-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--wma-text-light);
}

/* Errand Due Date */
.wma-errand-due-date {
    margin: 8px 0;
    font-size: 13px;
    color: var(--wma-text-light);
}

.wma-due-overdue {
    color: var(--wma-danger);
    font-weight: 600;
}

.wma-due-today {
    color: #f59e0b;
    font-weight: 600;
}

.wma-due-soon {
    color: #f59e0b;
    font-weight: 500;
}

/* Errand Offer Amount */
.wma-errand-offer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    margin: 12px 0;
}

.wma-offer-label {
    font-size: 13px;
    font-weight: 500;
    color: #065f46;
}

.wma-offer-amount {
    font-size: 18px;
    font-weight: 700;
    color: #065f46;
}

/* ============================================
   ERRAND DETAILS MODAL STYLES
   ============================================ */

#wma-errand-details-modal .wma-modal-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

#wma-errand-details-modal .wma-modal-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

#wma-errand-details-modal .wma-modal-header-title h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

#wma-errand-details-modal .wma-errand-badge {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

/* Errand Title Section in Modal */
.wma-errand-title-section {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 16px;
}

.wma-errand-title-text {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--wma-text) !important;
    line-height: 1.5 !important;
}

/* Errand Earnings Section in Modal */
.wma-errand-earnings-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 20px;
}

.wma-errand-earnings-breakdown {
    margin-top: 12px;
}

.wma-errand-earnings-breakdown .wma-earnings-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 14px;
}

.wma-errand-earnings-breakdown .wma-earnings-row:last-of-type {
    border-bottom: none;
}

.wma-errand-earnings-breakdown .wma-earnings-deduction {
    color: #991b1b;
}

.wma-errand-earnings-breakdown .wma-earnings-total {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 2px solid #10b981;
    font-size: 16px;
}

.wma-errand-earnings-breakdown .wma-earning-amount {
    color: #065f46;
    font-weight: 700;
    font-size: 1.3em;
}

/* Accept Errand Button */
.wma-modal-accept-errand {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border-color: #f59e0b;
}

.wma-modal-accept-errand:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    border-color: #d97706;
}

/* Reject Errand Button */
.wma-modal-reject-errand {
    background: var(--wma-bg-secondary);
    color: var(--wma-text);
    border-color: var(--wma-border);
}

.wma-modal-reject-errand:hover {
    background: var(--wma-bg);
    border-color: var(--wma-text-light);
}

/* Status Badge for In Progress */
.wma-status-in_progress {
    background: #3b82f6 !important;
    color: #fff !important;
}

/* ============================================
   ERRAND RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    .wma-errand-card .wma-order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wma-errand-card .wma-order-header-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .wma-errand-title h4 {
        font-size: 15px;
    }
    
    .wma-errand-offer {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 14px;
    }
    
    .wma-offer-amount {
        font-size: 20px;
    }
    
    #wma-errand-details-modal .wma-modal-header-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .wma-errand-earnings-section {
        padding: 16px;
    }
    
    .wma-errand-earnings-breakdown .wma-earnings-row {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .wma-errand-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .wma-errand-title h4 {
        font-size: 14px;
    }
    
    .wma-category-tag {
        font-size: 11px;
    }
    
    .wma-errand-meta {
        font-size: 12px;
    }
}

/* Access Restricted State */
.wma-access-restricted {
    text-align: center;
    padding: 60px 30px;
    max-width: 600px;
    margin: 0 auto;
}

.wma-restriction-icon {
    margin-bottom: 24px;
    color: var(--wma-danger);
}

.wma-restriction-icon svg {
    width: 64px;
    height: 64px;
}

.wma-access-restricted h2 {
    font-size: 28px;
    font-weight: var(--wma-font-weight-primary);
    color: var(--wma-text);
    margin-bottom: 16px;
}

.wma-access-restricted > p {
    font-size: 16px;
    color: var(--wma-text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.wma-restriction-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.wma-info-box {
    background: var(--wma-bg-secondary);
    border: 1px solid var(--wma-border-light);
    border-radius: var(--wma-radius-md);
    padding: 24px;
    margin-top: 32px;
    text-align: left;
}

.wma-info-box p {
    margin: 0 0 12px 0;
    color: var(--wma-text);
}

.wma-info-box p:last-child {
    margin-bottom: 0;
    color: var(--wma-text-light);
}

.wma-info-box strong {
    color: var(--wma-text);
    font-weight: var(--wma-font-weight-primary);
}

@media (max-width: 768px) {
    .wma-access-restricted {
        padding: 40px 20px;
    }
    
    .wma-restriction-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .wma-access-restricted h2 {
        font-size: 24px;
    }
    
    .wma-restriction-actions {
        flex-direction: column;
    }
    
    .wma-restriction-actions .wma-btn {
        width: 100%;
    }
}
