﻿/** POSTCODE CHECKER **/

.postcode-modal-wrap {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    z-index: 9999;
    display: none;
}

.postcode-modal-overlay {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.3);
}

.postcode-modal {
    position: fixed;
    top: 50px;
    width: 700px;
    background: #fff;
    text-align: center;
    border-radius: 3px;
    justify-content: center;
}

.postcode-modal-wrap.show-modal {
    display: flex;
}

.postcode-modal .postcode-modal-body {
    display: none;
	max-width: 100%;
}

.postcode-modal .postcode-modal-body.available {
    margin-top: 10px;
}

.postcode-modal .postcode-modal-body.available h3 {
    margin-bottom: 20px;
}

.postcode-modal .postcode-modal-body p {
	margin: 20px 0;
	font-size: 18px;
	font-weight: 500;
    margin-bottom: 5px;
}

.postcode-modal .postcode-modal-body.unavailable {
    margin-top: 10px;
    font-size: 18px;
}

.postcode-modal .postcode-modal-body.unavailable .no-delivery button {
    background: none;
    color: black;
    font-weight: normal;
    padding: 0;
    text-decoration: underline !important;
    font-size: 16px;
}

.postcode-modal .postcode-modal-liner {
    position: relative;
    height: 100%;
    width: 100%;
    padding: 50px;
    align-items: center;
    justify-content: flex-start;
    display: flex;
	flex-direction: column;
}

.postcode-modal .close-modal {
    padding: 10px;
    right: 0;
    top: 0;
    background: #000;
    border: 0;
    color: #fff;
    opacity: 0.8;
    position: absolute;
    z-index: 401;
    display: inline-block;
    height: 50px;
    margin: 0;
    box-shadow: none;
    transition: color 0.2s;
    vertical-align: top;
    visibility: inherit;
    width: 50px;
}

.postcode-modal .close-modal svg {
    display: block;
    height: 100%;
    overflow: visible;
    position: relative;
    width: 100%;
    fill: #fff;
    stroke: #fff;
}

.postcode-modal .postcode-modal-head h2 {
    margin-bottom: 25px;
    line-height: 1.4;
    font-weight: 500;
    font-size: 22px;
    margin-top: 0;
}

.postcode-modal .postcode-modal-head input {
    background: #fff;
    border: none;
    border-bottom: 1px solid #e6e6e6;
    padding: 10px;
    box-shadow: inset 0px 1px 5px rgba(0,0,0,0.2);
    text-align: center;
    font-size: 18px;
    outline: none;
    height: 50px;
}

.postcode-modal .postcode-buttonarea {
	display: flex;
    align-items: center;
    justify-content: center;
	flex-wrap: wrap;
	padding: 0 30px;
}

.postcode-modal .postcode-buttonarea .btn {
	margin: 10px 20px;
    color: #fff;
    padding: 15px 15px;
	width: 200px;
	border: #00594e;
    margin-bottom: 0;
}

.postcode-modal .postcode-modal-input-wrap {
	display: flex;
    align-items: center;
    justify-content: center;
}

.postcode-modal .postcode-modal-input-wrap button {
	padding: 5px 20px;
    font-weight: 600;
	outline: none;
	margin-top: 0;
    height: 50px;
}

.postcode-modal .loader {
	display: none;
	margin-top: 25px;
}

.postcode-modal .loader .loader-icon {
    z-index: 1;
    width: 150px;
    height: 150px;
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid;
    width: 50px;
    height: 50px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

.side-delivery.confirm,
.side-delivery.placed {
	display: none
}
.side-delivery {
    position: fixed;
    width: auto;
    right: 20px;
    z-index: 999;
    white-space: nowrap;
    bottom: 0;
}

.side-delivery .side-delivery-liner {
    padding: 10px 15px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    border-radius: 10px 10px 0 0px;
    box-shadow: 0 4px 27px rgba(0,0,0,0.25);
    border: 3px solid #ffff;
    cursor: pointer;
    border-bottom: none;
}

.side-delivery .side-delivery-liner img {
	max-width: 80px;
}

.side-delivery .side-delivery-liner input {
	color: #000;
    border: none;
    padding: 7px;
	text-align: center;
	border-radius: 1px;
	margin-bottom: 20px;
}

.side-delivery .side-delivery-liner input::placeholder {
	color: #a8a8a8;
}
.side-delivery .side-delivery-liner button {
	text-transform: uppercase;
	padding: 5px 15px;
}

.side-delivery .side-delivery-liner p {
    margin-top: 0;
	font-weight: 500;
	margin-bottom: 0;
	line-height: 1.25;
	letter-spacing: 1px;
}

.side-delivery .minimise {
	position: absolute;
	top: 10px;
	left: 10px;
	color: #fff;
}

.side-delivery-postcode.mobile {
	display: none;
}

@media (max-width: 767px) {
	
	.side-delivery-postcode.mobile {
		display: block;
	}

	.side-delivery-postcode.desktop {
		display: none;
	}

	.side-delivery .side-delivery-liner img {
		display: none;
	}

	.postcode-modal .postcode-modal-input-wrap button {
		margin-left: 0;
	}

	
	.postcode-modal .postcode-modal-body.available {
		margin-top: 5px;
	} 

	.postcode-modal .postcode-buttonarea .btn {
		margin: 5px 20px;
	}

	.postcode-modal .postcode-modal-body p {
		margin: 15px 0;
	}

	.postcode-modal {
		width: 80%;
		top: 30px;
	}

	.postcode-modal .postcode-modal-liner {
		padding: 20px;
	}

	.postcode-modal .postcode-modal-head h2 {
		font-size: 18px;
        padding-top: 40px;
	}

	.postcode-modal .postcode-modal-body p {
		font-size: 16px;
	}

	.postcode-modal .postcode-modal-head input {
		font-size: 16px;
		width: 90%;
	}

	.side-delivery .side-delivery-liner {
		padding: 13px;
		border-radius: 10px 10px 0 0;
        border-bottom: none;
	}

	.side-delivery .side-delivery-liner img {
		display: none;
	}

	.side-delivery .side-delivery-liner input {
		width: 100%;
		font-size: 12px;
	}

	.side-delivery .side-delivery-liner p {
		font-size: 12px;
		margin-top: 0;
	}

	.side-delivery .side-delivery-liner button {
		font-size: 12px;
	}
}


@-webkit-keyframes spin {
	0% { -webkit-transform: rotate(0deg); }
	100% { -webkit-transform: rotate(360deg); }
}
  
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
