/* ==========================================
   NBN PLANS DISPLAY - UNIFIED CSS
   Consolidates plans-display.css and plans-display-troppo.css
   Primary Design: Troppo Theme (dark background, blue/orange scheme)
   ========================================== */

@import url(troppo-unified-theme.css);

/* ==========================================
   NBN FLOW SPECIFIC STYLES
   ========================================== */

/* NBN Flow Wrapper - Full Width Breaking Theme Constraints */
.nbn-plugin-wrapper.nbn-flow {
    background: #0f0e1e !important;
    min-height: 100vh;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden !important;
    position: relative;
}

/* Override theme constraints for all possible containers */
.content-wrap .nbn-plugin-wrapper.nbn-flow,
.entry-content .nbn-plugin-wrapper.nbn-flow,
.post-content .nbn-plugin-wrapper.nbn-flow,
.content-container .nbn-plugin-wrapper.nbn-flow,
.content-area .nbn-plugin-wrapper.nbn-flow,
.kadence-content-wrap .nbn-plugin-wrapper.nbn-flow {
    max-width: 100vw !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* NBN Flow Content Container */
.nbn-flow-content {
    position: relative;
    z-index: 10;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    color: white;
}

/* Desktop content width - high specificity to override product-flow.css */
@media (min-width: 768px) {
    body .nbn-plugin-wrapper.nbn-flow .nbn-flow-content {
        max-width: 1650px;
        margin: 0 auto;
    }
}

/* Flow page - responsive card grid (cards auto-fill based on viewport)
   High specificity needed to override plans-horizontal-scroll.css and nbn-flow-container-fix.css */
body .nbn-plugin-wrapper.nbn-flow .nbn-plans-grid {
    gap: 1.25rem !important;
    padding: 0 3rem !important;
    scroll-behavior: auto !important; /* Let touch/drag handle momentum natively */
}

body .nbn-plugin-wrapper.nbn-flow .nbn-plan-card {
    flex: 0 0 384px !important;
    min-width: 384px !important;
    max-width: 440px !important;
    width: 384px !important;
}

/* Recommended plan card - subtle lagoon border on inner .nbn-plan-details
   Border goes on .nbn-plan-details (not outer .nbn-plan-card) to match
   how other cards work and avoid top gap above savings badge */
body .nbn-plugin-wrapper.nbn-flow .nbn-plan-card.nbn-recommended {
    border: none !important;
    background: transparent !important;
    z-index: 2;
    position: relative;
}

body .nbn-plugin-wrapper.nbn-flow .nbn-plan-card.nbn-recommended .nbn-plan-details {
    border: 2px solid rgba(32, 214, 180, 0.6) !important;
    box-shadow: 0 4px 20px rgba(32, 214, 180, 0.12) !important;
}

body .nbn-plugin-wrapper.nbn-flow .nbn-plan-card.nbn-recommended:hover .nbn-plan-details {
    border-color: rgba(32, 214, 180, 0.8) !important;
    box-shadow: 0 8px 30px rgba(32, 214, 180, 0.18) !important;
}

/* Recommended badge - absolutely positioned so it does not push card content down.
   Default top:0 for recommended-only cards; top:30px when savings badge present. */
body .nbn-plugin-wrapper .nbn-recommended-badge {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0.4rem 1rem !important;
    min-height: 30px !important;
    border-radius: 0 !important;
    background: var(--troppo-lagoon) !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    z-index: 3 !important;
    transform: none !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* When savings badge is present, recommended sits below it */
body .nbn-plugin-wrapper .nbn-savings-badge ~ .nbn-recommended-badge {
    top: 12px !important;
}

/* Plan details - clip badges to card border-radius, establish positioning context */
body .nbn-plugin-wrapper .nbn-plan-details {
    overflow: hidden !important;
    position: relative !important;
}

/* All plan headers: uniform padding-top accommodates the recommended badge overlay.
   Badge is 30px tall + 8px gap = 38px. Applied to ALL cards so content aligns. */
body .nbn-plugin-wrapper .nbn-plan-header {
    padding-top: 38px !important;
}

/* When badges are present, header needs no top radius */
body .nbn-plugin-wrapper .nbn-plan-details:has(.nbn-savings-badge) .nbn-plan-header,
body .nbn-plugin-wrapper .nbn-plan-details:has(.nbn-recommended-badge) .nbn-plan-header {
    border-radius: 0 !important;
}

/* Savings badge - edge-to-edge banner inside card */
body .nbn-plugin-wrapper .nbn-savings-badge {
    position: relative !important;
    margin: 0 !important;
    padding: 0.4rem 1rem !important;
    min-height: 30px !important;
    border-radius: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-weight: 800 !important;
    font-size: 0.8rem !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

/* Active state for payment filters */
.nbn-payment-filter[data-payment="monthly"].active,
.nbn-payment-filter[data-payment="weekly"].active {
    background-color: #2b2b2b;
    color: #fff;
}

/* Speed tier center alignment */
.nbn-speed-tier {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

/* Remove button - prevent text wrapping */
.nbn-remove-btn {
    white-space: nowrap;
}

.nbn-cart-step-actions {
    flex-wrap: nowrap;
}

/* Plan cards grid - native touch scrolling */
.nbn-plans-grid {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto !important;
}

/* Prevent iOS Safari auto-zoom on input focus (requires 16px+) */
.nbn-flow input[type="text"],
.nbn-flow input[type="search"],
.nbn-flow input[type="email"],
.nbn-flow input[type="tel"],
.nbn-flow select,
.nbn-flow textarea,
#nbn-sticky-widget input[type="text"] {
    font-size: 16px !important;
}

@media (max-width: 768px) {
    body .nbn-plugin-wrapper.nbn-flow .nbn-plans-grid {
        gap: 1rem !important;
        padding: 0 1rem !important;
        scroll-snap-type: x mandatory !important;
    }

    body .nbn-plugin-wrapper.nbn-flow .nbn-plan-card {
        flex: 0 0 90% !important;
        min-width: 90% !important;
        max-width: 90% !important;
        width: 90% !important;
        scroll-snap-align: center !important;
    }
}

@media (max-width: 480px) {
    .nbn-voip-simple-options {
        gap: 0.75rem;
    }

    .nbn-voip-simple-btn {
        min-width: 0;
        flex: 1;
        padding: 0.75rem 1rem;
        font-size: 18px;
    }

    .nbn-cart-step-actions {
        flex-direction: row;
        gap: 0.4rem;
    }

    .nbn-cart-step-actions .troppo-btn,
    .nbn-cart-step-actions .nbn-remove-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        white-space: nowrap;
    }
}

/* Hidden sections */
.hidden {
    display: none !important;
}

/* NBN Flow sections */
.nbn-flow-section {
    margin-bottom: 3rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.nbn-flow-section.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Cart Summary Section */
.nbn-cart-summary-section {
    background: rgba(26, 26, 46, 0.95);
    padding: 2rem;
    margin-top: 4rem;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nbn-cart-summary-section {
    animation: slideUpCart 0.5s ease-out;
}

@keyframes slideUpCart {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInCart {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Cart steps */
.nbn-cart-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.nbn-cart-step {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    animation: slideInCart 0.3s ease-out;
}

.nbn-cart-step.hidden {
    display: none;
}

.nbn-cart-step-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.nbn-cart-step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.nbn-cart-step-subtitle {
    font-size: 0.9rem;
    color: #8892b0;
    margin-bottom: 1rem;
}

.nbn-cart-step-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4ecdc4;
    margin-bottom: 1rem;
}

.nbn-cart-step-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.nbn-cart-step-actions .troppo-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.nbn-cart-step-actions .nbn-remove-btn {
    background: transparent;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

.nbn-cart-step-actions .nbn-remove-btn:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* Cart footer */
.nbn-cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.nbn-cart-totals-summary {
    display: flex;
    gap: 2rem;
}

.nbn-cart-total-item {
    text-align: left;
}

.nbn-cart-total-label {
    font-size: 0.9rem;
    color: #8892b0;
    margin-bottom: 0.25rem;
}

.nbn-cart-total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.nbn-proceed-checkout {
    background: linear-gradient(135deg, #ff8e53 0%, #ffd93d 100%);
    color: #1a1a2e;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nbn-proceed-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 142, 83, 0.3);
}

.nbn-proceed-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================
   CSS VARIABLES
   ========================================== */

:root {
    /* Troppo Theme Colors - Primary Palette */
    --troppo-navy: #1e3c72;
    --troppo-navy-light: #2a5298;
    --troppo-navy-dark: #162a4d;
    --troppo-lagoon: #20d6b4;
    --troppo-lagoon-light: #33e5c8;
    --troppo-lagoon-dark: #1ab398;
    --troppo-orange: #ff8e53;
    --troppo-orange-light: #ffd93d;
    --troppo-dark-background: #0f0e1e;
    --troppo-card-background: #1a1a2e;

    /* Gradients */
    --troppo-gradient-navy: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --troppo-gradient-sunset: linear-gradient(135deg, #ff8e53 0%, #ffd93d 100%);
    --troppo-gradient-lagoon: linear-gradient(135deg, #20d6b4 0%, #33e5c8 100%);

    /* Glass Effects */
    --troppo-glass: rgba(255, 255, 255, 0.1);
    --troppo-glass-border: rgba(255, 255, 255, 0.2);

    /* Typography */
    --troppo-text-primary: #fff;
    --troppo-text-secondary: #8892b0;

    /* Spacing & Layout */
    --troppo-radius-sm: 8px;
    --troppo-radius-lg: 12px;
    --troppo-radius-xl: 20px;
    --troppo-transition-smooth: 0.3s ease;

    /* Card Dimensions - Calculated for 3 cards on desktop */
    --card-width-desktop: calc((100% - 4rem) / 3); /* 3 cards with 2rem gaps */
    --card-width-tablet: 350px;
    --card-width-mobile: 90%;
}

/* ==========================================
   BASE LAYOUT
   ========================================== */

.nbn-plugin-wrapper.nbn-plans-display {
    background: var(--troppo-dark-background);
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nbn-plans-display {
    position: relative;
    z-index: 10;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: var(--troppo-dark-background);
    color: var(--troppo-text-primary);
}

/* Plans Title */
.nbn-plans-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--troppo-text-primary);
    animation: troppoFadeInUp 0.8s ease-out;
}

.nbn-plans-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--troppo-gradient-navy);
    border-radius: 2px;
    margin: 15px auto 0;
}

/* ==========================================
   PLAN FILTERS
   ========================================== */

.nbn-plan-filters {
    display: inline-flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 auto 2rem;
    animation: troppoFadeInUp 0.8s ease-out 0.4s both;
}

.nbn-plan-filter {
    position: relative;
    background: var(--troppo-glass);
    border: 2px solid var(--troppo-glass-border);
    color: var(--troppo-text-secondary);
    padding: 1rem 2rem;
    border-radius: var(--troppo-radius-xl);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--troppo-transition-smooth);
    overflow: hidden;
}

.nbn-plan-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--troppo-gradient-sunset);
    transition: left 0.3s ease;
    z-index: -1;
}

.nbn-plan-filter:hover {
    transform: translateY(-2px);
    border-color: var(--troppo-orange);
}

.nbn-plan-filter:hover::before {
    left: 0;
}

.nbn-plan-filter.active {
    background: var(--troppo-gradient-sunset);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 24px rgba(255, 142, 83, 0.4);
}

/* ==========================================
   PAYMENT TYPE TABS
   ========================================== */

.nbn-payment-filters {
    display: inline-flex;
    justify-content: center;
    gap: 0;
    margin: 0 auto 2rem;
    background: var(--troppo-glass);
    border: 1px solid var(--troppo-glass-border);
    border-radius: var(--troppo-radius-xl);
    padding: 0.25rem;
    backdrop-filter: blur(20px);
    animation: troppoFadeInUp 0.8s ease-out 0.6s both;
}

.nbn-payment-filter {
    background: transparent;
    border: none;
    color: var(--troppo-text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--troppo-radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--troppo-transition-smooth);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
}

/* Support both button and link styles */
a.nbn-payment-filter {
    text-decoration: none;
    color: var(--troppo-text-secondary);
}

a.nbn-payment-filter:hover {
    text-decoration: none;
    color: var(--troppo-text-primary);
}

.nbn-payment-filter:hover {
    color: var(--troppo-text-primary);
}

.nbn-payment-filter.active,
a.nbn-payment-filter.active {
    background: var(--troppo-gradient-lagoon);
    color: white !important;
    box-shadow: 0 4px 12px rgba(32, 214, 180, 0.3);
}

/* ==========================================
   PLANS CONTAINER & GRID
   ========================================== */

.nbn-plans-container {
    display: block;
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
}

.nbn-plans-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    margin: 0 0 3rem 0;
    padding: 0 4rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: stretch;
    min-width: 100%;
    width: 100%;
}

.nbn-plans-grid::-webkit-scrollbar {
    display: none;
}

/* Scroll Arrows */
.nbn-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--troppo-gradient-navy);
    border: 1px solid var(--troppo-lagoon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nbn-scroll-arrow:hover {
    background: var(--troppo-gradient-lagoon);
    border-color: var(--troppo-orange);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(79, 209, 197, 0.4);
}

.nbn-scroll-arrow.prev {
    left: 1rem;
}

.nbn-scroll-arrow.next {
    right: 1rem;
}

.nbn-scroll-arrow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nbn-scroll-arrow.disabled:hover {
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   PLAN CARDS
   ========================================== */

.nbn-plan-card {
    flex: 0 0 calc((100% - 4rem) / 3);
    min-width: calc((100% - 4rem) / 3);
    max-width: calc((100% - 4rem) / 3);
    width: calc((100% - 4rem) / 3);
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    position: relative;
    margin: 0;
}

.nbn-plan-card:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

.nbn-plan-card:hover .nbn-plan-details {
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.3);
    border-color: rgba(32, 214, 180, 0.3);
}

/* Savings Badge */
.nbn-savings-badge {
    position: relative;
    margin: 0 20px -10px 20px;
    padding: 0.5rem 1rem;
    min-height: 35px;
    border-radius: 50px;
    background: var(--troppo-gradient-sunset);
    color: var(--troppo-card-background);
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    top: 15px;
}

/* Plan Details Container */
.nbn-plan-details {
    margin-top: 0;
    border-radius: var(--troppo-radius-lg);
    background: var(--troppo-card-background);
    border: 1px solid var(--troppo-lagoon);
    position: relative;
    z-index: 1;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* When no savings badge, start with rounded top */
.nbn-plan-card:not(:has(.nbn-savings-badge)) .nbn-plan-details {
    border-radius: var(--troppo-radius-lg);
    border-top: 1px solid var(--troppo-glass-border);
}

/* Plan Header */
.nbn-plan-header {
    padding: 1.5rem 2rem 1rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: var(--troppo-gradient-navy);
    color: white;
    margin: 0;
    text-align: center;
    border-radius: var(--troppo-radius-lg) var(--troppo-radius-lg) 0 0;
}

.nbn-plan-header > * {
    width: 100%;
}

/* Payment Type Indicator */
.nbn-payment-type-indicator {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: lowercase;
    letter-spacing: 1.5px;
    font-weight: 300;
    margin: 1rem auto 0.5rem auto;
    padding: 0.35rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: none;
    position: static;
    z-index: 30;
    text-align: center;
    min-width: 85px;
    box-sizing: border-box;
}

.nbn-payment-type-indicator.active {
    display: inline-block;
}

.nbn-payment-type-indicator:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Plan Name & Tier */
.nbn-plan-name {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0.25rem 0 0.125rem 0;
    color: white;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    order: 1;
}

.nbn-plan-tier {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
    order: 2;
}

/* NBN Speed Tier */
.nbn-speed-tier {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 1rem 0 0.5rem 0;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

/* Typical Speeds */
.nbn-typical-speeds-text {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

.nbn-typical-speeds-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1rem;
    margin: 0.5rem 0 1rem 0;
}

.nbn-typical-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.nbn-speed-arrow {
    font-size: 0.875rem;
    color: white;
    margin: 0 0.25rem;
}

.nbn-speed-unit {
    font-size: 0.75rem;
    color: white;
    font-weight: 400;
}

/* Number of Users Box */
.nbn-users-box {
    margin: 0 -1px 0 -1px;
    padding: 1.5rem 2rem 2.5rem;
    background: var(--troppo-card-background);
    border: none;
    text-align: center;
    position: relative;
    overflow: visible;
    width: calc(100% + 2px);
    box-sizing: border-box;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 35px), 50% 100%, 0 calc(100% - 35px));
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nbn-users-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(32, 214, 180, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.nbn-users-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--troppo-lagoon);
    line-height: 1;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nbn-users-label {
    font-size: 0.875rem;
    color: var(--troppo-lagoon);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pricing Section */
.nbn-plan-pricing {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.1);
}

.nbn-price-container {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    justify-content: center;
    min-height: 3rem;
}

.nbn-price-value {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    color: white;
}

.nbn-price-value::before {
    content: '$';
    font-size: 1.5rem;
    vertical-align: super;
}

.nbn-price-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    min-height: 2.5rem;
    text-align: center;
}

/* Fix pricing /month text color */
.nbn-price-container small {
    color: var(--troppo-lagoon) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

/* Features Section */
.nbn-plan-features {
    min-height: 80px;
    margin: 0 2rem 1rem 2rem;
    background: transparent;
    padding: 0;
}

.nbn-features-toggle {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--troppo-radius-sm);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all var(--troppo-transition-smooth);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.nbn-features-toggle:hover {
    background: rgba(30, 60, 114, 0.05);
    border-color: var(--troppo-navy-light);
}

.nbn-features-toggle.active {
    background: rgba(30, 60, 114, 0.1);
    border-color: var(--troppo-lagoon);
    color: var(--troppo-lagoon);
}

.nbn-toggle-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform var(--troppo-transition-smooth);
    color: white;
}

.nbn-features-toggle.active .nbn-toggle-icon {
    transform: rotate(45deg);
}

.nbn-features-content {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.3s ease-out,
        opacity 0.3s ease-out;
    opacity: 0;
}

.nbn-features-content.active {
    max-height: 500px;
    opacity: 1;
    transition:
        max-height 0.3s ease-in,
        opacity 0.3s ease-in;
}

.nbn-features-list {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
    color: white;
}

.nbn-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
}

.nbn-feature-item:last-child {
    border-bottom: none;
}

.nbn-feature-icon {
    color: var(--troppo-lagoon);
    font-size: 1.25rem;
}

.nbn-feature-text {
    color: white;
    font-size: 0.875rem;
}

/* Actions Section */
.nbn-plan-actions {
    margin-top: auto;
    padding: 1.5rem 2rem 2rem;
    background: transparent;
}

.nbn-select-plan {
    width: 100%;
    background: var(--troppo-gradient-sunset);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 142, 83, 0.3);
}

