/**
 * Check Payment System - Frontend Styles
 *
 * @package Check_Payment_System
 * @subpackage Assets
 * @since 1.0.0
 */

/* ==========================================================================
   GLOBAL FRONTEND STYLES
   ========================================================================== */

.cps-payment-proposal-form,
.cps-proposal-review,
.cps-check-submission-form,
.cps-order-tracking,
.cps-single-order-tracking,
.cps-my-check-payments {
    font-family: inherit;
    line-height: 1.6;
}

.required {
    color: #ff0000;
    margin-left: 3px;
}

.cps-help-text {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.separator {
    margin: 0 10px;
    color: #666;
}

.cps-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.cps-loading .spinner {
    float: none;
    margin-right: 10px;
}

/* ==========================================================================
   ALERTS & NOTICES
   ========================================================================== */

.cps-alert {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.cps-alert .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.cps-alert-info { background: #d1ecf1; color: #0c5460; border-left-color: #17a2b8; }
.cps-alert-warning { background: #fff3cd; color: #856404; border-left-color: #ffc107; }
.cps-alert-danger { background: #f8d7da; color: #721c24; border-left-color: #dc3545; }
.cps-alert-success { background: #d4edda; color: #155724; border-left-color: #28a745; }

.cps-alert strong {
    display: block;
    margin-bottom: 5px;
}

.cps-alert-link {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
    margin-left: 10px;
}

.cps-notice {
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    border-left: 4px solid;
}

.cps-notice-info {
    background: #e7f7ff;
    border-left-color: #0073aa;
}

/* Checkout Notices */
.cps-restriction-notice,
.cps-credit-info {
    margin: 15px 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.button-small {
    padding: 6px 12px !important;
    font-size: 13px !important;
    height: auto !important;
}

.button-large {
    padding: 12px 24px !important;
    font-size: 16px !important;
    height: auto !important;
}

.button .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
}

.button-large .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */

.cps-form-section {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.cps-form-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.cps-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.cps-form-group {
    margin-bottom: 20px;
}

.cps-col-half {
    flex: 1;
}

.cps-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.cps-input,
.cps-select,
.cps-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.cps-input:focus,
.cps-select:focus,
.cps-textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.cps-input.error {
    border-color: #ff0000;
}

.cps-calculated-value {
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #0073aa;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.cps-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ==========================================================================
   IMAGE UPLOAD
   ========================================================================== */

.cps-image-upload-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.cps-image-upload-section h4 {
    margin-top: 0;
    color: #333;
}

.cps-file-input {
    width: 100%;
    padding: 8px;
}

.cps-image-preview {
    margin-top: 10px;
    min-height: 50px;
}

.cps-image-preview img {
    max-width: 200px;
    max-height: 150px;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.cps-file-name {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    padding: 8px;
    background: #fff;
    border-radius: 4px;
}

/* ==========================================================================
   TABLES
   ========================================================================== */

.cps-summary-table,
.cps-info-table {
    width: 100%;
    border-collapse: collapse;
}

.cps-summary-table th,
.cps-info-table th {
    text-align: left;
    padding: 10px;
    font-weight: 600;
    background: #f5f5f5;
}

.cps-summary-table td,
.cps-info-table td {
    text-align: right;
    padding: 10px;
}

.cps-summary-table tr,
.cps-info-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.cps-checks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cps-checks-table thead th {
    text-align: left;
    padding: 12px;
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
}

.cps-checks-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.cps-checks-table tbody tr:hover {
    background: #f9f9f9;
}

.cps-checks-table-wrapper {
    overflow-x: auto;
}

.cps-overdue-row {
    background: #fff5f5;
}

.cps-overdue-row:hover {
    background: #ffe5e5;
}

.cps-cleared-row {
    opacity: 0.7;
}

.cps-overdue-label {
    color: #dc3545;
    font-weight: 600;
}

.cps-placeholder-text {
    color: #999;
    font-style: italic;
}

/* ==========================================================================
   BADGES & STATUS
   ========================================================================== */

.cps-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.cps-badge .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.cps-badge-success { background: #d4edda; color: #155724; }
.cps-badge-danger { background: #f8d7da; color: #721c24; }
.cps-badge-warning { background: #fff3cd; color: #856404; }
.cps-badge-info { background: #d9edf7; color: #31708f; }

.cps-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
}

/* Phase-specific colors */
.cps-status-payment_proposed { background: #fff3cd; color: #856404; }
.cps-status-payment_approved { background: #d1ecf1; color: #0c5460; }
.cps-status-check_submitted { background: #d1ecf1; color: #0c5460; }
.cps-status-check_verified { background: #d4edda; color: #155724; }
.cps-status-warehouse_processing { background: #e7f7ff; color: #004085; }
.cps-status-ready_for_delivery { background: #cce5ff; color: #004085; }
.cps-status-with_delivery { background: #d4edda; color: #155724; }
.cps-status-completed { background: #28a745; color: #fff; }
.cps-status-cancelled { background: #f8d7da; color: #721c24; }

.cps-check-status {
    font-size: 14px;
    padding: 5px 12px;
    border-radius: 20px;
}

.cps-status-submitted {
    background: #28a745;
    color: #fff;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.cps-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.cps-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.cps-order-summary,
.cps-rules-info {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.cps-summary-box {
    background: #f0f9ff;
    padding: 20px;
    border: 2px solid #0073aa;
    border-radius: 5px;
    margin-bottom: 20px;
}

.cps-summary-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
}

.cps-info-box {
    padding: 15px;
    background: #e7f7ff;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
    margin-bottom: 20px;
}

.cps-interest-info {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.cps-rules-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.cps-rules-info li {
    margin-bottom: 8px;
}

/* ==========================================================================
   STATISTICS GRID
   ========================================================================== */

.cps-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cps-stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.cps-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.cps-stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 32px;
}

.cps-stat-total .cps-stat-icon { background: #e7f7ff; color: #0073aa; }
.cps-stat-pending .cps-stat-icon { background: #fff3cd; color: #856404; }
.cps-stat-cleared .cps-stat-icon { background: #d4edda; color: #155724; }
.cps-stat-amount .cps-stat-icon { background: #f0e5ff; color: #7b2cbf; }

.cps-stat-value {
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.cps-stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* ==========================================================================
   PROGRESS BARS
   ========================================================================== */

.cps-progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.cps-progress-bar-large {
    height: 30px;
    border-radius: 15px;
}

.cps-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
}

.cps-progress-text {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

/* ==========================================================================
   WORKFLOW STEPS
   ========================================================================== */

.cps-workflow-progress {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.cps-workflow-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 30px;
}

.cps-workflow-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.cps-workflow-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cps-step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-weight: 600;
    border: 3px solid;
    background: #fff;
    transition: all 0.3s ease;
}

.cps-step-completed .cps-step-circle {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.cps-step-current .cps-step-circle {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 115, 170, 0.5);
    animation: pulse 2s infinite;
}

.cps-step-pending .cps-step-circle {
    background: #fff;
    border-color: #ddd;
    color: #999;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 115, 170, 0.5); }
    50% { box-shadow: 0 0 30px rgba(0, 115, 170, 0.8); }
}

.cps-step-circle .dashicons {
    width: 30px;
    height: 30px;
    font-size: 30px;
}

.cps-step-label {
    text-align: center;
    font-size: 12px;
    color: #666;
    max-width: 80px;
}

.cps-step-completed .cps-step-label {
    color: #28a745;
    font-weight: 600;
}

.cps-step-current .cps-step-label {
    color: #0073aa;
    font-weight: 600;
}

/* ==========================================================================
   CHECK CARDS
   ========================================================================== */

.cps-check-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.cps-check-card.cps-check-submitted {
    border-color: #28a745;
    background: #f0fff4;
}

.cps-check-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.cps-check-number {
    font-size: 18px;
    color: #333;
}

.cps-check-summary {
    text-align: right;
}

.cps-check-amount {
    font-size: 20px;
    font-weight: 600;
    color: #0073aa;
    display: block;
}

.cps-check-due-date {
    font-size: 14px;
    color: #666;
}

/* ==========================================================================
   ORDER TRACKING
   ========================================================================== */

.cps-order-tracking,
.cps-single-order-tracking {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.cps-no-orders {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.cps-no-orders .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #999;
}

.cps-orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cps-order-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.cps-order-card:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.1);
}

.cps-order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 15px;
}

.cps-order-info h3 a {
    color: #0073aa;
    text-decoration: none;
}

.cps-order-amount {
    font-size: 24px;
    font-weight: 600;
    color: #0073aa;
}

.cps-tracking-header {
    background: linear-gradient(135deg, #0073aa 0%, #00a0d2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
}

.cps-tracking-header h2 {
    margin: 0 0 10px 0;
    color: #fff;
}

/* ==========================================================================
   TIMELINE
   ========================================================================== */

.cps-timeline {
    position: relative;
    padding-left: 40px;
}

.cps-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.cps-timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.cps-timeline-marker {
    position: absolute;
    left: -40px;
    top: 5px;
}

.cps-timeline-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0073aa;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #0073aa;
}

.cps-timeline-content {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #0073aa;
}

.cps-timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.cps-timeline-title {
    margin: 0;
    font-size: 15px;
    color: #333;
}

.cps-timeline-time {
    font-size: 13px;
    color: #999;
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.cps-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: none;
}

.cps-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.cps-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cps-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.cps-modal-header h3 {
    margin: 0;
}

.cps-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.cps-modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* ==========================================================================
   FILTERS
   ========================================================================== */

.cps-filters {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.cps-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.cps-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cps-filter-group label {
    font-weight: 600;
    font-size: 14px;
}

/* ==========================================================================
   RTL SUPPORT
   ========================================================================== */

[dir="rtl"] .required {
    margin-left: 0;
    margin-right: 3px;
}

[dir="rtl"] .cps-alert {
    border-left: none;
    border-right: 4px solid;
}

[dir="rtl"] .cps-alert-link {
    margin-left: 0;
    margin-right: 10px;
}

[dir="rtl"] .cps-notice {
    border-left: none;
    border-right: 4px solid;
}

[dir="rtl"] .cps-info-box,
[dir="rtl"] .cps-admin-notes {
    border-left: none;
    border-right: 4px solid #0073aa;
}

[dir="rtl"] .cps-interest-info {
    border-right-color: #ffc107;
}

[dir="rtl"] .cps-order-header {
    border-left: none;
    border-right: 4px solid #0073aa;
}

[dir="rtl"] .cps-instructions {
    border-left: none;
    border-right: 4px solid #ffc107;
}

[dir="rtl"] .cps-summary-table th,
[dir="rtl"] .cps-info-table th {
    text-align: right;
}

[dir="rtl"] .cps-summary-table td,
[dir="rtl"] .cps-info-table td {
    text-align: left;
}

[dir="rtl"] .cps-checks-table thead th {
    text-align: right;
}

[dir="rtl"] .cps-check-summary {
    text-align: left;
}

[dir="rtl"] .cps-progress-fill {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 10px;
}

[dir="rtl"] .cps-back-button .dashicons {
    transform: rotate(180deg);
}

[dir="rtl"] .cps-comparison-arrow .dashicons {
    transform: rotate(180deg);
}

[dir="rtl"] .cps-timeline {
    padding-left: 0;
    padding-right: 40px;
}

[dir="rtl"] .cps-timeline::before {
    left: auto;
    right: 15px;
}

[dir="rtl"] .cps-timeline-marker {
    left: auto;
    right: -40px;
}

[dir="rtl"] .cps-timeline-content {
    border-left: none;
    border-right: 3px solid #0073aa;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .cps-payment-proposal-form,
    .cps-proposal-review,
    .cps-check-submission-form,
    .cps-order-tracking,
    .cps-single-order-tracking,
    .cps-my-check-payments {
        padding: 10px;
    }

    .cps-form-row {
        flex-direction: column;
        gap: 0;
    }

    .cps-form-actions {
        flex-direction: column;
    }

    .cps-form-actions .button {
        width: 100%;
    }

    .cps-stats-grid {
        grid-template-columns: 1fr;
    }

    .cps-comparison-container {
        flex-direction: column;
    }

    .cps-comparison-arrow {
        transform: rotate(90deg);
    }

    [dir="rtl"] .cps-comparison-arrow .dashicons {
        transform: rotate(270deg);
    }

    .cps-check-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cps-check-summary {
        text-align: left;
    }

    [dir="rtl"] .cps-check-summary {
        text-align: right;
    }

    .cps-order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cps-tracking-header {
        flex-direction: column;
        gap: 20px;
    }

    .cps-current-status-large {
        text-align: left;
    }

    [dir="rtl"] .cps-current-status-large {
        text-align: right;
    }

    .cps-workflow-steps {
        flex-wrap: wrap;
        gap: 20px;
    }

    .cps-workflow-step {
        flex: 0 0 calc(50% - 10px);
    }

    .cps-workflow-steps::before {
        display: none;
    }

    .cps-order-actions {
        flex-direction: column;
    }

    .cps-order-actions .button {
        width: 100%;
    }

    .cps-action-buttons {
        flex-direction: column;
    }

    .cps-action-buttons button {
        width: 100%;
    }

    .cps-check-date-item {
        flex-direction: column;
        gap: 5px;
    }

    .cps-check-date,
    .cps-check-amount {
        text-align: left;
    }

    [dir="rtl"] .cps-check-date,
    [dir="rtl"] .cps-check-amount {
        text-align: right;
    }

    .cps-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .cps-filter-form .button {
        width: 100%;
    }

    .cps-modal-content {
        width: 95%;
    }

    .cps-checks-table {
        font-size: 12px;
    }

    .cps-checks-table thead th,
    .cps-checks-table tbody td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .cps-stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .cps-stat-value {
        font-size: 24px;
    }

    .cps-workflow-step {
        flex: 0 0 100%;
    }

    .cps-order-amount {
        font-size: 20px;
    }
}

/* ==========================================================================
   COMPARISON & REVIEW SPECIFIC
   ========================================================================== */

.cps-highlight-row {
    background: #fff3cd;
}

.cps-proposal-table.cps-highlight {
    border: 2px solid #0073aa;
    border-radius: 5px;
}

/* ==========================================================================
   NO RESULTS / EMPTY STATES
   ========================================================================== */

.cps-no-checks,
.cps-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.cps-no-checks .dashicons,
.cps-no-results .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

/* ==========================================================================
   DELIVERY INFORMATION
   ========================================================================== */

.cps-delivery-section {
    border-left: 4px solid #28a745;
}

.cps-delivery-info-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.cps-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cps-info-row:last-child {
    border-bottom: none;
}

.cps-info-label {
    font-weight: 600;
    color: #333;
}

.cps-info-value {
    color: #666;
}

/* ==========================================================================
   SUBMIT CHECK BUTTON
   ========================================================================== */

.cps-submit-check-btn {
    padding: 12px 30px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cps-submit-check-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   CHECK DETAILS (Read-only)
   ========================================================================== */

.cps-check-details {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.cps-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cps-detail-row:last-child {
    border-bottom: none;
}

.cps-detail-label {
    font-weight: 600;
    color: #333;
}

.cps-detail-value {
    color: #666;
}

/* ==========================================================================
   SUCCESS MESSAGES
   ========================================================================== */

.cps-success-message {
    text-align: center;
    padding: 30px;
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 5px;
    color: #155724;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cps-success-message .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

/* ==========================================================================
   OVERALL PROGRESS SUMMARY
   ========================================================================== */

.cps-overall-progress {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #0073aa;
    text-align: center;
    margin-top: 30px;
}

.cps-overall-progress h3 {
    margin-top: 0;
    color: #0073aa;
}

.cps-progress-info {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.cps-progress-info #submitted_count {
    color: #28a745;
    font-size: 24px;
}

/* ==========================================================================
   OVERDUE SECTIONS
   ========================================================================== */

.cps-overdue-section {
    border-color: #dc3545;
    border-width: 2px;
}

.cps-overdue-section h3 {
    color: #dc3545;
    border-bottom-color: #dc3545;
}

.cps-overdue-days {
    font-weight: 600;
}

/* ==========================================================================
   TRACKING ACTIONS
   ========================================================================== */

.cps-tracking-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cps-tracking-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   BACK BUTTON
   ========================================================================== */

.cps-back-button {
    margin-bottom: 20px;
}

.cps-back-button .button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .cps-form-actions,
    .cps-action-buttons,
    .cps-file-input,
    .cps-submit-check-btn,
    .cps-filters,
    .cps-order-actions,
    .cps-tracking-actions,
    .cps-back-button,
    .cps-modal {
        display: none !important;
    }

    .cps-check-card,
    .cps-order-card,
    .cps-section {
        page-break-inside: avoid;
        border: 2px solid #000 !important;
        margin-bottom: 20px;
    }
}

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

.cps-input:focus,
.cps-select:focus,
.cps-textarea:focus,
.button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   WORDPRESS COMPATIBILITY
   ========================================================================== */

/* Ensure compatibility with WooCommerce styles */
.woocommerce .cps-payment-proposal-form,
.woocommerce .cps-proposal-review,
.woocommerce .cps-check-submission-form,
.woocommerce .cps-order-tracking,
.woocommerce .cps-my-check-payments {
    margin: 0 auto;
}

/* Account page integration */
.woocommerce-account .cps-payment-proposal-form,
.woocommerce-account .cps-my-check-payments,
.woocommerce-account .cps-order-tracking {
    margin-top: 20px;
}

/* Ensure buttons inherit WooCommerce theme colors where appropriate */
.woocommerce .button.cps-submit-check-btn {
    margin-top: 0;
}

/* ==========================================================================
   CUSTOM ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cps-check-card {
    animation: fadeIn 0.3s ease;
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 500px;
        opacity: 1;
    }
}

#rejection_reason_section {
    overflow: hidden;
    transition: all 0.3s ease;
}

/* ==========================================================================
   MISCELLANEOUS
   ========================================================================== */

.cps-placeholder-text {
    color: #999;
    font-style: italic;
}

.cps-current-status {
    margin-bottom: 15px;
}

.cps-order-meta {
    margin: 0;
}

.cps-header-left,
.cps-header-right {
    display: flex;
    flex-direction: column;
}

.cps-timeline-meta {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

.cps-no-timeline {
    text-align: center;
    color: #999;
    padding: 20px;
}

/* End of Frontend Styles */