/* Main WhatsApp button */
#wco-whatsapp-container {
    position: fixed;
    bottom: 80px;
    right: 25px;
    z-index: 10;
}


@media only screen and (min-width: 480px) {
    #wco-whatsapp-container {
        bottom:25px;
    }
}


#wco-whatsapp-header {
    background-color: #25D366;
    color:white;
    padding:10px;
    min-height:50px;
    border-radius: 5px 5px 0 0;
    font-size:1em;
    user-select: none;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Hidden dropdown menu */
#wco-whatsapp-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    width:calc(100vw - 50px);
    max-width:300px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 4px 4px 8px rgb(0,0,0,0.5);
    animation: wcoMenuOpen;
    animation-duration: 0.3s;
    border-bottom: solid #1DA356 4px;
    z-index: 10;
}

.wco-contact-item {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    background-color: #f9f9f9;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size:1em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin:5px;
}

.wco-contact-opening-hours {
    font-size:0.7em;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.wco-contact-name {
    display: flex;
    justify-content: center;
    align-items: center;
}

.wco-contact-opening-hours span {
    color:rgb(255, 166, 0);
}

.wco-whatsapp-img-new {
    background-color: #25D366;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("./whatsapp-img-white.png");
    height:40px;
    width:40px;
    max-width: 40px;
    max-height: 40px;
}

.wco-whatsapp-button-new {
    background-color: #25D366;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("./whatsapp-img-white.png");
    background-size: 60%;
    color: white;
    border-radius: 40px;
    box-shadow: 4px 4px 8px rgb(0,0,0,0.5);;
    border: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width:50px !important;
    height:50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    padding:0 !important;
}

.wco-whatsapp-button-new:hover {
    background-color: #1DA356;
}

.wco-whatsapp-btn-container {
    display:flex;
    flex-direction:row;
    justify-content:center;
    align-items:center;
    font-size:10pt;
    user-select: none;
    cursor: pointer;
    gap:5px;
}

.wco-whatsapp-btn-container span {
    background-color: rgba(230,230,230, 0.9);
    box-shadow: 4px 4px 8px rgb(0,0,0,0.5);;
    font-weight: bold;
    padding-top:3px;
    padding-bottom:3px;
    padding-left:10px;
    padding-right:10px;
    border-radius:4px;
    animation: wcoButtonFadeIn;
    animation-duration: 0.5s;
}

.wco-whatsapp-btn-container span:hover {
    background-color: rgba(250,250,250,1);
}

.wco-contact-item:hover {
    background-color: #f0f0f0;
}

/* For showing the dropdown menu */
.wco-visible {
    display: block;
}

.wco-hidden {
    display: none;
}

/* Grey out the text and inputs when they are disabled */
.greyed-out {
    color: #a9a9a9;
    background-color: #f0f0f0;
    pointer-events: none;
}

@media only screen and (min-width: 350px) {
    .wco-contact-opening-hours {
        flex-direction: column;
    }

    .wco-contact-item {
        flex-direction: row;
    }

    #wco-whatsapp-header {
        flex-direction: row;
    }

    .wco-whatsapp-img-new {
        width:70px;
        padding:10px;
    }
}

@keyframes wcoMenuOpen {
    0% {
        opacity: 0;
        bottom:0;
    }

    100% {
        opacity: 1;
        bottom: 60px;
    }
}

@keyframes wcoButtonFadeIn {
    0% {
        opacity:0;
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);

    }
}