.nbn-select-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 142, 83, 0.4);
}

/* Featured Plan */
.nbn-plan-featured .nbn-plan-details {
    border: 2px solid var(--troppo-lagoon);
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.3),
        0 0 20px rgba(32, 214, 180, 0.2);
}

/* Popular Tag */
.nbn-popular-tag {
    display: inline-block;
    background: var(--nbn-flow-secondary);
    color: var(--nbn-flow-dark);
    padding: 5px 12px;
    border-radius: var(--nbn-flow-radius-lg);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px var(--nbn-flow-shadow);
    margin-bottom: 10px;
}

/* Recommended Badge */
.nbn-plan-badge {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: var(--troppo-gradient-navy);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--troppo-radius-xl);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: troppoFloat 3s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.4);
}

@keyframes troppoFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Filter functionality */
.nbn-plan-card.filter-hidden {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    flex: 0 0 0 !important;
}

/* Hide old speed box */
.nbn-plan-speeds {
    display: none !important;
}

/* ==========================================
   PAYMENT FILTERS FUNCTIONALITY
   ========================================== */

/* Hide all pricing by default */
.nbn-weekly-price,
.nbn-monthly-price,
.nbn-yearly-price {
    display: none !important;
}

/* Show monthly pricing by default */
body:not(.payment-filtered) .nbn-monthly-price,
.payment-monthly .nbn-monthly-price {
    display: block !important;
}

