.d-none {
    display: none;
}
  
.my-container {
    width: 90%; /* Width by default */
    margin-left: auto; /* Center the container horizontally */
    margin-right: auto;
    box-sizing: border-box;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
    /* Max-widths mimic Bootstrap breakpoints */
    max-width: 100%; /* Default for very small screens */
}

@media (min-width: 576px) {
    .my-container {
        max-width: 540px; /* Small breakpoint */
    }
}

@media (min-width: 768px) {
    .my-container {
        max-width: 720px; /* Medium breakpoint */
    }
}

@media (min-width: 992px) {
    .my-container {
        max-width: 960px; /* Large breakpoint */
    }
}

@media (min-width: 1200px) {
    .my-container {
        max-width: 1140px; /* Extra-large breakpoint */
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
}

.pricing-header {
    display: inline-flexbox;
    padding: 20px 30px 5px 30px;
    background-color: #DDEFFD; 
    border-radius: 15px; 
    margin-bottom: 1.75rem;
}

.top-bar {
    /* Display currency selection & View Cart side by side */
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem; /* space below the bar */
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    justify-content: flex-start; 
    height: 100%; /* Ensures the container takes up the full height */
    gap: 1rem; /* Space between columns */
    overflow-x: auto;
    width: auto;
    scrollbar-width: none; 
}

.pricing-blurb {
    list-style-type: none;
    margin-left: 20px;
    font-size: 16px;
}

.pricing-blurb li::before {
    content: "●";
    color: #62AEFB;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.pricing-btn {
    margin-top:auto;
    text-align:center;
}

.pricing-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar in Chrome/Safari/Opera */
}

.tier-column {
    flex: 1 1 calc((100% - 2rem) / 3); /* Allow flex items to grow, shrink, and fit three columns */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Ensures the div takes up the full height */
    max-width: calc((100% - 2rem) / 3); /* Ensure no overflow (3 columns, 1rem gap) */
    padding: 1rem;
    border-radius: 12px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .tier-column {
        flex: 1 1 100%; /* Make each tier-column take up 100% width */
        max-width: 100%;
    }
}

.tier-column .pricing-cell:last-child {
    margin-bottom: 0rem; /* remove space below the last cell */
}

/* "Essentials" column (default) */
.tier-essentials {
    border: 4px solid #595959;
    background-color: #FFFFFF;
}

/* "Complete" column */
.tier-complete {
    border: 4px solid #0D47A1;
    background-color: #FFFFFF;
}

/* "Premium" column */
.tier-premium {
    border: 4px solid #62AEFB;
    background-color: #FFFFFF;
}

.tier-column h3 {
    text-align: center;   /* e.g. center the tier name */
    margin-top: 0;
    margin-bottom: 1.1rem;
}

.tier-essentials h3 {
    color: #111111;
}

.tier-complete h3 {
    color: #111111;
}

.tier-premium h3 {
    color: #111111;
}

.pricing-cell {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1.5px solid;
    border-radius: 8px;
}

.tier-essentials .pricing-cell {
    border-color: #595959;      
    background-color: #E6E6E6;  
}

.tier-complete .pricing-cell {
    border-color: #0D47A1;      
    background-color: #DDEFFD;  
}

.tier-premium .pricing-cell {
    border-color: #0D47A1;      
    background-color: #62AEFB;  
}

.pricing-cell h4 {
    margin: 0 0 0.5rem 0;
}

.cell-row {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;        /* space between label elements */
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    margin-bottom: 0.5rem; /* space below the row */
}

/* Make the label text smaller, and the inputs match heights */
.cell-row label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-size: 0.875rem;  /* e.g. 14px */
}

/* Adjust the select & input size so they're similar in height/width */
.cell-row select.variant-select,
.cell-row input.quantity-input {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    height: 2rem;       /* approximate consistent height */
    box-sizing: border-box;
}

.variant-select {
    flex: 1; /* Let it grow to fill available space */
    box-sizing: border-box;
    padding: 0.3rem 1.2rem;
    height: 2rem;
    margin-left: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
}
  
.quantity-input {
    flex: 0; /* Prevent it from growing */
    max-width: 8.3rem; /* for appearance on page, while allowing reuse in cart */
    box-sizing: border-box;
    padding: 0.3rem 0.3rem;
    height: 2rem;
    margin-left: 0.2rem;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
}

.pricing-btn {
    text-align: center;
    margin-top: auto;
}

/* Make sure the "Add to Cart" button starts on a new line with spacing above */
.add-to-cart-btn {
    margin-top: 1rem;
    display: inline-block; 
}

.btn-custom {
    background-color: #1E293B;   /* is this "n800"? */
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease-in-out;
    text-decoration: none; /* if used on <a> */
    white-space: nowrap;   /* keep text on one line */
}

.btn-custom:hover {
    background-color: #0D47A1;
}

.btn-custom:active {
    background-color: #474747;
}

.currency-select {
    font-size: 0.8rem;  /* smaller text */
    font-weight: bold;
    padding: 0.3rem 1.2rem;
    height: 2rem;
    margin-left: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
}

/* Modal styling */
.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* semi-transparent black overlay */
}
  
.modal-content {
    margin: 0;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    max-width: 600px;
    width: 80%;
}

.close-modal {
    position: absolute;
    top: 10px; right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.icon-button {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;  
}
.icon-button:focus {
    outline: 2px dashed #0D47A1; 
    outline-offset: 2px;
}

.material-icons {
    font-size: 20px; /* Check! */
    vertical-align: middle;
}
  
/* A simple table/list for cart items */
#cartItemsContainer {
    display: block;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    padding: 0;
}

#cartItemsContainer table{
    width: 100%;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

#cartItemsContainer th {
    padding: 0.5rem;
    text-align: center;
    white-space: wrap;
    border: none;
    background-color: #E6E6E6;
}

#cartItemsContainer td {
    padding: 0.5rem;
    text-align: center;
    white-space: wrap;
    border: none;
}

#cartItemsContainer tr:nth-child(even) {
    background-color: #DDEFFD; 
} 