/* SpotMart Marketplace Frontend Styles */

/* Button Group Styling */
.spotmart-button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.spotmart-button-group .button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
}

.spotmart-button-group .button:hover {
    background: #f8f9fa;
    border-color: #28a745;
    color: #28a745;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.spotmart-button-group .button-primary {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.spotmart-button-group .button-primary:hover {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.spotmart-my-contracts-btn {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.spotmart-my-contracts-btn:hover {
    background: #218838;
    border-color: #1e7e34;
    color: #fff;
}

/* Responsive button group */
@media (max-width: 768px) {
    .spotmart-button-group {
        flex-direction: column;
        width: 100%;
    }
    
    .spotmart-button-group .button {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* Custom date input styling */
.spotmart-date-input {
    position: relative;
    display: inline-block;
    width: 100%;
}

.spotmart-date-input input {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    /* Completely disable native date picker */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Hide all native date picker elements */
.spotmart-date-input input::-webkit-calendar-picker-indicator {
    display: none !important;
}

.spotmart-date-input input::-webkit-inner-spin-button,
.spotmart-date-input input::-webkit-clear-button {
    display: none !important;
}

.spotmart-date-input input::-moz-calendar-picker-indicator {
    display: none !important;
}

.spotmart-date-input .calendar-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 16px;
}

.spotmart-simple-calendar {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    min-width: 250px;
}

.spotmart-simple-calendar.show {
    display: block;
}

.spotmart-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.spotmart-calendar-nav {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #007cba;
    padding: 5px;
}

.spotmart-calendar-nav:hover {
    background: #e9ecef;
    border-radius: 3px;
}

.spotmart-calendar-month-year {
    font-weight: bold;
    color: #333;
}

.spotmart-calendar-grid {
    padding: 10px;
}

.spotmart-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 5px;
}

.spotmart-calendar-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    padding: 5px;
}

.spotmart-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.spotmart-calendar-day {
    text-align: center;
    padding: 8px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
}

.spotmart-calendar-day:hover {
    background: #e9ecef;
}

.spotmart-calendar-day.selected {
    background: #007cba;
    color: white;
}

.spotmart-calendar-day.other-month {
    color: #ccc;
}

.spotmart-calendar-day.today {
    background: #f0f8ff;
    color: #007cba;
    font-weight: bold;
}

.spotmart-calendar-day.disabled {
    color: #ccc;
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.5;
}

.spotmart-calendar-day.disabled:hover {
    background: #f5f5f5;
    color: #ccc;
}

