#paz-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #222;
    color: #fff;
    padding: 0px 8px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
}

body.paz-bottom-bar-hidden #paz-bottom-bar {
    display: none;
}

#paz-bottom-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex: 1;
}

#paz-bottom-bar p {
    margin: 0;
}

#paz-bottom-bar-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

#paz-bottom-bar-email {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    width: 150px;
}

#paz-bottom-bar-form button {
    padding: 4px 12px;
    background: #D42B36;
    color: var(--primarybtncolor);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

#paz-bottom-bar-form button:hover {
    background: #005a87;
}

#paz-bottom-bar-form button:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

#paz-bottom-bar-thanks {
    flex: 1;
    text-align: center;
}

#paz-bottom-bar-thanks p {
    margin: 0;
}

#paz-bottom-bar-error {
    flex: 1;
    text-align: center;
}

#paz-bottom-bar-error p {
    margin: 0;
    color: #ff6b6b;
}

#paz-bottom-bar-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#paz-bottom-bar-close:hover {
    opacity: 0.7;
}

/* Add bottom padding to the body to prevent the bar from hiding content.
 * It must be the same size as the bottom bar.
 * html is added to the selector to increase specificity and override the site's body padding
 */
html body {
  padding-bottom: 50px;
}

/* Remove padding when bottom bar is hidden */
html body.paz-bottom-bar-hidden {
  padding-bottom: 0;
}

/* Stack on 2 lines on small screens */
@media (max-width: 539px) {
    #paz-bottom-bar {
        height: auto;
        min-height: 80px;
    }

    #paz-bottom-bar-content {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 4px 0;
    }

    #paz-bottom-bar p {
        text-align: center;
        margin: 0;
    }

    #paz-bottom-bar-form {
        justify-content: center;
    }

    /* Update body padding for mobile */
    html body {
        padding-bottom: 80px;
    }

    html body.paz-bottom-bar-hidden {
        padding-bottom: 0;
    }

    #paz-bottom-bar-email {
        flex-grow: 1;
        max-width: 250px;
    }
}
