/**
 * Mabsoot Warehouse - Customer Facing Styles
 *
 * @package Mabsoot_Warehouse
 */

/* Base Styles */
.mabsoot-order-tracking,
.mabsoot-return-request {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.mabsoot-tracking-header,
.mabsoot-return-header {
    text-align: center;
    margin-bottom: 30px;
}

.mabsoot-tracking-header h2,
.mabsoot-return-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.mabsoot-tracking-header p,
.mabsoot-return-header p {
    color: #666;
    font-size: 16px;
}

/* Alerts */
.mabsoot-alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.mabsoot-alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.mabsoot-alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.mabsoot-alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.mabsoot-alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Forms */
.mabsoot-tracking-form,
.mabsoot-return-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mabsoot-form-group {
    margin-bottom: 20px;
}

.mabsoot-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.mabsoot-input,
.mabsoot-textarea,
.mabsoot-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.mabsoot-input:focus,
.mabsoot-textarea:focus,
.mabsoot-select:focus {
    outline: none;
    border-color: #0073aa;
}

.mabsoot-input-small {
    width: 80px;
}

.mabsoot-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.mabsoot-button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.mabsoot-button-primary {
    background-color: #0073aa;
    color: #fff;
}

.mabsoot-button-primary:hover {
    background-color: #005177;
}

.mabsoot-button-secondary {
    background-color: #6c757d;
    color: #fff;
}

.mabsoot-button-secondary:hover {
    background-color: #545b62;
}

.mabsoot-button-tertiary {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.mabsoot-button-tertiary:hover {
    background-color: #f8f9fa;
}

/* Tracking Result */
.mabsoot-tracking-result {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mabsoot-tracking-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mabsoot-summary-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.mabsoot-summary-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.mabsoot-summary-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.mabsoot-status-pending {
    color: #ffc107;
}

.mabsoot-status-in_preparation {
    color: #17a2b8;
}

.mabsoot-status-ready_for_pickup {
    color: #28a745;
}

.mabsoot-status-in_transit {
    color: #007bff;
}

.mabsoot-status-delivered {
    color: #28a745;
}

.mabsoot-status-cancelled {
    color: #dc3545;
}

/* Timeline */
.mabsoot-tracking-timeline {
    margin-bottom: 30px;
}

.mabsoot-tracking-timeline h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.mabsoot-timeline {
    position: relative;
    padding-left: 30px;
}

.mabsoot-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
}

.mabsoot-timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.mabsoot-timeline-item:last-child {
    padding-bottom: 0;
}

.mabsoot-timeline-icon {
    position: absolute;
    left: -30px;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mabsoot-timeline-item.mabsoot-completed .mabsoot-timeline-icon {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.mabsoot-timeline-item.mabsoot-pending .mabsoot-timeline-icon {
    background: #f8f9fa;
    border-color: #ddd;
    color: #999;
}

.mabsoot-timeline-content {
    padding-left: 10px;
}

.mabsoot-timeline-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.mabsoot-timeline-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.mabsoot-timeline-description {
    font-size: 14px;
    color: #999;
}

/* Items Table */
.mabsoot-tracking-items {
    margin-bottom: 30px;
}

.mabsoot-tracking-items h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.mabsoot-items-table {
    width: 100%;
    border-collapse: collapse;
}

.mabsoot-items-table th,
.mabsoot-items-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.mabsoot-items-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.mabsoot-item-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Tracking Actions */
.mabsoot-tracking-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Return Form Sections */
.mabsoot-form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.mabsoot-form-section:last-child {
    border-bottom: none;
}

.mabsoot-form-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

/* Items List */
.mabsoot-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mabsoot-item-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.mabsoot-item-checkbox {
    flex-shrink: 0;
}

.mabsoot-item-checkbox-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.mabsoot-item-info {
    flex: 1;
}

.mabsoot-item-name {
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

.mabsoot-item-quantity {
    font-size: 14px;
    color: #666;
}

.mabsoot-item-qty {
    flex-shrink: 0;
}

.mabsoot-item-qty label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

/* Radio Options */
.mabsoot-radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.mabsoot-radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.mabsoot-radio-option label {
    cursor: pointer;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .mabsoot-order-tracking,
    .mabsoot-return-request {
        padding: 15px;
    }

    .mabsoot-tracking-summary {
        grid-template-columns: 1fr;
    }

    .mabsoot-item-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .mabsoot-item-qty {
        width: 100%;
    }

    .mabsoot-tracking-actions {
        flex-direction: column;
    }

    .mabsoot-tracking-actions .mabsoot-button {
        width: 100%;
    }
}
