/* Add padding to the body to prevent content from touching the sides */
body {
    padding-left: 24px;
    padding-right: 24px;
    margin: 0;
    box-sizing: border-box;
}

/* Style for the navbar */
.navbar {
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
    position: fixed;
    top: 0;
    left: 0;
    height: 56px;
    display: flex;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
}

/* Add top padding to the main content to avoid being hidden under navbar */
.main-content {
    padding-top: 72px;
    /* navbar height + some space */
}

.del {

    padding: 0.5em 1em !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline-block !important;
    transition: background-color 0.3s ease !important;
}



.account-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* ✅ allow wrapping on smaller screens */
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    font-size: clamp(0.7rem, 2.5vw, 1rem);
    /* shrink font as needed */
}

.account-nav ul {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-title,
.account-actions .btn-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.25rem 0.5rem;
    font-size: clamp(0.75rem, 2.5vw, 1rem);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
    /* allows stacking on small screens */
    gap: 1rem;
    border-bottom: 1px solid #ccc;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
}

.main-nav .brand img.logo {
    max-height: 40px;
    height: auto;
    width: auto;
}

.main-nav span.brand-text {
    white-space: nowrap;
}

.price-row {
    display: flex;
    flex-wrap: wrap;
    /* ✅ allow wrapping */
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.5rem;
}

.price-row p {
    margin: 0;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 40%;
    /* ✅ allow flexible size */
    max-width: 45%;
}


/* Mobile adjustments */
@media (max-width: 768px) {


    .account-nav {
        flex-direction: column;
        /* ✅ stack title and actions */
        align-items: flex-start;
        margin-bottom: 0.5rem;
        /* 🔽 reduce space below the whole nav */
        margin-top: 0rem;
        /* 🔽 reduce space above it too */
        gap: 0.25rem;
    }

    .price-row {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        gap: 1rem;
        width: 100%;
        margin-bottom: 1rem;
    }

    .price-row p {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        margin: 0;
        text-align: center;
    }

    .account-title {
        margin-bottom: 0.25rem;
        /* 🔽 reduce bottom space below title */
    }

    .account-nav ul {
        width: 100%;
        margin: 0;
        justify-content: space-between;
    }

    .account-actions {
        flex-wrap: wrap;
        /* allow links to wrap within their own line too */
        row-gap: 0.25rem;
    }

    .account-actions .btn-link {
        padding: 0.2rem 0.5rem;
        font-size: 0.85rem;
    }

    .main-nav {
        flex-direction: column;
        padding: 0.25rem 0.75rem;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .main-nav ul {
        width: 100%;
        justify-content: space-between;
    }

    .main-nav ul:nth-child(2) {
        margin-top: 0.25rem;
    }

    .main-nav li span,
    .main-nav a {
        font-size: 0.9rem;
        padding: 0.2rem 0.4rem;
    }

    .account-nav ul:nth-child(2) {
        border-top: 1px solid #ddd;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }

}