/* Bottom pop-up tray: "Want to run a business like this?" */

.business-tray {
    position: fixed;
    right: 1.25em;
    bottom: 1.25em;
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 1em;
    box-sizing: border-box;
    width: auto;
    max-width: calc(100% - 2.5em);
    padding: 0.85em 1em 0.85em 1.4em;
    opacity: 0;
    transform: translate(40px, 40px) scale(0.6);
    transform-origin: bottom right;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;

    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #FFF;

    background: #000;
    border-left: 4px solid #75bf44;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

/* Springs out of the bottom-right corner with a slight overshoot */
.business-tray.is-open {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.business-tray[hidden] {
    display: none;
}

.business-tray-text {
    margin: 0;

    font-weight: bold;
    line-height: 1.3;
}

.business-tray-link {
    flex-shrink: 0;
    padding: 0.5em 1em;

    font-weight: bold;
    color: #000;
    text-decoration: none;
    white-space: nowrap;

    background: #75bf44;
    border-radius: 4px;
}

.business-tray-link:hover,
.business-tray-link:focus {
    color: #000;

    background: #8fd65f;
}

.business-tray-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;

    color: #BBB;

    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.business-tray-close:hover,
.business-tray-close:focus {
    color: #FFF;

    background: rgba(255, 255, 255, 0.12);
}

@media only screen and (max-width: 520px) {
    .business-tray {
        right: 0.75em;
        bottom: 0.75em;
        max-width: calc(100% - 1.5em);
        padding: 0.75em 0.75em 0.75em 1em;

        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .business-tray {
        transition: none;
    }
}

@media print {
    .business-tray {
        display: none;
    }
}
