/* Toast Banner Base Styles */
.android-toast {
    position: fixed;
    bottom: -150px; /* Start hidden below the screen */
    right: 24px;
    z-index: 9999;
    max-width: 350px;
    width: calc(100% - 48px);
    background-color: #323232; /* Classic Android dark color */
    color: #ffffff;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    pointer-events: none;
}

/* When the toast is active */
.android-toast.show {
    bottom: 24px;
    opacity: 1;
    pointer-events: auto;
}

/* Interior layout */
.toast-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
}

.toast-message {
    font-size: 14px;
    line-height: 1.4;
    flex: 1 1 100%; /* Take full width originally */
}

.toast-action-btn {
    color: #bb86fc; /* Common Material Design secondary color */
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.toast-action-btn:hover,
.toast-action-btn:focus {
    color: #dfbcf9;
    text-decoration: none;
}

.toast-dismiss-btn {
    background: transparent;
    border: none;
    color: #999999;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 12px;
    margin-left: auto;
    transition: color 0.2s ease;
}

.toast-dismiss-btn:hover,
.toast-dismiss-btn:focus {
    color: #ffffff;
}

/* Mobile Adjustments */
@media screen and (min-width: 480px) {
    .toast-message {
        flex: 1; /* Allow action button to sit next to text on wider screens */
    }
}

/* =========================================================================
   FAB Integration: Synchronizing the playstoresales.com Floating Action Button
   ========================================================================= */

/* Ensure the existing FAB has a smooth transition if it doesn't already */
.mwsg-fab, #mwsg-compact-toggle {
    transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* When the body has the 'toast-active' class, push the FAB up */
body.toast-active .mwsg-fab,
body.toast-active #mwsg-compact-toggle {
    bottom: calc(24px + 100px) !important; /* 24px standard + roughly the height of the toast */
}
