/* accosted.css */
.c-accosted {
    --primary-color: #fff;
    --primary-hover-color: #fff;
    --secondary-color: #84754e;

    display: block;
    position: fixed;
    bottom: -10px;
    right: 30px;
    z-index: 1000;
    margin: 0;
	color: #006c38;
}

.c-accosted__inner {
    position: relative;
}

.c-accosted__open {
    padding: 15px;
    box-sizing: border-box;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.35);
    width: 390px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    background-color: #006c38;
    position: absolute;
    bottom: 300px;
    right: -25px;
    z-index: 1;
}

/* .c-accosted__open:hover { */
    /* background-color: #e0f5eb; */
/* } */

.c-accosted__collapsed-text {
    font-weight: 300;
    color: var(--primary-color);
}

.c-accosted__collapsed-icon {
    width: 36px;
    height: 36px;
    background: url("/gfx/tel.svg") no-repeat center center;
    background-size: contain;
}

.c-accosted__content {
    margin-bottom: 15px;
    width: 390px;
    padding: 15px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    position: absolute;
    z-index: 0;
    background-color: white;
    min-height: 100px;
    right: 0;
    transition: all 0.5s ease-in-out;
    opacity: 0;
    bottom: -1000px;
    overflow: hidden;
}

.c-accosted__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.c-accosted__title {
    font-size: 1rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-right: 10px;
}
.c-accosted__subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--secondary-color);
}

.c-accosted__thanks {
    font-size: 1rem;
    font-weight: 300;
    color: var(--primary-color);
    padding: 30px 0;
    text-align: center;
}

.c-accosted__error {
    font-size: 0.85rem;
    background-color: #d13636;
    padding: 5px 10px;
    color: white;
    margin-bottom: 15px;
    text-align: center;
}

.c-accosted__close {
    width: 21px;
    min-width: 21px;
    height: 21px;
    display: block;
    cursor: pointer;
    background: url("close.png") no-repeat center center;
    background-size: contain;
    transition: all 0.3s ease-in-out;
    transform-origin: center center;
}

.c-accosted__close:hover {
    transform: rotate(90deg);
}

.c-accosted__form {
    padding: 15px 0;
    font-size: 13px;
}

.c-accosted__field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.c-accosted__label {
    min-width: 50%;
    width: 50%;
    padding-right: 10px;
    font-weight: 600;
}

.c-accosted__input {
    min-width: 50%;
    width: 50%;
    height: 40px;
    border: 1px solid var(--secondary-color);
    box-shadow: none !important;
    outline: none !important;
    padding: 0 10px;
}

.c-accosted__input:focus {
    border-color: var(--primary-color);
}

.c-accosted__submit {
    width: 100%;
    height: 40px;
    line-height: 40px;
    padding: 0;
    margin: 0;
	background-color: #84754e;
    color: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease-in-out;
    border: none !important;
    outline: none !important;
    overflow: hidden;
    display: block;
}

.c-accosted__submit:hover {
    background-color: #84754e;
}

.c-accosted--active .c-accosted__open {
    bottom: -100px;
}

.c-accosted--active .c-accosted__content {
    bottom: 15px;
    z-index: 2;
    opacity: 1;
}

.accosted__loading {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 40px;
}
.accosted__loading div {
    position: absolute;
    border: 2px solid #fff;
    opacity: 1;
    border-radius: 50%;
    animation: accosted__loading 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.accosted__loading div:nth-child(2) {
    animation-delay: -0.5s;
}
@keyframes accosted__loading {
    0% {
        top: 19px;
        left: 19px;
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        top: 0px;
        left: 0px;
        width: 38px;
        height: 38px;
        opacity: 0;
    }
}

@media all and (max-width:700px) {
    .c-accosted{
		width: 85%;
	}
	.c-accosted--active .c-accosted__content{
		width: 100%;
	}
	.c-accosted__open{
		width: 100%;
		bottom: 0;
	}
}
