/* Fast order popup on product pages (includes/classes/product_info.php, displayFastOrderButton).
   Highslide sizes its window from the content, so a fixed content width gives a centred, narrow window */

#highslide-html {
    width: 420px;
    max-width: calc(100vw - 30px);
    box-sizing: border-box;
}

#highslide-html .highslide-body {
    min-height: 0 !important;
    padding: 18px 20px 22px;
    box-sizing: border-box;
}

#highslide-html .highslide-body > br {
    display: none;
}

/* "Поръчайте за 10 секунди" */
#highslide-html .highslide-body > img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 0 16px;
}

#highslide-html .highslide-body > input.span4,
#highslide-html .highslide-body > textarea.span4 {
    display: block;
    float: none;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    margin: 0 0 10px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 16px; /* 16px keeps iOS from zooming in on focus */
    line-height: normal;
    color: #222;
    background: #fff;
    border: 1px solid #cfc4ca;
    border-radius: 8px;
    box-shadow: none;
    -webkit-appearance: none; /* iOS Safari: no native inner shadow or rounding */
    appearance: none;
}

#highslide-html .highslide-body > textarea.span4 {
    height: auto;
    min-height: 84px;
    padding: 12px;
    line-height: 1.4;
    resize: vertical;
}

#highslide-html .highslide-body > input.span4::placeholder,
#highslide-html .highslide-body > textarea.span4::placeholder {
    color: #8a8087;
    opacity: 1;
}

#highslide-html .highslide-body > input.span4:focus,
#highslide-html .highslide-body > textarea.span4:focus {
    border-color: #a63d6f;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(166, 61, 111, .18);
}

/* phones: less padding, so the long hints ("Телефон (най-добре мобилен)") fit */
@media (max-width: 420px) {
    #highslide-html {
        max-width: calc(100vw - 30px); /* highslide keeps 15px on the left; the same on the right */
    }

    #highslide-html .highslide-body {
        padding: 14px 12px 16px;
    }

    #highslide-html .highslide-body > input.span4,
    #highslide-html .highslide-body > textarea.span4 {
        padding-left: 10px;
        padding-right: 10px;
    }
}

#highslide-html #fast_order_now {
    display: block;
    float: none;
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    margin: 8px 0 0;
    padding: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 50px;
    text-align: center;
    border-radius: 8px;
}