.spotmart-marketplace-header {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

/* Submit Need Section */
.spotmart-submit-need-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.spotmart-submit-need-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.spotmart-buyer-need-form {
    max-width: 100%;
}

.spotmart-buyer-need-form .spotmart-form-group {
    margin-bottom: 20px;
}

.spotmart-buyer-need-form .spotmart-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.spotmart-buyer-need-form .spotmart-form-row .spotmart-form-group {
    flex: 1;
    margin-bottom: 0;
}

.spotmart-buyer-need-form .spotmart-form-group:not(.spotmart-form-row .spotmart-form-group) {
    margin-bottom: 20px;
}

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

/* Red asterisk for required fields */
.spotmart-buyer-need-form .spotmart-required-asterisk {
    color: #dc3545;
    font-weight: bold;
}

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

.spotmart-buyer-need-form input:focus,
.spotmart-buyer-need-form select:focus,
.spotmart-buyer-need-form textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.spotmart-buyer-need-form .spotmart-form-actions {
    margin-top: 30px;
    text-align: right;
}

.spotmart-buyer-need-form .button-primary {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.spotmart-buyer-need-form .button-primary:hover {
    background: #28a745;
    border-color: #28a745;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

/* Login Prompt */
.spotmart-login-prompt {
    margin-bottom: 30px;
}

.spotmart-login-prompt .spotmart-alert {
    text-align: center;
    padding: 30px;
}

.spotmart-login-prompt h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.spotmart-login-prompt p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 16px;
}

.spotmart-login-prompt .button {
    margin: 0 10px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.spotmart-login-prompt .button-primary {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.spotmart-login-prompt .button-primary:hover {
    background: #28a745;
    border-color: #28a745;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

.spotmart-login-prompt .button:not(.button-primary) {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
}

.spotmart-login-prompt .button:not(.button-primary):hover {
    background: #f8f9fa;
    border-color: #28a745;
    color: #28a745;
}

.spotmart-marketplace-header h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.spotmart-marketplace-header p {
    margin: 0;
    color: #666;
}

/* Navigation */
.spotmart-marketplace-nav {
    margin-bottom: 30px;
}

.spotmart-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.spotmart-nav-item {
    margin: 0;
}

.spotmart-nav-item a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.spotmart-nav-item a:hover,
.spotmart-nav-item.current-menu-item a {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.spotmart-nav-item .dashicons {
    margin-right: 8px;
    font-size: 16px;
}

/* Breadcrumbs */
.spotmart-breadcrumbs {
    margin-bottom: 20px;
}

.spotmart-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.spotmart-breadcrumb-item {
    margin: 0;
}

.spotmart-breadcrumb-item a {
    color: #28a745;
    text-decoration: none;
}

.spotmart-breadcrumb-item a:hover {
    text-decoration: underline;
}

.spotmart-breadcrumb-item.current {
    color: #666;
}

.spotmart-breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

/* Forms */
.spotmart-form-group {
    margin-bottom: 20px;
}

.spotmart-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.spotmart-form-row .spotmart-form-group {
    flex: 1;
    margin-bottom: 0;
}

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

.spotmart-form-group input,
.spotmart-form-group select,
.spotmart-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.spotmart-form-group input:focus,
.spotmart-form-group select:focus,
.spotmart-form-group textarea:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.spotmart-form-actions {
    margin-top: 30px;
}

/* Lists */
.spotmart-needs-list,
.spotmart-offers-list,
.spotmart-contracts-list {
    padding-top: 20px;
}

.spotmart-need-item,
.spotmart-offer-item,
.spotmart-contract-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.spotmart-need-item:hover,
.spotmart-offer-item:hover,
.spotmart-contract-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.spotmart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.spotmart-item-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.spotmart-item-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.spotmart-item-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.spotmart-item-description {
    margin-bottom: 15px;
    line-height: 1.6;
}

.spotmart-item-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.spotmart-item-actions .button {
    padding: 8px 16px;
    font-size: 14px;
}

/* Button loading state - prevents size changes */
.spotmart-btn-loading {
    position: relative;
}
.spotmart-btn-loading .spotmart-btn-spinner {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid rgba(255,255,255,0.6);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Generic table styles for needs lists */
.spotmart-table-wrapper { overflow-x: auto; }
.spotmart-table { width: 100%; border-collapse: collapse; background: #fff; }
.spotmart-table thead th { position: sticky; top: 0; background: #f8f9fa; text-align: left; padding: 12px; border-bottom: 1px solid #e0e0e0; font-weight: 600; color: #333; }
.spotmart-table tbody td { padding: 12px; border-bottom: 1px solid #f0f0f0; vertical-align: top; color: #333; }
.spotmart-table tbody tr:hover { background: #fafafa; }
.spotmart-needs-table .button, .spotmart-my-needs-table .button { padding: 6px 10px; font-size: 13px; }

/* Status badges */
.spotmart-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.spotmart-status-badge.status-open {
    background: #e8f5e8;
    color: #2e7d32;
}

.spotmart-status-badge.status-closed {
    background: #f5f5f5;
    color: #666;
}

.spotmart-status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.spotmart-status-badge.status-accepted {
    background: #d4edda;
    color: #155724;
}

.spotmart-status-badge.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.spotmart-status-badge.status-draft {
    background: #e2e3e5;
    color: #383d41;
}

.spotmart-status-badge.status-active {
    background: #d1ecf1;
    color: #0c5460;
}

.spotmart-status-badge.status-completed {
    background: #d4edda;
    color: #155724;
}

.spotmart-status-badge.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Filters */
.spotmart-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.spotmart-filters select,
.spotmart-filters input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.spotmart-filters label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin: 0;
}

/* Pagination */
.spotmart-pagination {
    margin-top: 30px;
    text-align: center;
}

.spotmart-pagination .button {
    margin: 0 5px;
}

/* Loading states */
.spotmart-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.spotmart-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideInRight {
    0% { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    100% { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

/* Alerts */
.spotmart-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

.spotmart-alert.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.spotmart-alert.alert-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.spotmart-alert.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.spotmart-alert.alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Responsive */
@media (max-width: 768px) {
    .spotmart-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .spotmart-buyer-need-form .spotmart-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .spotmart-buyer-need-form .spotmart-form-row .spotmart-form-group {
        margin-bottom: 20px;
    }
    
    .spotmart-submit-need-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .spotmart-nav-menu {
        flex-direction: column;
    }
    
    .spotmart-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .spotmart-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .spotmart-item-actions {
        flex-direction: column;
    }
    
    .spotmart-buyer-need-form .spotmart-form-actions {
        text-align: center;
    }
}

/* Contract details */
.spotmart-contract-details {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
}

.spotmart-contract-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.spotmart-contract-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.spotmart-contract-terms {
    margin-bottom: 20px;
}

.spotmart-contract-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Offer details */
.spotmart-offer-details {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
}

.spotmart-offer-info {
    margin-bottom: 20px;
}

.spotmart-offer-price {
    font-size: 24px;
    font-weight: 600;
    color: #007cba;
    margin-bottom: 15px;
}

.spotmart-offer-delivery,
.spotmart-offer-message {
    margin-bottom: 15px;
}

.spotmart-offer-message p {
    margin: 5px 0 0 0;
    font-style: italic;
    color: #666;
}

/* Need details */
.spotmart-need-details {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
}

.spotmart-need-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.spotmart-need-meta span {
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

.spotmart-need-description {
    margin-bottom: 30px;
    line-height: 1.6;
}

.spotmart-need-offers h3 {
    margin-bottom: 20px;
    color: #333;
}

/* Utility classes */
.spotmart-text-center {
    text-align: center;
}

.spotmart-text-right {
    text-align: right;
}

.spotmart-mb-0 {
    margin-bottom: 0;
}

.spotmart-mt-0 {
    margin-top: 0;
}

.spotmart-hidden {
    display: none;
}

.spotmart-visible {
    display: block;
}

/* Modal Styles */
.spotmart-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.spotmart-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.spotmart-modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.spotmart-modal-header h3 {
    margin: 0;
    color: #333;
}

.spotmart-modal-close {
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.spotmart-modal-close:hover {
    color: #333;
}

.spotmart-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.spotmart-modal-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.spotmart-modal-footer .button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    box-sizing: border-box;
}

.spotmart-modal-footer .spotmart-modal-close {
    background-color: #ffffff;
    border-color: #6c757d;
    color: #6c757d;
}

.spotmart-modal-footer .spotmart-modal-close:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

.spotmart-modal-footer .button-primary {
    background-color: #009900;
    border-color: #009900;
    color: #ffffff;
}

.spotmart-modal-footer .button-primary:hover {
    background-color: #007700;
    border-color: #007700;
    color: #ffffff;
}

/* Offer Items in Modal */
.spotmart-offer-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fff;
}

.spotmart-offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.spotmart-offer-header h4 {
    margin: 0;
    color: #333;
}

.spotmart-offer-details p {
    margin: 5px 0;
    color: #666;
}

.spotmart-offer-actions {
    margin-top: 15px;
    text-align: right;
}

/* Navigation Styles */
.spotmart-navigation {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.spotmart-navigation .button {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.spotmart-navigation .button-primary {
    background-color: #007cba;
    color: white;
    border: 1px solid #007cba;
}

.spotmart-navigation .button-primary:hover {
    background-color: #005a87;
    border-color: #005a87;
}

.spotmart-navigation .button:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

/* My Needs Specific Styles */
.spotmart-my-need-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.spotmart-my-need-item .spotmart-item-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Need Summary in Modal */
.spotmart-need-summary {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.spotmart-need-summary h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.spotmart-need-summary p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.spotmart-need-summary strong {
    color: #333;
    font-weight: 600;
}

/* Make Offer Button */
.spotmart-make-offer {
    background-color: #28a745;
    color: white;
    border: 1px solid #28a745;
}

.spotmart-make-offer:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .spotmart-modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .spotmart-modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .spotmart-modal-footer .button {
        width: 100%;
    }
    
    .spotmart-alert {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .spotmart-navigation {
        flex-direction: column;
    }
    
    .spotmart-navigation .button {
        text-align: center;
    }
    
    .spotmart-my-need-item .spotmart-item-actions {
        flex-direction: column;
    }
    
    .spotmart-my-need-item .spotmart-item-actions .button {
        width: 100%;
        text-align: center;
    }
}

/* No matching products styling */
.spotmart-no-match {
    display: inline-block;
    padding: 8px 12px;
    background: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    font-style: italic;
}

/* Offer already made styling */
.spotmart-offer-made {
    display: inline-block;
    padding: 8px 12px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
}


/* Contract Details Modal Styling */
.spotmart-contract-info,
.spotmart-contract-parties,
.spotmart-contract-terms,
.spotmart-contract-dates {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #007cba;
}

.spotmart-contract-info h4,
.spotmart-contract-parties h4,
.spotmart-contract-terms h4,
.spotmart-contract-dates h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.spotmart-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.spotmart-info-item {
    padding: 8px 0;
}

.spotmart-info-item.spotmart-full-width {
    grid-column: 1 / -1;
}

.spotmart-info-item strong {
    color: #555;
    font-weight: 600;
}

.spotmart-terms-text {
    margin-top: 8px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-style: italic;
    color: #666;
}

@media (max-width: 768px) {
    .spotmart-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Pagination Styling */
.spotmart-pagination {
    margin-top: 20px;
    text-align: center;
}

.spotmart-pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.spotmart-pagination-controls button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spotmart-pagination-controls button:hover:not(:disabled) {
    background: #f0f0f0;
    border-color: #007cba;
}

.spotmart-pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.spotmart-pagination-info {
    font-weight: 500;
    color: #666;
}

.spotmart-pagination-pages {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.spotmart-pagination-pages .button {
    min-width: 40px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spotmart-pagination-pages .button:hover {
    background: #f0f0f0;
    border-color: #007cba;
}

.spotmart-pagination-pages .button.active {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

@media (max-width: 768px) {
    .spotmart-pagination-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .spotmart-pagination-pages {
        gap: 3px;
    }
    
    .spotmart-pagination-pages .button {
        min-width: 35px;
        padding: 6px 10px;
    }
}
