/* eSIM Product Grid 4951 - Exact Design Match */

.epg-4951-wrapper {
    width: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Section Title */
.epg-4951-section-title {
    margin-top: 0;
    margin-bottom: 24px;
    color: #1e293b;
    line-height: 1.3;
}

/* Grid Layout */
.epg-4951-grid {
    display: grid;
    gap: 20px;
}

.epg-4951-cols-1 { grid-template-columns: repeat(1, 1fr); }
.epg-4951-cols-2 { grid-template-columns: repeat(2, 1fr); }
.epg-4951-cols-3 { grid-template-columns: repeat(3, 1fr); }
.epg-4951-cols-4 { grid-template-columns: repeat(4, 1fr); }
.epg-4951-cols-5 { grid-template-columns: repeat(5, 1fr); }
.epg-4951-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
    .epg-4951-cols-t-1 { grid-template-columns: repeat(1, 1fr); }
    .epg-4951-cols-t-2 { grid-template-columns: repeat(2, 1fr); }
    .epg-4951-cols-t-3 { grid-template-columns: repeat(3, 1fr); }
    .epg-4951-cols-t-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
    .epg-4951-cols-m-1 { grid-template-columns: repeat(1, 1fr); }
    .epg-4951-cols-m-2 { grid-template-columns: repeat(2, 1fr); }
    .epg-4951-cols-m-3 { grid-template-columns: repeat(3, 1fr); }
}

/* List Mode overrides */
.epg-4951-list { display: flex; flex-direction: column; gap: 16px; }
.epg-4951-mode-list .epg-4951-card { flex-direction: row; align-items: center; }
@media (max-width: 767px) { .epg-4951-mode-list .epg-4951-card { flex-direction: column; align-items: stretch; } }

/* Card Design with Reliable Diagonal Cut */
.epg-4951-card {
    position: relative;
    padding: 24px 24px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    /* Transparent base to let pseudo-elements show */
    background: transparent;
    border: none;
    z-index: 1;
}

/* Outer Border Shape (Gradient) */
.epg-4951-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -2;
    /* The gradient matching the design */
    background: linear-gradient(135deg, #4338ca 0%, #4338ca 40%, #a5b4fc 60%, #a5b4fc 100%);
    /* This creates the exact shape with the diagonal cut */
    clip-path: polygon(
        0% 0%, 
        calc(100% - 30px) 0%, 
        100% 30px, 
        100% 100%, 
        0% 100%
    );
    border-radius: 12px 0 12px 12px;
}

/* Inner Background Shape (Light Gray) */
.epg-4951-card::after {
    content: '';
    position: absolute;
    /* 2px border width all around */
    top: 2px; right: 2px; bottom: 2px; left: 2px;
    z-index: -1;
    background-color: #f4f5f7; /* Background color of the card */
    /* The clip path needs to be slightly adjusted for the inset to run parallel */
    clip-path: polygon(
        0% 0%, 
        calc(100% - 29px) 0%, 
        100% 29px, 
        100% 100%, 
        0% 100%
    );
    border-radius: 10px 0 10px 10px;
}

/* Shadow effect */
.epg-4951-card {
    /* Using filter for elements with clip-path so shadow follows the cut */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.epg-4951-card:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.1));
}

/* Header */
.epg-4951-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 15px; /* Keep away from cut */
}

.epg-4951-flag {
    width: 36px;
    height: 26px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.epg-4951-flag-placeholder {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}

.epg-4951-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

/* Hide divider */
.epg-4951-divider {
    display: none;
}

/* Table Area */
.epg-4951-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.epg-4951-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.epg-4951-col:not(:last-child) {
    border-right: none;
}

.epg-4951-col:nth-child(2) {
    text-align: center;
}

.epg-4951-col:last-child {
    text-align: right;
}

.epg-4951-label {
    font-size: 13px;
    color: #475569; /* Slate 600 */
    font-weight: 500;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0;
}

.epg-4951-value {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b; /* Slate 800 */
}

/* Button */
.epg-4951-btn {
    display: block;
    width: 100%;
    text-align: center;
    /* Gradient matching the design */
    background: linear-gradient(90deg, #312e81 0%, #4338ca 100%); 
    color: #ffffff;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.1s ease;
    box-sizing: border-box;
    cursor: pointer;
    border: none;
    margin-top: 8px;
}

.epg-4951-btn:hover {
    opacity: 0.9;
    color: #ffffff;
    text-decoration: none;
}

/* Empty State */
.epg-4951-empty {
    text-align: center;
    color: #64748b;
    padding: 32px;
}

/* Hide Pagination/Slider elements to save space unless requested */
.epg-4951-pagination { display: none; }
.epg-4951-slider-track { display: flex; gap: 16px; transition: transform 0.4s ease; }
.epg-4951-arrow, .epg-4951-dots { display: none; }