/**
 * B2B Offers Styles v3.0
 * 
 * Professional styling matching Couponis theme
 * All rules scoped under .b2b-page
 */

/* =============================================================================
   BASE - Inherit theme styles, no overrides
   ============================================================================= */
.b2b-page {
    /* Remove extra main padding if any */
}

.b2b-page .white-block {
    margin-bottom: 20px;
}

/* =============================================================================
   BREADCRUMBS - Subtle, matching theme
   ============================================================================= */
.b2b-page .b2b-breadcrumbs {
    margin: 15px 0 0;
    font-size: 13px;
    color: #888;
}

.b2b-page .b2b-breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.b2b-page .b2b-breadcrumbs a:hover {
    color: #1ab1b7;
}

/* =============================================================================
   VARIANT BADGE - Match theme's badge style
   ============================================================================= */
.b2b-page .b2b-badge {
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 15px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    color: #fff;
    border-radius: 2px;
    /* background set inline per variant */
}

/* =============================================================================
   PRIMARY OFFER BLOCK
   ============================================================================= */
.b2b-page .b2b-offer-block {
    border-left: 3px solid #1ab1b7;
}

.b2b-page .b2b-offer-block h2 {
    margin: 0 0 15px;
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.3;
}

.b2b-page .b2b-offer-block p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.b2b-page .b2b-discount-value {
    display: inline-block;
    margin: 8px 0 15px;
    padding: 10px 20px;
    font-size: 1.1em;
    font-weight: 700;
    color: #1ab1b7;
    background: #f0fafa;
    border: 1px solid #d0eeee;
    border-radius: 3px;
}

/* =============================================================================
   CTA BUTTON - Professional, prominent call-to-action
   ============================================================================= */
