#bm_popup {
    -webkit-transition: all 550ms ease-in-out;
    -moz-transition: all 550ms ease-in-out;
    -o-transition: all 550ms ease-in-out;
    transition: all 550ms ease-in-out;
}

/* Support for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    #bm_popup,
    .bm_popup_content {
        -webkit-transition: none;
        -moz-transition: none;
        -o-transition: none;
        transition: none;
    }
}

.bm_popup_content {
    -webkit-transition: all 550ms ease-in-out;
    -moz-transition: all 550ms ease-in-out;
    -o-transition: all 550ms ease-in-out;
    transition: all 550ms ease-in-out;
    left: -600px;
    height: 430px;
    width: 550px;
    max-width: 90%;
    background: white;
    z-index: 999999;
    position: fixed;
    bottom: 0;
    margin: 15px;
    border-radius: 10px;
    -webkit-box-shadow: rgba(0, 0, 0, 0.15) 0 0 30px;
    -moz-box-shadow: rgba(0, 0, 0, 0.15) 0 0 30px;
    box-shadow: rgba(0, 0, 0, 0.15) 0 0 30px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    /* Performance optimization */
    contain: layout style;
    will-change: left;
}

.bm_popup_image {
    width: 100%;
    height: 50%;
}

.bm_popup_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0 !important;
}

.bm_popup_text {
    width: 100%;
    padding: 20px;
    height: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.5rem;
}

.bm_popup_text_wrapper {
    max-width: 50%;
}

.bm_popup_top_text {
    font-size: 0.95rem;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 0;
}

.bm_popup_text_title {
    width: 100%;
    text-align: center;
    font-weight: bold;
    color: black;
    line-height: 1.4;
    margin-bottom: 0;
    font-size: 0.98rem;
    font-family: Arial, Helvetica, sans-serif;
}

.bm_popup_description {
    text-align: center;
    color: black;
    font-size: 0.88rem;
    font-family: Arial, Helvetica, sans-serif;
}

.bm_popup_close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    background-color: white;
    padding: 1px 3px;
    /* Improve touch target size for mobile */
    min-width: 44px;
    min-height: 44px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-radius: 4px;
    text-decoration: none;
}

.bm_popup_close:hover,
.bm_popup_close:focus {
    background-color: #f0f0f0;
    outline: 2px solid #333;
    outline-offset: 2px;
}

@media (max-width: 340px) {
    .bm_popup_content {
        height: auto;
        height: unset;
        margin: 10px;
        /* Improve mobile visibility */
        bottom: 60px;
    }

    .bm_popup_text {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -moz-box-orient: vertical;
        -moz-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        padding: 15px;
    }

    .bm_popup_text_wrapper {
        max-width: 100%;
    }

    .bm_popup_image {
        display: none;
    }
}

@media(min-width: 530px) {
    .bm_popup_content {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -webkit-flex-direction: row;
        -moz-box-orient: horizontal;
        -moz-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
    }

    .bm_popup_image {
        max-width: 50%;
        height: 100%;
        display: block;
    }

    .bm_popup_text {
        max-width: 50%;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -moz-box-orient: vertical;
        -moz-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .bm_popup_image img {
        border-radius: 10px 0 0 10px !important;
    }

    .bm_popup_text_wrapper {
        max-width: 100%;
    }

    .bm_popup_top_text {
        font-size: 1rem;
    }

    .bm_popup_text_title {
        font-size: 1rem;
    }

    .bm_popup_description {
        font-size: 0.9rem;
    }
}


.bm_popup_text #mc_embed_signup .indicates-required {
    display: none !important;
}

.bm_popup_text #mc_embed_signup .optionalParent .brandingLogo {
    display: none !important;
}

.bm_popup_text #mc_embed_signup #mc_embed_signup_scroll .mc-field-group {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.bm_popup_text #mc_embed_signup #mc_embed_signup_scroll .mc-field-group label {
    color: #757575;
}

.bm_popup_text #mc_embed_signup #mc_embed_signup_scroll .mc-field-group input[type="email"] {
    width: 100%;
}

.bm_popup_text #mc_embed_signup input[type="submit"] {
    width: 100%;
    margin-top: 1rem;
    cursor: pointer;
    /* Improve touch target size */
    min-height: 44px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    background-color: #333;
    color: white;
    -webkit-transition: background-color 0.2s ease;
    -moz-transition: background-color 0.2s ease;
    -o-transition: background-color 0.2s ease;
    transition: background-color 0.2s ease;
}

.bm_popup_text #mc_embed_signup input[type="submit"]:hover,
.bm_popup_text #mc_embed_signup input[type="submit"]:focus {
    background-color: #555;
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* Additional accessibility styles */
.bm_popup_text #mc_embed_signup input[type="email"] {
    min-height: 44px;
    font-size: 1rem;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.bm_popup_text #mc_embed_signup input[type="email"]:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
    border-color: #333;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bm_popup_content {
        border: 2px solid currentColor;
    }

    .bm_popup_close {
        border: 1px solid currentColor;
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}