/* ==========================================
   Prolina My Deliveries — Frontend Styles
   ========================================== */

.prolina-deliveries-wrap {
    max-width: 900px;
}

.prolina-deliveries-wrap h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #1a1a1a;
}

/* ---- Subscription card ---- */
.prolina-sub-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.prolina-sub-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.prolina-sub-header strong {
    display: block;
    font-size: 1.05rem;
    color: #1a1a1a;
}

.prolina-sub-meta {
    font-size: .8rem;
    color: #666;
    margin-top: 2px;
    display: block;
}

/* ---- Status badges ---- */
.prolina-status-badge,
.prolina-slot-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.prolina-status-active    { background: #d1fae5; color: #065f46; }
.prolina-status-completed { background: #e0e7ff; color: #3730a3; }
.prolina-status-cancelled { background: #fee2e2; color: #991b1b; }

.prolina-slot-scheduled { background: #e0f2fe; color: #075985; }
.prolina-slot-locked    { background: #fef3c7; color: #92400e; }
.prolina-slot-delivered { background: #d1fae5; color: #065f46; }

/* ---- Progress bar ---- */
.prolina-progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin-bottom: 16px;
    overflow: hidden;
}

.prolina-progress-fill {
    height: 100%;
    background: #2e6b47;
    border-radius: 3px;
    transition: width .4s ease;
}

/* ---- Slots table ---- */
.prolina-slots-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

.prolina-slots-table th {
    text-align: left;
    padding: 8px 10px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #374151;
}

.prolina-slots-table td {
    padding: 10px 10px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.prolina-slots-table tr:last-child td {
    border-bottom: none;
}

/* ---- Reschedule UI ---- */
.prolina-reschedule-btn {
    background: #2e6b47 !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer;
    font-size: .8rem !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
}

.prolina-reschedule-btn:hover {
    background: #245538 !important;
}

.prolina-reschedule-picker {
    margin-top: 8px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    max-width: 340px;
}

.prolina-date-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: .875rem;
    margin-bottom: 10px;
    cursor: pointer;
    background: #fff;
}

.prolina-reschedule-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.prolina-confirm-btn {
    background: #2e6b47 !important;
    color: #fff !important;
    border: none !important;
}

.prolina-confirm-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.prolina-cancel-btn {
    border-color: #d1d5db !important;
}

.prolina-feedback {
    font-size: .8rem;
    min-height: 1.2em;
}

.prolina-feedback.success { color: #065f46; }
.prolina-feedback.error   { color: #991b1b; }

.prolina-locked-msg {
    font-size: .8rem;
    color: #92400e;
}

/* ---- Checkout date picker ---- */
.prolina-delivery-date-wrap .flatpickr-input {
    background: #fff !important;
    cursor: pointer;
}

/* ---- Responsive ---- */
@media ( max-width: 600px ) {
    .prolina-slots-table th:first-child,
    .prolina-slots-table td:first-child { display: none; }
    .prolina-sub-header { flex-direction: column; gap: 8px; }
}