.payment-weekly .nbn-weekly-price {
    display: block !important;
}

.payment-yearly .nbn-yearly-price {
    display: block !important;
}

/* Hide all payment indicators by default */
.nbn-payment-type-indicator {
    display: none !important;
}

/* Show only the active indicator */
body:not(.payment-filtered) .nbn-payment-type-indicator[data-payment='monthly'],
.payment-monthly .nbn-payment-type-indicator[data-payment='monthly'] {
    display: inline-block !important;
}

.payment-weekly .nbn-payment-type-indicator[data-payment='weekly'] {
    display: inline-block !important;
}

.payment-yearly .nbn-payment-type-indicator[data-payment='yearly'] {
    display: inline-block !important;
}

/* Ensure savings badges align with payment type */
.nbn-savings-badge {
    display: none !important;
}

body:not(.payment-filtered) .nbn-savings-badge.monthly-payment,
.payment-monthly .nbn-savings-badge.monthly-payment {
    display: block !important;
}

.payment-weekly .nbn-savings-badge.weekly-payment {
    display: block !important;
}

.payment-yearly .nbn-savings-badge.yearly-payment {
    display: block !important;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Large Desktop */
@media (min-width: 1440px) {
    .nbn-plan-card {
        flex: 0 0 calc((100% - 4rem) / 3);
        min-width: calc((100% - 4rem) / 3);
        max-width: calc((100% - 4rem) / 3);
        width: calc((100% - 4rem) / 3);
    }
}

/* Desktop */
@media (max-width: 1400px) {
    .nbn-plans-grid {
        padding: 0 3rem;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .nbn-plan-card {
        flex: 0 0 var(--card-width-tablet);
        min-width: var(--card-width-tablet);
        max-width: var(--card-width-tablet);
        width: var(--card-width-tablet);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nbn-plans-container {
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }

    .nbn-plans-grid {
        gap: 1rem;
        padding: 0 1rem;
        scroll-snap-type: x mandatory;
    }

    .nbn-plan-card {
        flex: 0 0 var(--card-width-mobile);
        min-width: var(--card-width-mobile);
        max-width: var(--card-width-mobile);
        width: var(--card-width-mobile);
        scroll-snap-align: center;
    }

    .nbn-scroll-arrow {
        display: none;
    }

    .nbn-plan-header {
        min-height: 280px;
    }

    .nbn-plan-name {
        font-size: 1.75rem;
    }

    .nbn-speed-tier {
        font-size: 1.5rem;
    }

    .nbn-plan-filters,
    .nbn-payment-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nbn-plan-filter,
    .nbn-payment-filter {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .nbn-plans-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .nbn-plans-display {
        padding: 2rem 1rem;
    }

    .nbn-plan-name {
        font-size: 1.5rem;
    }

    .nbn-plan-tier {
        font-size: 0.875rem;
    }

    .nbn-speed-tier {
        font-size: 1.25rem;
    }
}

/* ==========================================
   WORDPRESS & THEME COMPATIBILITY
   ========================================== */

/* Reset theme interference */
.nbn-plugin-wrapper * {
    box-sizing: border-box;
}

.nbn-plugin-wrapper .nbn-plans-display {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 4rem 2rem;
}

/* Ensure proper container behavior */
.entry-content .nbn-plugin-wrapper,
.site-main .nbn-plugin-wrapper,
.content-area .nbn-plugin-wrapper,
article .nbn-plugin-wrapper {
    display: block !important;
    flex: none !important;
    width: 100% !important;
}

/* Override theme grid systems */
[class*='col-'] .nbn-plans-grid,
[class*='column'] .nbn-plans-grid,
.row .nbn-plans-grid {
    display: flex !important;
}

/* Disable floating shapes */
.troppo-float-shapes,
.troppo-shape {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes troppoFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes troppoGlow {
    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 142, 83, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 142, 83, 0.5);
    }
}

/* ==========================================
   NBN CART SUMMARY STYLES
   ========================================== */

/* Cart Summary Layout - Enhanced version - see NBN Flow section above for main styles */

.nbn-cart-summary {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.nbn-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.nbn-cart-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.nbn-cart-total-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4ecdc4;
}

/* Additional cart summary styles are defined in NBN Flow section above */

/* ==========================================
   MODEM SECTION STYLES
   ========================================== */

.nbn-modems-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.nbn-modem-card {
    background: linear-gradient(180deg, #2a5298 0%, #1e3c72 100%);
    border: 2px solid rgba(79, 209, 197, 0.3);
    border-radius: 20px;
    width: 380px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nbn-modem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #4ecdc4;
}

.nbn-modem-card.selected {
    border-color: #4ecdc4;
    box-shadow: 0 0 30px rgba(79, 209, 197, 0.3);
}

.nbn-modem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #20d6b4 0%, #3ebd60 33%, #ffd93d 66%, #ff6b6b 100%);
}

.modem-details {
    padding: 2rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modem-details .modem-price {
    margin-top: auto;
}

.modem-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #20d6b4 0%, #33e5c8 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.modem-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.modem-description {
    font-size: 1rem;
    color: #8892b0;
    margin-bottom: 1rem;
}

.modem-price {
    font-size: 2rem;
    font-weight: 700;
    color: #4ecdc4;
    margin: 1rem 0;
}

.modem-details-toggle {
    background: none;
    border: none;
    color: #4ecdc4;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.4rem 0;
    margin-bottom: 0.5rem;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.modem-details-toggle:hover {
    color: #6ee7de;
}

.modem-actions {
    padding: 1.5rem 2rem 2rem;
}

.modem-actions .troppo-btn {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ==========================================
   PHONE SELECTION STYLES
   ========================================== */

.nbn-voip-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.nbn-voip-option {
    background: linear-gradient(180deg, #2a5298 0%, #1e3c72 100%);
    border: 2px solid rgba(79, 209, 197, 0.3);
    border-radius: 20px;
    width: 300px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nbn-voip-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #20d6b4 0%, #3ebd60 33%, #ffd93d 66%, #ff6b6b 100%);
}

.nbn-voip-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #4ecdc4;
}

.nbn-voip-option.selected {
    border-color: #4ecdc4;
    box-shadow: 0 0 30px rgba(79, 209, 197, 0.3);
}

.voip-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #20d6b4 0%, #33e5c8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.voip-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-align: center;
}

.voip-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4ecdc4;
    text-align: center;
}

/* ==========================================
   NBN FLOW SPECIFIC STYLES
   ========================================== */

.nbn-voip-option-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.nbn-voip-option-text {
    color: white;
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
}

.nbn-voip-plan-container {
    max-width: 600px;
    margin: 2rem auto;
}

.nbn-voip-plan-card {
    background: linear-gradient(180deg, #2a5298 0%, #1e3c72 100%);
    border: 2px solid rgba(79, 209, 197, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nbn-voip-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #20d6b4 0%, #3ebd60 33%, #ffd93d 66%, #ff6b6b 100%);
}

.nbn-voip-plan-header h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.nbn-voip-plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4ecdc4;
    margin: 1rem 0;
}

.nbn-voip-plan-term {
    font-size: 1rem;
    color: #8892b0;
}

.nbn-voip-plan-features h4 {
    color: white;
    margin-bottom: 1rem;
}

.nbn-voip-included {
    background: rgba(79, 209, 197, 0.2);
    color: #4ecdc4;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #4ecdc4;
    margin-top: 1rem;
}

/* Center align all sections */
.nbn-flow-section {
    text-align: center;
    margin-bottom: 4rem;
}

.nbn-flow-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Responsive cart */
@media (max-width: 768px) {
    .nbn-cart-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nbn-cart-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nbn-cart-totals-summary {
        justify-content: center;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

/* Focus styles */
.nbn-plan-filter:focus,
.nbn-payment-filter:focus,
.nbn-select-plan:focus,
.nbn-features-toggle:focus {
    outline: 2px solid var(--troppo-lagoon);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nbn-plan-card {
        border: 2px solid white;
    }

    .nbn-plan-filter,
    .nbn-payment-filter {
        border-width: 2px;
    }
}


/* ==========================================
   CONSOLIDATED: nbn-plans-3-card-fix.css
   3-card desktop display constraints
   ========================================== */

/* Desktop screens - show exactly 3 cards */
@media (min-width: 1024px) {
    .nbn-plans-container {
        max-width: 1200px;
        margin: 0 auto;
        overflow: hidden;
    }

    .nbn-plans-grid {
        width: 100%;
        overflow-x: auto;
        display: flex;
        gap: 2rem;
        padding: 0 4rem;
    }

    /* Fixed width for exactly 3 cards */
    .nbn-plan-card {
        flex: 0 0 calc((1200px - 8rem - 4rem) / 3) !important;
        min-width: calc((1200px - 8rem - 4rem) / 3) !important;
        max-width: calc((1200px - 8rem - 4rem) / 3) !important;
        width: calc((1200px - 8rem - 4rem) / 3) !important;
    }

    /* Ensure hidden cards do not take up space */
    .nbn-plan-card.filter-hidden {
        display: none !important;
        flex: 0 0 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
    }
}

.nbn-plan-filter {
    cursor: pointer;
    transition: all 0.3s ease;
}

.nbn-plan-filter.active {
    background-color: var(--troppo-sunset, #ff8e53);
    color: white;
}

.nbn-plan-standard,
.nbn-plan-more {
    transition: opacity 0.3s ease;
}

/* When Standard filter is active */
body:has(.nbn-plan-filter[data-filter='standard'].active) .nbn-plan-more {
    display: none !important;
}

/* When More filter is active */
body:has(.nbn-plan-filter[data-filter='more'].active) .nbn-plan-standard {
    display: none !important;
}

/* Fallback for browsers without :has() support */
.filter-active-standard .nbn-plan-more {
    display: none !important;
}

.filter-active-more .nbn-plan-standard {
    display: none !important;
}

/* ==========================================
   CONNECTION TYPE DIAGRAM
   ========================================== */

.nbn-conn-diagram {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.7) 0%, rgba(13, 27, 62, 0.85) 100%);
    border: 1px solid rgba(79, 209, 197, 0.25);
    border-radius: 16px;
    padding: 1.5rem 2rem 1.25rem;
    margin-bottom: 2rem;
}

.nbn-conn-diagram-intro {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nbn-conn-diagram-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap;
}

.nbn-conn-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
    position: relative;
    min-width: 80px;
    max-width: 110px;
    padding-top: 14px;
}

.nbn-conn-node-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(79, 209, 197, 0.1);
    border: 1.5px solid rgba(79, 209, 197, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
}

.nbn-conn-node.nbn-conn-required .nbn-conn-node-icon {
    background-color: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.6);
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
}

.nbn-conn-node.nbn-conn-optional .nbn-conn-node-icon {
    opacity: 0.55;
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.nbn-conn-required-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b35;
    color: white;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 1;
}

.nbn-conn-node-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
    line-height: 1.3;
}

.nbn-conn-node.nbn-conn-optional .nbn-conn-node-label {
    color: rgba(255, 255, 255, 0.5);
}

.nbn-conn-node-sub {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.2;
}

/* Arrow connector between nodes */
.nbn-conn-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 6px;
    flex-shrink: 0;
}

.nbn-conn-arrow-line {
    width: 36px;
    height: 2px;
    background: rgba(79, 209, 197, 0.45);
    position: relative;
    border-radius: 1px;
}

.nbn-conn-arrow-line::after {
    content: '';
    position: absolute;
    right: -1px;
    top: -4px;
    border-left: 8px solid rgba(79, 209, 197, 0.55);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.nbn-conn-arrow.nbn-conn-optional .nbn-conn-arrow-line {
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.25) 0px,
        rgba(255, 255, 255, 0.25) 5px,
        transparent 5px,
        transparent 9px
    );
}

