/* ========================================
   TABBED INTERFACE COMPONENT STYLES
   Based on Figma design node 12:280
   ======================================== */

/* Main Tabs Container */
.section-tabs {
    position: relative;
    width: 100%;
    background: var(--white);
    padding: var(--spacing-20) 0;
    overflow: hidden;
    z-index: 1;
    /* Sticky site header + optional WP admin bar */
    scroll-margin-top: clamp(4.5rem, 12vw, 7rem);
}

.tabs-container {
    position: relative;
    max-width: 1640px; /* Match content section container width */
    width: calc(100% - 72px); /* Match content section width calculation */
    margin: 0 auto; /* Center like content section */
    padding: 0 20px; /* Match content section container padding */
    display: flex;
    gap: var(--spacing-16);
    align-items: stretch;
    min-height: 600px; /* Use min-height instead of fixed height */
}

/* Main Content Area (Left Side) */
.tabs-content-area {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--spacing-20) var(--spacing-8) var(--spacing-8) 0;
    margin: 0 0 0 0;
}

.tab-content {
    display: none;
    height: 100%;
}

.tab-content--active {
    display: block;
    height: 100%;
}

/* Tab Icon */
.tab-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tab-icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tab-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-green);
}

/* Responsive Tab Icon Styles */
@media (max-width: 768px) {
    .tab-icon {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .tab-icon {
        width: 40px;
        height: 40px;
    }
}

/* Tab Content Layout */
.tab-content-layout {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-6);
}

.tab-icon-column {
    flex-shrink: 0;
    width: 68px;
}

.tab-content-column {
    flex: 1;
    padding-left: 0;
}

/* Tab Content Title */
.tab-content-title {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-6);
}

.tab-number {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1rem, 0.9rem + 0.35vw, 1.1875rem); /* ~16px → 19px */
    font-weight: 600;
    color: #40b45f;
    line-height: 1.2;
    letter-spacing: -0.02em;
    min-width: 2.5rem;
}

.tab-title {
    color: #121F35;
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.25rem, 1.05rem + 0.85vw, 1.875rem); /* ~20px → 30px — section heading, not hero */
    font-style: normal;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin: 0;
}

/* Tab Content Description */
.tab-description {
    margin-bottom: var(--spacing-8);
}

.tab-description p {
    color: #121F35;
    font-family: var(--font-primary, 'Sora', sans-serif);
    font-size: clamp(0.9375rem, 0.88rem + 0.28vw, 1.0625rem); /* ~15px → 17px body */
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    max-width: 1170px;
}

/* Tab Delivery Section */
.tab-delivery {
    max-width: 743px;
}

.delivery-title {
    color: #121F35;
    font-family: 'Sora', sans-serif;
    font-size: clamp(1rem, 0.92rem + 0.35vw, 1.125rem); /* ~16px → 18px */
    font-style: normal;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 var(--spacing-4) 0;
}

.delivery-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.delivery-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
    color: #121F35;
    font-family: var(--font-primary, 'Sora', sans-serif);
    font-size: clamp(0.875rem, 0.82rem + 0.22vw, 1rem); /* ~14px → 16px */
    font-style: normal;
    font-weight: 500;
    line-height: 1.55;
}

.delivery-icon {
    color: var(--primary-green);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    line-height: 1;
    flex-shrink: 0;
    margin-top: 3px;
}

.delivery-text {
    flex: 1;
    color: #121F35;
    font-family: inherit;
    font-size: inherit;
    font-style: normal;
    font-weight: 500;
    line-height: 1.55;
}

/* Tab Navigation (Right Side) */
.tabs-navigation {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-2);
    width: auto;
    flex-shrink: 0;
    justify-content: flex-end;
    height: 825px;
    align-items: stretch;
}

.tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-1);
    background: #e4e7ec;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-all);
    border-radius: var(--radius-lg);
    min-width: 60px;
    height: 825px;
    flex: 1;
}

.tab-button:hover {
    background: #d1d5db;
}

.tab-button:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

.tab-button--active {
    background: #2a6b4e;
    color: var(--white);
}

