/**
 * Frontend styles — Reorder Notification plugin.
 *
 * Loaded only on WooCommerce My Account pages.
 */

/* ---- Dashboard wrapper ---- */
.izap-reorder-dashboard {
    margin: 20px 0;
}

.izap-reorder-header {
    margin-bottom: 20px;
}

.izap-reorder-header h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.izap-reorder-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Empty state */
.izap-reorder-empty {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #05b9d2;
}

.izap-reorder-empty h3 {
    margin: 0 0 8px;
    color: #333;
}

.izap-reorder-empty p {
    margin: 0;
    color: #666;
}

/* ---- Order card ---- */
.izap-order-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
    transition: box-shadow .25s ease, transform .25s ease;
}

.izap-order-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.izap-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    gap: 10px;
}

.izap-order-info h4 {
    margin: 0 0 4px;
    color: #333;
    font-size: 15px;
    font-weight: 700;
}

.izap-order-meta {
    color: #777;
    font-size: 12px;
}

.izap-order-total {
    font-weight: 700;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}

/* ---- Product rows ---- */
.izap-product-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 8px;
    gap: 10px;
}

.izap-product-info {
    flex: 1;
    min-width: 0;
}

.izap-product-name {
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.izap-product-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 8px;
}

/* Quantity editor */
.izap-quantity-editor {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
}

.izap-quantity-editor label {
    color: #444;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.izap-quantity-input {
    width: 68px;
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

.izap-quantity-input:focus {
    border-color: #05b9d2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(5, 185, 210, .2);
}

.izap-item-subtotal {
    color: #05b9d2;
    font-weight: 700;
    min-width: 70px;
    text-align: right;
}

/* Status column */
.izap-product-status {
    text-align: right;
    min-width: 140px;
    flex-shrink: 0;
}

.izap-days-remaining {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.izap-status-label {
    font-size: 11px;
    font-weight: 700;
}

/* ---- Order footer ---- */
.izap-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    gap: 10px;
}

.izap-order-new-total {
    font-size: 13px;
    color: #555;
}

.izap-total-display {
    color: #05b9d2;
}

/* Reorder button */
.izap-reorder-btn {
    background: #05b9d2;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    transition: background .25s ease, transform .25s ease;
    white-space: nowrap;
}

.izap-reorder-btn:hover,
.izap-reorder-btn:focus {
    background: #0071a1;
    transform: translateY(-1px);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .izap-order-header {
        flex-direction: column;
    }

    .izap-product-item {
        flex-direction: column;
    }

    .izap-product-status {
        text-align: left;
        min-width: unset;
    }

    .izap-order-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .izap-item-subtotal {
        text-align: left;
    }
}
