#feedback-container {
    z-index: 500;
    transition: top 0.5s ease-in-out;
    top: auto;
    bottom: 0;
    right: 20px;
    left: auto;
    padding: 5px 15px;
    background: #F8993D;
    position:fixed;
    cursor: pointer;
}
#feedback-container:not(.expanded):hover {
    background: linear-gradient(#F8993D 75%,rgba(0,0,0,0.75)), #F8993D;
}

#feedback-container .close {
    position: absolute;
    top: 3px;
    right: 3px;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #FFF;
    background: #7c0000;
    padding: 4px 2px;
    height: 28px;
    width: 28px;
    font-size: 2em;
    color: #FFF;
    line-height: 16px;
    text-align: center;
    display: none;
}

#feedback-container form,
#feedback-container .feedback-reply {
    display: none;
    padding: 20px;
    min-height: 56px;
}
#feedback-container form .error.message {
    background: #B21717;
    margin: -5px -15px 10px;
}
#feedback-container form input[type=text],
#feedback-container form textarea {
    padding: 3px;
}
#feedback-container form textarea {
    height: 150px;
}
#feedback-container form .thank-you {
    margin-top: 15px;
    font-size: 1em;
}
#feedback-container form .loading {
    display: none;
    float: right;
    padding: 10px 0;
}
#feedback-container .tab {
    width: 30px;
    z-index: 100;
    height: 96px;
    padding: 0;
    position: static;
    left: auto;
    top: auto;
}
#feedback-container .tab:before {
    content: '';
    width: 1.25em;
    height: 1.25em;
    background: url(/images/feedback.gif) center center no-repeat;
    display: inline-block;
    background-size: contain;
    vertical-align: -4px;
    margin-right: 0.25em;
}
#feedback-container .tab:after {
    content: 'Feedback';
    display: inline-block;
}
#feedback-container .tab:hover {
    width: 36px;
    left: -36px;
    background-position: 0 center;
}
.button.next {
    float: right;
}
#feedback-container.expanded {
    background: rgba(0,0,0,0.75);
    color: #FFF;
}
#feedback-container.expanded form {
    display: block;
}
#feedback-container.expanded .tab:hover, 
#feedback-container.expanded .tab {
    width: 36px;
    left: -30px;
    background-color: #F8993D;
    width: auto;
    height: auto;
    padding: 5px 15px 5px 40px;
    margin: -5px -15px;
    display: block;
    color: #000;
    cursor: default;
    background-position: 16px 8px;
}
#feedback-container.expanded .close {
    display: block;
}
#feedback-container form table {width: 100%;}
#feedback-form td.value {width: 200px;}
#feedback-form td.value > * {width: 100%; }

/* Retired the always-on floating feedback tab (2026-07-02). The resting tab is
   hidden at every breakpoint; the form now opens only via the footer
   "Send Feedback" link, which adds .expanded. All expanded/modal styles are
   unchanged, so the popup still works exactly as before once opened. */
#feedback-container:not(.expanded) {
    display: none;
}

@media only screen and (max-width:500px) {
    #feedback-container {
        z-index: 9999;
        display: block;
        padding-bottom: 2em;
    }
    #feedback-container:not(.expanded) {
        right: 0;
        border-top-left-radius: 75%;
        border-radius: 100%;
        border-radius: 25% 0 0 25%;
        padding: 1em 0.5em 0.5em 1em;
        padding: 1em;
        padding: 0.6em;
        padding-right: 0.3em;
        bottom: 66px;
        box-shadow: 0 0 1em rgba(0,0,0,1);
        opacity: 0.8;
    }
    #feedback-container:not(.expanded):hover {
        background: #F8993D;
    }
    #feedback-container:not(.expanded) .tab:after {
        content: '';
    }

    #feedback-container .tab {
    }
    #feedback-container span.button {
        background:#F8993D; 
        margin-top: 1em; 
        float: none; 
        margin: 1em auto 0; 
        display: block; 
        width: 7.5em; 
        padding: 0.125em 1em;
        text-align: center;
    }
    #feedback-container form {        
        max-height: 100%;
        overflow: auto;
    }
    #feedback-container span.button input {
        color: #000;
        font-weight: normal;
        text-transform: uppercase;
    }

    #feedback-container.expanded {
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
    }

    #feedback-form .entity, 
    #feedback-form .entity *,
    #feedback-form td.value {
        display: block;
        width: 100%;
    }

    #feedback-form tr {margin-bottom: 1em; }
}
@media only screen and (max-height: 400px) and (min-width: 500px) {
    #feedback-container {display: block; }
    #feedback-container:not(.expanded) {
        bottom: 10px;
        right: 55px;
        height: 2.5em;
        width: 2.5em;
        padding: 0.5em;
        text-align: center;
        border-radius: 100%;
    }
    #feedback-container .tab:after {content: 'Feedback' }
    #feedback-container:not(.expanded) .tab:after {display: none; }
    #feedback-container:not(.expanded) .tab:before {margin: 0; }
    #feedback-container.expanded {
        background: rgba(0,0,0,0.9);
        z-index: 10000;
        width: 100%;
        height: 100%;
        right: 0;
        left: 0;
        bottom: 0;
        top: 0;
    }
    #feedback-form td.key {width: 4em; text-align: right;}
    #feedback-container form textarea {height: 100px;}
    
}