.nbn-conn-arrow.nbn-conn-optional .nbn-conn-arrow-line::after {
    border-left-color: rgba(255, 255, 255, 0.25);
}

.nbn-conn-arrow-label {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    white-space: nowrap;
}

/* Info note below diagram */
.nbn-conn-diagram-note {
    margin-top: 1.25rem;
    padding: 0.6rem 0.9rem;
    background: rgba(79, 209, 197, 0.07);
    border-left: 3px solid rgba(79, 209, 197, 0.5);
    border-radius: 0 8px 8px 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    line-height: 1.5;
}

.nbn-conn-diagram-note strong {
    color: #4ecdc4;
}

/* ---- CABLE CONNECTORS (replace arrows) ---- */
.nbn-conn-cable {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 0 4px;
    padding-top: 28px;
    flex-shrink: 0;
}

.nbn-conn-cable-img {
    width: 64px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.nbn-conn-cable-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    white-space: nowrap;
}

/* Phone cable - curly cord with connectors */
.nbn-cable-phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 28' fill='none'%3E%3Cpath d='M6 14 C12 4,16 24,22 14 C28 4,32 24,38 14 C44 4,48 24,54 14 C58 8,62 14,66 14' stroke='%234ecdc4' stroke-width='2' stroke-linecap='round' fill='none' opacity='0.6'/%3E%3Crect x='0' y='10' width='7' height='8' rx='1.5' fill='%234ecdc4' opacity='0.3'/%3E%3Crect x='65' y='10' width='7' height='8' rx='1.5' fill='%234ecdc4' opacity='0.3'/%3E%3C/svg%3E");
}