.tab-button-number {
    color: #40B45F;
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.tab-button--active .tab-button-number {
    color: var(--white);
}

.tab-button-title {
    color: #121F35;
    font-family: 'Sora', sans-serif;
    font-size: 0.9375rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.25;
    text-transform: lowercase;
    text-align: center;
    max-width: 80px;
    word-wrap: break-word;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.tab-button--active .tab-button-title {
    color: var(--white);
}

/* ========================================
   TABBED INTERFACE RESPONSIVE DESIGN
   ======================================== */

/* Large Desktop */
@media (min-width: 1440px) {
    .tabs-container {
        max-width: 1640px; /* Match content section container width */
    }
}

/* iPad Pro and Large Tablets */
@media (max-width: 1024px) {
    .section-tabs {
        padding: var(--spacing-16) 0;
    }

    .tabs-container {
        max-width: 1640px; /* Match content section container width */
        width: calc(100% - 72px); /* Match content section width calculation */
        padding: 0 20px; /* Match content section container padding */
        gap: var(--spacing-8);
        align-items: stretch;
    }

    .tabs-content-area {
        flex: 1;
        padding: var(--spacing-12) var(--spacing-6) var(--spacing-6) 0;
        min-width: 0; /* Allow content to shrink */
        position: relative;
        z-index: 5;
    }

    .tabs-navigation {
        width: 240px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: var(--spacing-2);
        max-height: 100%;
        overflow-y: auto;
        padding-right: var(--spacing-1);
        position: relative;
        z-index: 10;
    }

    .tab-button {
        padding: var(--spacing-4) var(--spacing-3);
        gap: var(--spacing-3);
        min-height: 80px;
        border-radius: var(--radius-lg);
        transition: all 0.3s ease;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .tab-button:hover {
        background: #e5e7eb;
        transform: translateY(-2px);
    }

    .tab-button--active {
        background: var(--primary-green);
        color: var(--white);
        box-shadow: var(--shadow-primary);
        position: relative;
        z-index: 15;
        border-left: 4px solid var(--primary-green-bright);
    }

    .tab-button-number {
        font-size: 1.0625rem;
        font-weight: var(--font-weight-bold);
    }

    .tab-button-title {
        font-size: 0.9375rem;
        line-height: 1.3;
        text-align: left;
        flex: 1;
        margin-right: var(--spacing-2);
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        transform: none;
        max-width: 140px;
        min-width: 120px;
    }

    .tab-content-layout {
        gap: var(--spacing-4);
        margin-bottom: var(--spacing-6);
    }
    
    .tab-icon-column {
        width: 48px;
    }
    
    .tab-content-column {
        padding-left: 0;
    }
    
    .tab-content-title {
        gap: var(--spacing-2);
        margin-bottom: var(--spacing-5);
    }

    .tab-title {
        font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
        line-height: 1.25;
    }

    .tab-description p {
        font-size: var(--font-size-base);
        line-height: 1.6;
        margin-bottom: var(--spacing-6);
    }

    .delivery-title {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-4);
    }

    .delivery-list {
        gap: var(--spacing-3);
    }

    .delivery-item {
        padding: var(--spacing-2) 0;
    }

    .delivery-text {
        font-size: var(--font-size-base);
        line-height: 1.5;
    }

    /* iPad Pro specific touch improvements */
    .tab-button {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Better spacing for iPad Pro landscape */
    @media (max-width: 1024px) and (orientation: landscape) {
        .section-tabs {
            height: 700px;
            min-height: 600px;
        }

        .tabs-content-area {
            padding: var(--spacing-8) var(--spacing-6) var(--spacing-4) 0;
        }

        .tabs-navigation {
            width: 220px;
            max-height: 100%;
            overflow-y: auto;
            padding-right: var(--spacing-1);
            position: relative;
            z-index: 10;
        }

        .tab-button {
            min-height: 70px;
            padding: var(--spacing-3) var(--spacing-2);
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
        }

        .tab-button-title {
            font-size: 15px;
            text-align: left;
            flex: 1;
            margin-right: var(--spacing-2);
            writing-mode: horizontal-tb;
            text-orientation: mixed;
            transform: none;
            max-width: 130px;
            min-width: 110px;
        }
    }

    /* iPad Pro portrait optimization */
    @media (max-width: 1024px) and (orientation: portrait) {
        .section-tabs {
            height: 1000px;
            min-height: 900px;
        }

        .tabs-content-area {
            padding: var(--spacing-16) var(--spacing-6) var(--spacing-8) 0;
        }

        .tabs-navigation {
            width: 260px;
            max-height: 100%;
            overflow-y: auto;
            padding-right: var(--spacing-1);
            position: relative;
            z-index: 10;
        }

        .tab-button {
            min-height: 90px;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
        }

        .tab-button-title {
            font-size: 17px;
            text-align: left;
            flex: 1;
            margin-right: var(--spacing-2);
            writing-mode: horizontal-tb;
            text-orientation: mixed;
            transform: none;
            max-width: 150px;
            min-width: 130px;
        }
    }
}

/* Medium Desktop */
@media (max-width: 1200px) {
    .section-tabs {
        padding: 0 0 0 var(--spacing-5);
        height: 650px;
    }

    .tabs-content-area {
        padding: var(--spacing-10) var(--spacing-5) var(--spacing-5) 0;
    }

    .tabs-navigation {
        width: 180px;
    }

    .tab-button {
        padding: var(--spacing-2-5) var(--spacing-2);
        gap: var(--spacing-1-5);
    }

    .tab-button-number {
        font-size: 1rem;
    }

    .tab-button-title {
        font-size: 0.9375rem;
        line-height: 1.2;
    }
}

/* Desktop */
@media (max-width: 1280px) {
    .section-tabs {
        padding: 0 0 0 var(--spacing-6);
        height: 700px;
    }

    .tabs-content-area {
        padding: var(--spacing-12) var(--spacing-6) var(--spacing-6) 0;
    }

    .tabs-navigation {
        width: 200px;
    }

    .tab-content-layout {
        gap: var(--spacing-3);
        margin-bottom: var(--spacing-5);
    }
    
    .tab-icon-column {
        width: 40px;
    }
    
    .tab-content-title {
        gap: var(--spacing-2);
        margin-bottom: var(--spacing-4);
    }

    .tab-button {
        padding: var(--spacing-3) var(--spacing-2-5);
        gap: var(--spacing-2);
    }

    .tab-button-number {
        font-size: 1.0625rem;
    }

    .tab-button-title {
        font-size: 0.9375rem;
        line-height: 1.25;
    }

    .tab-description p {
        font-size: var(--font-size-base);
    }

    .delivery-title {
        font-size: var(--font-size-lg);
    }
}

/* Small Tablets */
@media (max-width: 768px) {
    .section-tabs {
        padding: var(--spacing-16) 0;
        background: var(--white);
    }

    .tabs-container {
        max-width: 100%;
        width: 100%; /* Use full device width */
        margin: 0; /* Remove centering margins */
        padding: 0 var(--spacing-4); /* Add side padding for better mobile spacing */
        flex-direction: column; /* Stack content above tabs on mobile */
        gap: var(--spacing-6); /* Add proper gap between content and tabs */
    }

    .tabs-content-area {
        padding: var(--spacing-6) 0; /* Improved padding for mobile */
        flex: 1;
        width: 100%; /* Full width on mobile */
        order: 1; /* Content first */
    }

    /* Improved content spacing */
    .tab-content-layout {
        gap: var(--spacing-4); /* Better spacing between icon and content */
        margin-bottom: var(--spacing-6); /* Restore proper spacing */
    }

    .tab-description {
        margin-bottom: var(--spacing-6); /* Restore proper spacing */
    }

    .tab-delivery {
        margin-bottom: var(--spacing-4); /* Restore proper spacing */
    }

    .delivery-title {
        margin-bottom: var(--spacing-4); /* Better spacing for mobile */
    }

    .tabs-navigation {
        width: 100%; /* Full width on mobile */
        gap: var(--spacing-3); /* Better spacing between tabs */
        flex-shrink: 0;
        order: 2; /* Tabs second (at bottom) */
        display: flex;
        flex-direction: column; /* Vertical layout for mobile tabs - one below each other */
        justify-content: flex-start; /* Align to top instead of center */
        align-items: stretch; /* Stretch tabs to full width */
        margin-top: 0; /* Remove negative margin for better spacing */
        padding: 0 0 var(--spacing-6) 0; /* Add bottom padding for spacing */
        min-height: auto; /* Allow natural height */
    }

    .tab-button {
        padding: var(--spacing-4) var(--spacing-5); /* Improved padding for better touch targets */
        gap: var(--spacing-3); /* Better spacing between number and title */
        flex-direction: row; /* Horizontal layout for mobile tabs */
        justify-content: flex-start; /* Align content to left */
        align-items: center;
        width: 100%; /* Use full width of container */
        height: 60px !important; /* Increased height for better touch targets */
        min-height: 60px !important; /* Increased minimum height */
        max-height: 60px !important; /* Increased maximum height */
        flex-shrink: 0;
        box-sizing: border-box;
        border-radius: var(--radius-lg); /* Better border radius for mobile */
        transition: all 0.2s ease; /* Smooth transitions */
        position: relative;
        overflow: hidden;
    }

    .tab-button:hover {
        background: #d1d5db;
        transform: translateY(-1px); /* Subtle hover effect */
        box-shadow: var(--shadow-sm);
    }

    .tab-button:active {
        transform: translateY(0);
        box-shadow: var(--shadow-xs);
    }

    .tab-button--active {
        background: var(--primary-green);
        color: var(--white);
        box-shadow: var(--shadow-primary);
        transform: none;
    }

    .tab-button--active:hover {
        background: var(--primary-green-dark);
        transform: none;
    }

    .tab-button-number {
        font-size: 18px; /* Slightly larger for better readability */
        font-weight: var(--font-weight-bold);
        margin-right: var(--spacing-3); /* Better spacing */
        order: 1; /* Number first (left side) */
        flex-shrink: 0; /* Prevent number from shrinking */
    }

    .tab-button-title {
        order: 2; /* Title second (right side) */
        flex: 1; /* Allow title to take remaining space */
    }

    .tab-button-title {
        color: #121F35;
        font-family: 'Sora', sans-serif; /* Use consistent font family */
        font-size: 16px; /* Improved font size for mobile */
        font-style: normal;
        font-weight: 600;
        line-height: 1.4; /* Better line height for mobile */
        letter-spacing: -0.2px; /* Improved letter spacing */
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        transform: none;
        max-width: none;
        text-align: left; /* Left align for better mobile reading */
        word-wrap: break-word; /* Allow text wrapping */
    }

    .tab-button--active .tab-button-title {
        color: var(--white);
    }

    .tab-button--active .tab-button-number {
        color: var(--white);
    }

    .tab-content-layout {
        gap: var(--spacing-4); /* Better spacing between icon and content */
        margin-bottom: var(--spacing-6); /* Restore proper spacing */
    }
    
    .tab-icon-column {
        width: 40px; /* Slightly larger icon area */
    }
    
    .tab-content-title {
        gap: var(--spacing-2); /* Better spacing between number and title */
        margin-bottom: var(--spacing-4); /* Better spacing */
    }

    .tab-content-title .tab-number {
        font-size: 1.125rem;
        line-height: 1.2;
    }

    .tab-content-title .tab-title {
        font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
        line-height: 1.25;
    }

    .tab-description p {
        font-size: var(--font-size-base);
        line-height: 1.55;
        margin-bottom: var(--spacing-4);
    }

    .delivery-title {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-4);
    }

    .delivery-list {
        gap: var(--spacing-3); /* Better spacing between items */
    }

    .delivery-item {
        gap: var(--spacing-2); /* Better spacing between icon and text */
        padding: var(--spacing-1) 0; /* Add vertical padding for better touch targets */
    }

    .delivery-icon {
        font-size: 18px; /* Slightly larger for better visibility */
        margin-top: 2px; /* Better alignment */
    }

    .delivery-text {
        font-size: var(--font-size-sm);
        line-height: 1.5;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .section-tabs {
        padding: var(--spacing-12) 0;
        background: var(--white);
    }

    .tabs-container {
        max-width: 100%;
        width: 100%; /* Use full device width */
        margin: 0; /* Remove centering margins */
        padding: 0 var(--spacing-4); /* Add side padding for better mobile spacing */
        flex-direction: column; /* Stack content above tabs on mobile */
        gap: var(--spacing-4); /* Add proper gap between content and tabs */
    }

    .tabs-content-area {
        padding: var(--spacing-4) 0; /* Improved padding for mobile */
        flex: 1;
        width: 100%; /* Full width on mobile */
        order: 1; /* Content first */
    }

    /* Improved content spacing */
    .tab-content-layout {
        gap: var(--spacing-3); /* Better spacing between icon and content */
        margin-bottom: var(--spacing-4); /* Restore proper spacing */
    }

    .tab-description {
        margin-bottom: var(--spacing-4); /* Restore proper spacing */
    }

    .tab-delivery {
        margin-bottom: var(--spacing-3); /* Restore proper spacing */
    }

    .delivery-title {
        margin-bottom: var(--spacing-3); /* Better spacing for mobile */
    }

    .tabs-navigation {
        width: 100%; /* Full width on mobile */
        gap: var(--spacing-2); /* Better spacing between tabs */
        flex-shrink: 0;
        order: 2; /* Tabs second (at bottom) */
        display: flex;
        flex-direction: column; /* Vertical layout for mobile tabs - one below each other */
        justify-content: flex-start; /* Align to top instead of center */
        align-items: stretch; /* Stretch tabs to full width */
        margin-top: 0; /* Remove negative margin for better spacing */
        padding: 0 0 var(--spacing-4) 0; /* Add bottom padding for spacing */
        min-height: auto; /* Allow natural height */
    }

    .tab-button {
        padding: var(--spacing-3) var(--spacing-4); /* Improved padding for better touch targets */
        gap: var(--spacing-2); /* Better spacing between number and title */
        flex-direction: row; /* Horizontal layout for mobile tabs */
        justify-content: flex-start; /* Align content to left */
        align-items: center;
        width: 100%; /* Use full width of container */
        height: 56px !important; /* Increased height for better touch targets */
        min-height: 56px !important; /* Increased minimum height */
        max-height: 56px !important; /* Increased maximum height */
        flex-shrink: 0;
        box-sizing: border-box;
        border-radius: var(--radius-lg); /* Better border radius for mobile */
        transition: all 0.2s ease; /* Smooth transitions */
        position: relative;
        overflow: hidden;
    }

    .tab-button:hover {
        background: #d1d5db;
        transform: translateY(-1px); /* Subtle hover effect */
        box-shadow: var(--shadow-sm);
    }

    .tab-button:active {
        transform: translateY(0);
        box-shadow: var(--shadow-xs);
    }

    .tab-button--active {
        background: var(--primary-green);
        color: var(--white);
        box-shadow: var(--shadow-primary);
        transform: none;
    }

    .tab-button--active:hover {
        background: var(--primary-green-dark);
        transform: none;
    }

    .tab-button-number {
        font-size: 16px; /* Better size for mobile */
        font-weight: var(--font-weight-bold);
        margin-right: var(--spacing-2); /* Better spacing */
        order: 1; /* Number first (left side) */
        flex-shrink: 0; /* Prevent number from shrinking */
    }

    .tab-button-title {
        order: 2; /* Title second (right side) */
        flex: 1; /* Allow title to take remaining space */
    }

    .tab-button-title {
        color: #121F35;
        font-family: 'Sora', sans-serif; /* Use consistent font family */
        font-size: 15px; /* Improved font size for mobile */
        font-style: normal;
        font-weight: 600;
        line-height: 1.3; /* Better line height for mobile */
        letter-spacing: -0.1px; /* Improved letter spacing */
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        transform: none;
        max-width: none;
        text-align: left; /* Left align for better mobile reading */
        word-wrap: break-word; /* Allow text wrapping */
    }

    .tab-button--active .tab-button-title {
        color: var(--white);
    }

    .tab-button--active .tab-button-number {
        color: var(--white);
    }

    .tab-content-layout {
        gap: var(--spacing-3); /* Better spacing between icon and content */
        margin-bottom: var(--spacing-4); /* Restore proper spacing */
    }
    
    .tab-icon-column {
        width: 36px; /* Slightly larger icon area */
    }
    
    .tab-content-title {
        gap: var(--spacing-1-5); /* Better spacing between number and title */
        margin-bottom: var(--spacing-3); /* Better spacing */
    }

    .tab-content-title .tab-number {
        font-size: 1.0625rem;
        line-height: 1.2;
    }

    .tab-content-title .tab-title {
        font-size: 1.125rem;
        line-height: 1.25;
    }

    .tab-description p {
        font-size: var(--font-size-sm);
        line-height: 1.5;
        margin-bottom: var(--spacing-3);
    }

    .delivery-title {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-3);
    }

    .delivery-list {
        gap: var(--spacing-2); /* Better spacing between items */
    }

    .delivery-item {
        gap: var(--spacing-1-5); /* Better spacing between icon and text */
        padding: var(--spacing-1) 0; /* Add vertical padding for better touch targets */
    }

    .delivery-icon {
        font-size: 16px; /* Slightly larger for better visibility */
        margin-top: 2px; /* Better alignment */
    }

    .delivery-text {
        font-size: var(--font-size-sm);
        line-height: 1.45;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .section-tabs {
        padding: var(--spacing-10) 0;
        background: var(--white);
    }

    .tabs-container {
        max-width: 100%;
        width: 100%; /* Use full device width */
        margin: 0; /* Remove centering margins */
        padding: 0 var(--spacing-3); /* Add side padding for better mobile spacing */
        flex-direction: column; /* Stack content above tabs on mobile */
        gap: var(--spacing-3); /* Add proper gap between content and tabs */
    }

    .tabs-content-area {
        flex: 1;
        width: 100%; /* Full width on mobile */
        order: 1; /* Content first */
        padding: var(--spacing-3) 0; /* Improved padding for mobile */
    }

    /* Improved content spacing */
    .tab-content-layout {
        gap: var(--spacing-2); /* Better spacing between icon and content */
        margin-bottom: var(--spacing-3); /* Restore proper spacing */
    }

    .tab-description {
        margin-bottom: var(--spacing-3); /* Restore proper spacing */
    }

    .tab-delivery {
        margin-bottom: var(--spacing-2); /* Restore proper spacing */
    }

    .delivery-title {
        margin-bottom: var(--spacing-2); /* Better spacing for mobile */
    }

    .tabs-navigation {
        width: 100%; /* Full width on mobile */
        flex-shrink: 0;
        order: 2; /* Tabs second (at bottom) */
        display: flex;
        flex-direction: column; /* Vertical layout for mobile tabs - one below each other */
        justify-content: flex-start; /* Align to top instead of center */
        align-items: stretch; /* Stretch tabs to full width */
        gap: var(--spacing-1-5);
        margin-top: 0; /* Remove negative margin for better spacing */
        padding: 0 0 var(--spacing-3) 0; /* Add bottom padding for spacing */
        min-height: auto; /* Allow natural height */
    }

    .tab-button {
        padding: var(--spacing-2-5) var(--spacing-3); /* Improved padding for better touch targets */
        gap: var(--spacing-1-5); /* Better spacing between number and title */
        flex-direction: row; /* Horizontal layout for mobile tabs */
        justify-content: flex-start; /* Align content to left */
        align-items: center;
        width: 100%; /* Use full width of container */
        height: 52px !important; /* Increased height for better touch targets */
        min-height: 52px !important; /* Increased minimum height */
        max-height: 52px !important; /* Increased maximum height */
        flex-shrink: 0;
        box-sizing: border-box;
        border-radius: var(--radius-md); /* Better border radius for mobile */
        transition: all 0.2s ease; /* Smooth transitions */
        position: relative;
        overflow: hidden;
    }

    .tab-button:hover {
        background: #d1d5db;
        transform: translateY(-1px); /* Subtle hover effect */
        box-shadow: var(--shadow-sm);
    }

    .tab-button:active {
        transform: translateY(0);
        box-shadow: var(--shadow-xs);
    }

    .tab-button--active {
        background: var(--primary-green);
        color: var(--white);
        box-shadow: var(--shadow-primary);
        transform: none;
    }

    .tab-button--active:hover {
        background: var(--primary-green-dark);
        transform: none;
    }

    .tab-button-number {
        font-size: 14px; /* Better size for small mobile */
        font-weight: var(--font-weight-bold);
        margin-right: var(--spacing-1-5); /* Better spacing */
        order: 1; /* Number first (left side) */
        flex-shrink: 0; /* Prevent number from shrinking */
    }

    .tab-button-title {
        order: 2; /* Title second (right side) */
        flex: 1; /* Allow title to take remaining space */
    }

    .tab-button-title {
        color: #121F35;
        font-family: 'Sora', sans-serif; /* Use consistent font family */
        font-size: 14px; /* Improved font size for small mobile */
        font-style: normal;
        font-weight: 600;
        line-height: 1.2; /* Better line height for small mobile */
        letter-spacing: -0.05px; /* Improved letter spacing */
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        transform: none;
        max-width: none;
        text-align: left; /* Left align for better mobile reading */
        word-wrap: break-word; /* Allow text wrapping */
    }

    .tab-button--active .tab-button-title {
        color: var(--white);
    }

    .tab-button--active .tab-button-number {
        color: var(--white);
    }

    .tab-content-title .tab-number {
        font-size: 1rem;
        line-height: 1.2;
    }

    .tab-content-title .tab-title {
        font-size: 1.0625rem;
        line-height: 1.25;
    }

    .tab-description p {
        font-size: 0.875rem;
        line-height: 1.45;
        margin-bottom: var(--spacing-2);
    }

    .delivery-title {
        font-size: 0.9375rem;
        margin-bottom: var(--spacing-2);
    }

    .delivery-text {
        font-size: 0.8125rem;
        line-height: 1.45;
    }
}
