/* ==========================================================================
   LAYOUT - Grid structure, tabs, containers
   ========================================================================== */

/* Tab Base Styles */
.tab {
    background: #0f0d0f;
    border: solid 1px #808080;
    overflow-y: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Tab Padding */
.tab-padding, 
.tab-heading-padding,
.tab-body-padding,
.tab-side-padding{
    padding: 2rem;
}

.tab-heading-padding {
    padding-bottom: 0rem;
}

.tab-body-padding {
    padding-top: 0rem;
}
.tab-side-padding {
    padding-top: 0rem;
    padding-bottom: 0rem;
}

/* Tab Heading */
.tab-heading {
    display: flex;
    align-items: center;
    justify-content: stretch;
    overflow: auto;
    gap: 0.5rem;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
}

.tab-bubble-wrapper {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 0.5rem;
}

.tab-bubble {
    display: flex;
    align-items: center;
    gap: 0.5em;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

    .tab-bubble:hover {
        transform: scale(1.05);
    }

.bubble-number {
    background-color: #444;
    color: white;
    border-radius: 50%;
    width: 1.8rem;
    height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.bubble-number.active {
    background: linear-gradient(90deg, #888, #ccc);
}

    .bubble-number.completed {
        background: linear-gradient(90deg, rgb(0, 116, 13), rgb(90, 181, 100));
    }

.tab-connector {
    flex: 1 1 auto;
    height: 1px;
    border-bottom: 1px dotted #777;
    margin: 0 0.3rem;
    min-width: 1rem;
}

.tab-bubble label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.5s ease, opacity 0.5s ease, margin-left 0.5s ease;
    margin-left: 0;
}

.tab-bubble.active label, .tab-bubble.title label {
    max-width: fit-content;
    opacity: 1;
    margin-left: 0.5rem;
}

.tab-divider {
    border: none;
    height: 1px;
    background-color: #555;
    margin-bottom: 1.5rem;
}
.tab-divider-margin {
    margin-bottom: 1.5rem;
}
.row {
    display: flex;
    gap: 1.0rem;
    align-items: center;
}

    .row > * {
        flex: 0 1 auto;
    }
    .row .summary-row{
        flex: 10 1 1rem;
    }
    .row button{
        flex: 1 1 auto;
        width:fit-content;
    }

/* Order Grid Layout */
.order-grid {
    display: grid;
    grid-template-columns: 2fr auto;
    grid-auto-rows: 1fr;
    min-height: 55vh;
    /*max-height: 70vh;*/
    overflow: hidden;
    column-gap: 2rem;
    margin-top: 5rem;
}

/* Order Column */
.order-collumn {
    display: flex;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
}

.checkout-steps {
    flex: 0 0 auto;
}

.order-tab {
    flex: 0 1 auto;
    background: radial-gradient(circle at 35% 75%, rgba(155, 0, 0, 0.04) 30%, rgba(15, 13, 15, 1));
}

.tab-footer {
    display: grid;
    grid-template-columns: 1fr auto; /* left column flexible, right fits content */
    align-items: center;
}


    .tab-footer .gray-btn {
        justify-self: start; /* always left */
        min-width: 8rem;
    }

    .tab-footer .red-btn {
        justify-self: end; /* always right */
        min-width: 12rem;
    }


/* Mobile Responsive */
@media (max-width: 1300px) {
    .order-grid {
        grid-template-columns: 1fr;
        max-height: none;
        margin-top: 2rem;
        grid-auto-rows:unset;
        gap: 1.5rem;
    }

    .order-collumn {
        height: auto;
    }

    .tab {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .order-grid {
        margin-top: 1rem;
        min-height:0;
        gap: 1rem;
    }

    .tab-padding,
    .tab-heading-padding,
    .tab-body-padding,
    .tab-side-padding{
        padding: 1.5rem;
    }

    .tab-heading {
        font-size: 1.25rem;
    }
}