/* Ethernet cable - straight with RJ45 plugs */
.nbn-cable-ethernet {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 28' fill='none'%3E%3Cline x1='8' y1='14' x2='64' y2='14' stroke='%234ecdc4' stroke-width='2.5' stroke-linecap='round' opacity='0.5'/%3E%3Crect x='0' y='8' width='10' height='12' rx='2' fill='none' stroke='%234ecdc4' stroke-width='1.5' opacity='0.6'/%3E%3Crect x='2' y='10' width='6' height='3' rx='0.5' fill='%234ecdc4' opacity='0.25'/%3E%3Crect x='62' y='8' width='10' height='12' rx='2' fill='none' stroke='%234ecdc4' stroke-width='1.5' opacity='0.6'/%3E%3Crect x='64' y='10' width='6' height='3' rx='0.5' fill='%234ecdc4' opacity='0.25'/%3E%3C/svg%3E");
}

/* ---- ACCORDION WRAPPER ---- */
.nbn-conn-accordion {
    margin-bottom: 1.5rem;
    grid-column: 1 / -1;
}

.nbn-conn-accordion-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(79, 209, 197, 0.08);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: 12px;
    cursor: pointer;
    color: white;
    font-family: inherit;
    text-align: left;
    transition: background 200ms ease-out, border-color 200ms ease-out;
    min-height: 48px;
}

