/**
 * CallPage Button
 *
 * This module allows customers to request a callback from customer service via a floating widget.
 *
 * @author    Michał Grzesik <mgrzesik@refix.pl>
 * @copyright REFIX 2025 - https://refix.pl
 * @license   Commercial
 * @version   1.0.0
 */

/* === Button === */
#floating-button {
    background: var(--callpage-bg-color, #d01216) !important;
    bottom: 80px !important;
    z-index: 9999;
    width: 40px !important;
    height: 40px !important;
}

#call-container-floating.position-left,
#floating-button.position-left {
    left: 20px;
    right: auto;
}

#call-container-floating.position-right,
#floating-button.position-right {
    right: 30px;
    left: auto;
}

#floating-button .material-icons {
    font-size: 20px;
    color: #fff;
    transition: opacity 1s ease;
    top: 3px;
}

.call-open-btn1,
.call-open-btn2 {
    line-height: inherit !important;
}

.call-open-btn1 {
    opacity: 1;
}

.call-open-btn2 {
    transform: none !important;
}

#floating-button:hover .call-open-btn1 {
    opacity: 0;
}

#floating-button:hover .call-open-btn2 {
    opacity: 1;
}

/* === Modal === */
.call-window {
    border-radius: 10px !important;
}

.call-window-close {
    position: absolute;
    top: 6px;
    right: 7px;
    color: #999;
    transition: color 0.3s ease;
}

.call-window-close:hover {
    color: #000;
}

.call-window-close i.material-icons {
    font-size: 18px;
}

#call-modal {
    font-family: 'Eina', 'Arial', sans-serif !important;
}

#call-label-div {
    font-size: 15px !important;
    margin-bottom: 30px !important;
}

.call-btn {
    width: 49% !important;
    height: auto !important;
    padding: 10px 1.25rem !important;
    text-transform: none !important;
    border-radius: 3px !important;
    background-color: #222 !important;
    letter-spacing: inherit !important;
    color: #fff !important;
    border: 1px solid #222 !important;
    font-size: 14px;
}

.call-btn:hover {
    background-color: #fff !important;
    color: #222 !important;
}

.call-btn .material-icons {
    font-size: 19px;
    margin-right: 5px;
}

.call-input {
    border: 2px solid #222 !important;
    font-size: 14px !important;
    width: 100% !important;
    height: 46px;
}

.call-input::placeholder {
    color: #444;
}

#call-btn-order {
    background-color:  var(--callpage-bg-color, #d01216) !important;
    border: none !important;
    font-weight: 600;
    padding: 11px 20px !important;
    width: 100% !important;
}

#call-btn-order:hover {
    background-color: #222 !important;
    color: #fff !important;
    border: none !important;
}

@media (min-width: 576px) {
    .call-window {
        max-width: 900px !important;
        width: 500px !important;
    }
}

@media (max-width: 576px) {
    .call-window {
        width: 100% !important;
    }
}

@media (max-width: 414px) {
    .call-btn {
        width: 100% !important;
        margin-bottom: 10px;
    }
}
