/* ─── Hispamicro Sync Frontend Styles ─────────────────────────── */

/* Tracking section */
.hmsync-tracking {
    margin: 30px 0;
    padding: 20px;
    background: #f0f7ff;
    border: 1px solid #bdd7ee;
    border-radius: 8px;
}

.hmsync-tracking h2 {
    font-size: 18px;
    margin-top: 0;
    color: #1565C0;
}

.hmsync-tracking table {
    width: 100%;
}

.hmsync-tracking table th {
    text-align: left;
    font-weight: 600;
    width: 160px;
    padding: 8px 0;
    color: #333;
}

.hmsync-tracking table td {
    padding: 8px 0;
}

.hmsync-tracking a {
    color: #2196F3;
    font-weight: 600;
}

/* Return button */
.hmsync-return-btn {
    display: inline-block;
    font-size: 12px !important;
    padding: 6px 14px !important;
    background: #f39c12 !important;
    color: #1a2a3a !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all .2s !important;
    text-decoration: none !important;
    border: none !important;
}

.hmsync-return-btn:hover {
    background: #e67e22 !important;
    transform: translateY(-1px);
}

/* Return status */
.hmsync-return-status small {
    color: #27ae60;
    font-weight: 600;
}

/* 2FA section */
.hmsync-2fa-section label input[type="radio"]:checked + strong {
    color: #2196F3;
}

.hmsync-2fa-section label:has(input:checked) {
    border-color: #2196F3 !important;
    background: #f0f7ff;
}

/* Warranty table */
.woocommerce-account .woocommerce-orders-table .hmsync-warranty-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

/* Invoices table */
.hmsync-invoice-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #2196F3;
    color: #fff !important;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}

.hmsync-invoice-btn:hover {
    background: #1565C0;
}

/* Stock alerts */
.stock.low-stock {
    color: #e67e22 !important;
    background: #fdf2e9 !important;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
}

/* Warranty info shortcode */
.hmsync-warranty-info {
    max-width: 800px;
    margin: 0 auto;
}

.hmsync-warranty-info h3 {
    font-size: 24px;
    color: #1a2a3a;
    border-bottom: 3px solid #f39c12;
    padding-bottom: 10px;
}

.hmsync-warranty-info h4 {
    font-size: 18px;
    color: #2c3e50;
    margin-top: 25px;
}

.hmsync-warranty-info .warranty-period {
    background: #f0f7ff;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
    margin: 15px 0;
    font-size: 15px;
}

.hmsync-warranty-info .warranty-conditions ul {
    padding-left: 20px;
}

.hmsync-warranty-info .warranty-conditions li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.hmsync-warranty-info .warranty-process ol li {
    padding: 8px 0;
    line-height: 1.5;
}

.hmsync-warranty-info .warranty-legal {
    background: #f5f7fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}