.b2b-page .b2b-cta-wrap {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.b2b-page .b2b-cta-button {
    display: inline-block;
    padding: 14px 35px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-transform: none;
    letter-spacing: 0.3px;
    color: #fff !important;
    background: linear-gradient(135deg, #1ab1b7 0%, #149ba0 100%);
    border: none;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(26, 177, 183, 0.3);
    transition: all 0.25s ease;
}

.b2b-page .b2b-cta-button:hover,
.b2b-page .b2b-cta-button:focus {
    background: linear-gradient(135deg, #149ba0 0%, #0f8a8f 100%);
    box-shadow: 0 5px 15px rgba(26, 177, 183, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff !important;
}

.b2b-page .b2b-cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(26, 177, 183, 0.3);
}

.b2b-page .b2b-cta-button i {
    margin-left: 8px;
    font-size: 12px;
    opacity: 0.9;
}

/* =============================================================================
   TRUST BADGES - Compact, professional
   ============================================================================= */
.b2b-page .b2b-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 5px 0;
}

.b2b-page .b2b-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    color: #555;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 3px;
}

.b2b-page .b2b-trust-badge i {
    color: #1ab1b7;
    font-size: 12px;
}

/* =============================================================================
   SECONDARY OFFERS - Card style
   ============================================================================= */
.b2b-page .b2b-secondary-offer {
    padding: 15px;
    margin-bottom: 12px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 3px;
}

.b2b-page .b2b-secondary-offer:last-child {
    margin-bottom: 0;
}

.b2b-page .b2b-secondary-offer strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.b2b-page .b2b-secondary-offer p {
    margin: 0 0 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.b2b-page .b2b-discount-small {
    display: inline-block;
    margin-right: 10px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #1ab1b7;
    background: #f0fafa;
    border-radius: 2px;
}

.b2b-page .b2b-secondary-offer .btn {
    display: inline-block;
    width: auto;
    padding: 6px 15px;
    font-size: 12px;
}

/* =============================================================================
   PRICING TABLE
   ============================================================================= */
.b2b-page .b2b-pricing-table {
    overflow-x: auto;
    margin: 0 -5px;
}

.b2b-page .b2b-pricing-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.b2b-page .b2b-pricing-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    background: #f8f9fa;
    border-bottom: 2px solid #e8e8e8;
}

.b2b-page .b2b-pricing-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.b2b-page .b2b-pricing-table tbody tr:hover {
    background: #fafafa;
}

.b2b-page .b2b-pricing-table .b2b-pricing-highlight {
    background: #f0fafa;
    border-left: 3px solid #1ab1b7;
}

.b2b-page .b2b-pricing-table .b2b-pricing-highlight td:first-child {
    padding-left: 12px;
}

/* =============================================================================
   FAQ - Collapsible, clean
   ============================================================================= */
.b2b-page .b2b-faq-item {
    margin-bottom: 8px;
    border: 1px solid #eee;
    border-radius: 3px;
    overflow: hidden;
}

.b2b-page .b2b-faq-item summary {
    padding: 12px 15px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    background: #fafafa;
    list-style: none;
    transition: background 0.15s;
}

.b2b-page .b2b-faq-item summary:hover {
    background: #f5f5f5;
}

.b2b-page .b2b-faq-item summary::-webkit-details-marker {
    display: none;
}

.b2b-page .b2b-faq-item summary::before {
    content: '+';
    display: inline-block;
    width: 18px;
    font-weight: 700;
    color: #1ab1b7;
}

.b2b-page .b2b-faq-item[open] summary::before {
    content: '−';
}

.b2b-page .b2b-faq-item[open] summary {
    border-bottom: 1px solid #eee;
}

.b2b-page .b2b-faq-item p {
    margin: 0;
    padding: 15px;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

/* =============================================================================
   SOURCES
   ============================================================================= */
.b2b-page .b2b-sources {
    font-size: 12px;
    color: #888;
}

.b2b-page .b2b-sources summary {
    cursor: pointer;
    font-weight: 500;
    color: #666;
}

.b2b-page .b2b-sources summary:hover {
    color: #1ab1b7;
}

.b2b-page .b2b-sources ul {
    margin: 12px 0 0;
    padding-left: 18px;
}

.b2b-page .b2b-sources li {
    margin-bottom: 4px;
}

.b2b-page .b2b-sources a {
    color: #1ab1b7;
}

/* =============================================================================
   CONTENT LISTS
   ============================================================================= */
.b2b-page .white-block-single-content ul,
.b2b-page .white-block-single-content ol {
    margin: 0 0 15px;
    padding-left: 20px;
}

.b2b-page .white-block-single-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* =============================================================================
   HUB PAGE - Stats
   ============================================================================= */
.b2b-page .b2b-hub-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    text-align: center;
}

.b2b-page .b2b-stat {
    display: flex;
    flex-direction: column;
}

.b2b-page .b2b-stat strong {
    font-size: 28px;
    font-weight: 700;
    color: #1ab1b7;
    line-height: 1.2;
}

.b2b-page .b2b-stat span {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================================================
   HUB PAGE - Merchant Grid
   ============================================================================= */
.b2b-page .b2b-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.b2b-page .b2b-merchant-card {
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.b2b-page .b2b-merchant-card:hover {
    border-color: #1ab1b7;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.b2b-page .b2b-merchant-card h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.b2b-page .b2b-merchant-card p {
    margin: 0;
    font-size: 12px;
    color: #999;
}

.b2b-page .b2b-merchant-links {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.b2b-page .b2b-merchant-links a {
    display: inline-block;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    background: #f8f9fa;
    border-radius: 4px;
    border-left-width: 3px;
    border-left-style: solid;
    transition: all 0.15s ease;
}

.b2b-page .b2b-merchant-links a:hover {
    color: #fff;
    background: #1ab1b7;
    border-left-color: #1ab1b7 !important;
}

/* =============================================================================
   HUB PAGE - Legend
   ============================================================================= */
.b2b-page .b2b-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.b2b-page .b2b-legend-item {
    display: inline-block;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    color: #555;
    background: #f8f9fa;
    border-left: 3px solid;
    border-radius: 4px;
}

/* =============================================================================
   BOTTOM NAVIGATION BUTTONS
   ============================================================================= */
.b2b-page .white-block .btn-default,
.b2b-page .text-center .btn-default {
    display: inline-block;
    width: auto;
    padding: 10px 25px;
    font-size: 13px;
    border-radius: 3px;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 767px) {
    .b2b-page .b2b-hub-stats {
        gap: 25px;
    }
    
    .b2b-page .b2b-stat strong {
        font-size: 24px;
    }
    
    .b2b-page .b2b-hub-grid {
        grid-template-columns: 1fr;
    }
    
    .b2b-page .b2b-trust-badges {
        justify-content: center;
    }
    
    .b2b-page .b2b-pricing-table th,
    .b2b-page .b2b-pricing-table td {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .b2b-page .b2b-merchant-links {
        flex-direction: column;
    }
    
    .b2b-page .b2b-merchant-links a {
        text-align: center;
    }
    
    .b2b-page .b2b-legend {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .b2b-page .b2b-hub-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .b2b-page .b2b-offer-block h2 {
        font-size: 1.2em;
    }
    
    .b2b-page .b2b-discount-value {
        font-size: 1em;
        padding: 8px 15px;
    }
}
