/* Modal - Centering Fix & Isolation */
.flower-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);

    /* Flexbox for perfect centering */
    align-items: center;
    justify-content: center;
}

/* Force flex when open */
.flower-modal.open {
    display: flex !important;
}

.flower-modal-content {
    background-color: #fefefe;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin: 0;
    /* No margin, handled by flex */
    max-height: 90vh;
    /* Viewport based max-height */
    overflow-y: auto;

    /* Reset any potential conflicts from other css */
    top: auto;
    left: auto;
    transform: none;
}

.flower-close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 10;
}

.flower-close-modal:hover {
    color: black;
}

.upsell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

/* Card Alignment */
.upsell-grid>div {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.upsell-grid img {
    margin: 0 auto 0.5rem auto;
    object-fit: cover;
}

.upsell-grid .btn {
    margin-top: auto;
}