.nbn-conn-accordion-toggle:hover {
    background: rgba(79, 209, 197, 0.14);
    border-color: rgba(79, 209, 197, 0.35);
}

.nbn-conn-accordion-toggle:focus-visible {
    outline: 2px solid #4ecdc4;
    outline-offset: 2px;
}

.nbn-conn-accordion-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.nbn-conn-accordion-summary {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.nbn-conn-accordion-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ecdc4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 200ms ease-out;
}

.nbn-conn-accordion-open .nbn-conn-accordion-chevron {
    transform: rotate(180deg);
}

.nbn-conn-accordion-open .nbn-conn-accordion-toggle {
    border-radius: 12px 12px 0 0;
    border-bottom-color: transparent;
}

.nbn-conn-accordion-body {
    overflow: hidden;
}

.nbn-conn-accordion-body .nbn-conn-diagram {
    border-radius: 0 0 16px 16px;
    border-top: none;
}

/* Mesh-requires-modem notice inside modem card */
.nbn-modem-requires-notice {
    display: none;
    margin-top: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.4);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: left;
}

.nbn-modem-requires-notice strong {
    color: #ff8a5c;
    display: block;
    margin-bottom: 2px;
}

/* ---- MOBILE: Vertical stack under 640px ---- */
@media (max-width: 639px) {
    .nbn-conn-diagram {
        padding: 1rem;
    }

    .nbn-conn-diagram-flow {
        flex-direction: column;
        align-items: center;
    }

    .nbn-conn-node {
        padding-top: 10px;
        min-width: auto;
        max-width: none;
        flex-direction: row;
        gap: 0.75rem;
        text-align: left;
        width: 100%;
        max-width: 280px;
    }

    .nbn-conn-node-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        border-radius: 10px;
    }

    .nbn-conn-node .nbn-conn-node-label,
    .nbn-conn-node .nbn-conn-node-sub {
        text-align: left;
    }

    .nbn-conn-required-badge {
        top: 2px;
        left: auto;
        right: 0;
        transform: none;
    }

    .nbn-conn-cable {
        padding: 2px 0;
        flex-direction: row;
        gap: 6px;
    }

    .nbn-conn-cable-img {
        width: 32px;
        height: 20px;
        transform: rotate(90deg);
    }

    .nbn-conn-accordion-summary {
        display: none;
    }

    .nbn-conn-accordion-toggle {
        padding: 0.65rem 0.85rem;
    }
}

/* GT homepage carousel: centre prev/next arrows (move 3rem gap grid->container) */
body .nbn-plans-display .nbn-plans-container { margin: 0 auto 3rem !important; }
body .nbn-plans-display .nbn-plans-grid { position: relative !important; margin-bottom: 0 !important; }
body .nbn-plans-container .nbn-scroll-arrow { top: calc(50% + 15px) !important; } /* over Customizer 58% */
@media (max-width: 768px) {
  body .nbn-plans-display .nbn-plans-container { margin-bottom: 2rem !important; }
}

/* GT recommended badge: drop below the special/promo badge when both present */
body .nbn-plugin-wrapper .nbn-plan-card:has(.nbn-promotional-badge) .nbn-recommended-badge { top: 18px !important; }
body .nbn-plugin-wrapper .nbn-plan-card:has(.nbn-promotional-badge) .nbn-plan-header { padding-top: 64px !important; }
