/* BBIMA SSR Standalone Scoped Stylesheet v1.13.2 */
.bbima-ssr-wrap {
    margin: 35px 0;
}

/* Top-of-Page Intro Block */
.bbima-ssr-top-intro {
    margin: 25px 0;
}
.bbima-ssr-top-intro p {
    font: inherit !important;
    color: inherit !important;
    font-size: 1em !important;
    line-height: 1.6 !important;
    margin: 0 0 16px 0 !important;
}

/* Editorial Overview Block - Pure Native Theme Typography Inheritance */
.bbima-ssr-editorial {
    margin-bottom: 40px;
}
.bbima-ssr-editorial h2 {
    margin: 0 0 12px 0;
}
.bbima-ssr-editorial p {
    font: inherit !important;
    color: inherit !important;
    font-size: 1em !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.6 !important;
}
.bbima-ssr-editorial ul {
    margin: 0 !important;
    padding-left: 20px !important;
    list-style-type: disc !important;
}
.bbima-ssr-editorial li {
    font: inherit !important;
    color: inherit !important;
    font-size: 1em !important;
    margin-bottom: 8px !important;
    line-height: 1.5 !important;
}

/* Section Blocks & Headings - Pure Theme Typography Inheritance */
.bbima-ssr-section {
    margin-bottom: 40px;
}
.bbima-ssr-heading {
    margin: 0 0 8px 0;
}
.bbima-ssr-subtext {
    font: inherit !important;
    color: inherit !important;
    font-size: 1em !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.6 !important;
}

/* Cards Grid - Strict Max 3 Columns on Desktop */
.bbima-ssr-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
@media (min-width: 768px) {
    .bbima-ssr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .bbima-ssr-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.bbima-ssr-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.bbima-ssr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -2px rgba(0, 0, 0, 0.08);
    border-color: #9333ea;
}

.bbima-ssr-card-badge {
    background: #eff6ff;
    color: #1e40af;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    border-bottom: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Responsive Full-Width Voucher Banner */
.bbima-ssr-card-voucher {
    background: linear-gradient(to right, #9333ea, #2563eb);
    color: #ffffff;
    font-size: clamp(13px, 1.2vw + 9px, 15px);
    font-weight: 800;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    line-height: 1.35;
    width: 100%;
    box-sizing: border-box;
}
.bbima-ssr-card-voucher span {
    display: inline-block;
    letter-spacing: -0.01em;
}

.bbima-ssr-card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.bbima-ssr-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.bbima-ssr-card-logo {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}
.bbima-ssr-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.bbima-ssr-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.3;
}
.bbima-ssr-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.bbima-ssr-pill {
    background: #f1f5f9;
    color: #475569;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
}
.bbima-ssr-pill-ots {
    background: #fef3c7;
    color: #92400e;
}

.bbima-ssr-card-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 10px 4px;
    text-align: center;
    margin-bottom: 14px;
}
.bbima-ssr-spec-unit {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.bbima-ssr-border-mid {
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}
.bbima-ssr-spec-val-price {
    font-size: 17px;
    font-weight: 800;
}
.bbima-ssr-spec-val-speed {
    font-size: 15px;
    font-weight: 700;
}
.bbima-ssr-spec-val-term {
    font-size: 13px;
    font-weight: 600;
}
.bbima-ssr-spec-lbl {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
}

.bbima-ssr-card-footer-terms {
    font-size: 12px;
    margin-bottom: 10px;
    padding: 0 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bbima-ssr-card-expiry {
    font-size: 12px;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bbima-ssr-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(to right, #10b981, #16a34a);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    padding: 11px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.bbima-ssr-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* 4. Responsive Table Wrapper & Pagination */
.responsive-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
}
.basic-table.bbima-ssr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
    min-width: 700px;
}
.basic-table.bbima-ssr-table th {
    background: #f8fafc;
    padding: 13px 15px;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}
.basic-table.bbima-ssr-table td {
    padding: 13px 15px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.basic-table.bbima-ssr-table tr:last-child td {
    border-bottom: none;
}
.bbima-ssr-table-pill {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 3px;
}
.bbima-ssr-table-price {
    font-weight: 800;
    font-size: 15px;
}
.bbima-ssr-btn-sm {
    display: inline-block;
    background: linear-gradient(to right, #10b981, #16a34a);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px;
    padding: 7px 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.bbima-ssr-btn-sm:hover {
    opacity: 0.95;
}

/* Pagination Links */
.bbima-ssr-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
    justify-content: center;
}
.bbima-ssr-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    font-weight: 700;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.bbima-ssr-page-btn:hover {
    background: #f1f5f9;
    border-color: #9333ea;
    color: #9333ea;
}
.bbima-ssr-page-btn.active {
    background: #9333ea;
    border-color: #9333ea;
    color: #ffffff;
}

/* 5. Interception Modal Styles */
.bbima-ssr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 999999;
}
.bbima-ssr-modal-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 440px;
    width: 100%;
    padding: 24px;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}
.bbima-ssr-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}
.bbima-ssr-modal-close:hover {
    color: #334155;
}
.bbima-ssr-modal-logo {
    height: 48px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 16px auto;
    display: block;
}
.bbima-ssr-modal-text {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #334155 !important;
    margin: 0 0 24px 0 !important;
}
.bbima-ssr-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bbima-ssr-modal-btn-direct {
    width: 100%;
    background: linear-gradient(to right, #10b981, #16a34a);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}
.bbima-ssr-modal-btn-direct:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}
.bbima-ssr-modal-btn-voucher {
    width: 100%;
    background: linear-gradient(to right, #102d81, #1d4ed8);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(29, 78, 216, 0.2);
}
.bbima-ssr-modal-btn-voucher:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* State Colors */
.bbima-text-green { 
    color: #16a34a !important; 
    font-weight: 600; 
}
.bbima-text-amber { 
    color: #d97706 !important; 
    font-weight: 600; 
}