/* Container */
.vpsm-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Card Style */
.vpsm-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
}

.vpsm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.vpsm-card.in-stock { border-top: 4px solid #46b450; }
.vpsm-card.out-stock { border-top: 4px solid #dc3232; }
.vpsm-card.unknown-stock { border-top: 4px solid #999; }

.vpsm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 10px;
}

.vpsm-card-header h3 { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.vpsm-price { font-weight: bold; color: #d63638; font-size: 1.1rem; white-space: nowrap; margin-left: 10px; }

.vpsm-card-body { flex: 1; }
.vpsm-card-body p { margin: 6px 0; font-size: 0.9rem; color: #555; line-height: 1.4; }
.vpsm-note { font-style: italic; color: #888; font-size: 0.85rem !important; margin-top: 10px !important; border-top: 1px dashed #eee; padding-top: 8px; }

.vpsm-card-footer {
    margin-top: 15px;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Table Style */
.vpsm-table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vpsm-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 0.95rem; }
/*
.vpsm-table th, .vpsm-table td { border: 1px solid #e1e1e1; padding: 10px; text-align: left; vertical-align: middle; }
.vpsm-table th { background: #f8f9fa; font-weight: 600; color: #333; }
*/
.vpsm-price-cell { color: #d63638; font-weight: bold; }
.vpsm-status-cell { white-space: nowrap; min-width: 80px; }
.vpsm-merged-config { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 400px; }

/* Buttons & Badges */
.vpsm-btn, .vpsm-btn-sm {
    background: #5cb85c;
    color: #fff !important;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: inline-block;
    transition: background 0.2s;
    text-align: center;
}
.vpsm-btn-sm { padding: 4px 10px; font-size: 0.85rem; }
.vpsm-btn:hover, .vpsm-btn-sm:hover { background: #449d44; }

.vpsm-status-badge {
    padding: 4px 8px;
    border-radius: 3px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    min-width: 40px;
}
.vpsm-status-badge.in-stock { background: #46b450; }
.vpsm-status-badge.out-stock { background: #dc3232; }
.vpsm-status-badge.unknown-stock { background: #999; }

/* TG Link */
.vpsm-tg-link {
    background: #f0f7ff;
    padding: 12px;
    text-align: center;
    border: 1px dashed #72aee6;
    margin-bottom: 20px;
    border-radius: 6px;
}
.vpsm-tg-link a { color: #0073aa; font-weight: bold; text-decoration: none; }
.vpsm-tg-link a:hover { text-decoration: underline; }
