/* ==========================================================================
   Credit Card Engine — Overview Shortcode Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700;800;900&display=swap');

.mi-overview-card {
    font-family: "Public Sans", system-ui, sans-serif;
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px -4px rgba(23, 88, 115, 0.10);
    border: 1px solid #e5e7eb;
    margin: 20px 0;
    transition: box-shadow 0.3s, transform 0.3s;
    max-width: 780px;
}

.mi-overview-card:hover {
    box-shadow: 0 8px 32px -4px rgba(23, 88, 115, 0.16);
    transform: translateY(-2px);
}

/* Image */
.mi-ov-image {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 20px;
}

.mi-ov-image img {
    max-width: 160px;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
}

.mi-ov-no-image {
    width: 120px;
    height: 80px;
    background: #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.mi-ov-no-image .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

/* Content */
.mi-ov-content {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Header */
.mi-ov-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mi-ov-title {
    font-size: 1.15em;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}

.mi-ov-badge {
    display: inline-block;
    background: linear-gradient(135deg, #175873 0%, #1a6d8a 100%);
    color: #fff;
    font-size: 0.7em;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Rating */
.mi-ov-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mi-ov-stars {
    display: flex;
    gap: 1px;
}

.mi-star-filled {
    color: #175873;
    font-size: 18px !important;
    font-variation-settings: 'FILL' 1;
}

.mi-star-empty {
    color: #d1d5db;
    font-size: 18px !important;
}

.mi-ov-rating-num {
    font-weight: 800;
    color: #175873;
    font-size: 0.95em;
}

/* Highlights Grid */
.mi-ov-highlights {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mi-ov-stat {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 14px;
    min-width: 90px;
}

.mi-ov-stat-label {
    font-size: 0.65em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    font-weight: 700;
}

.mi-ov-stat-value {
    font-size: 0.9em;
    font-weight: 800;
    color: #175873;
    margin-top: 2px;
}

/* Apply Button */
.mi-ov-actions {
    margin-top: auto;
}

.mi-ov-apply {
    display: inline-block;
    background: linear-gradient(135deg, #175873 0%, #1a6d8a 100%);
    color: #fff !important;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9em;
    text-decoration: none !important;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(23, 88, 115, 0.2);
}

.mi-ov-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(23, 88, 115, 0.3);
}

/* Responsive */
@media (max-width: 640px) {
    .mi-overview-card {
        flex-direction: column;
    }

    .mi-ov-image {
        flex: none;
        padding: 16px;
    }

    .mi-ov-content {
        padding: 16px;
    }

    .mi-ov-highlights {
        flex-direction: column;
    }
}