/* This stylesheet is used to style the public-facing components of the plugin. */

/* Small Spinner */

.wpec-spinner {
    text-indent: -9999px;
    vertical-align: middle;
    margin-left: 5px;
    display: inline-block;
    box-sizing: border-box;
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    border-top-color: #333;
    animation: asp-spinner .6s linear infinite;
}

@keyframes wpec-spinner {
    to {
        transform: rotate(360deg);
    }
}

.wpec-product-item {
    display: block;
    border: 1px solid #E7E9EB;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 15px;
}
.wpec-product-item-thumbnail img {
    width: 75px;
    height: 75px;
    float: left;
    margin-right: 10px;
}

.wpec-product-name {
    float: left;
}

.wpec-product-name .wpec-entry-title {
    font-size: 24px;
    font-weight: bold;
    line-height: 75px;
	margin: 0;
}

.wpec-product-description {
    margin: 15px 0 15px 0;
    border-bottom: 1px solid #EEEEEE;
}

.wpec-price-container {
    font-weight: bold;
    margin: 5px 0px;
}

/* Post Item */
.wpec-post-item {
    width: 90%;
}
.wpec-post-item-top {
    display: block;
}

.wpec-post-thumbnail img {
    width: 100%;
    border: 1px solid #e8e4e3;
    padding: 5px;
}

.wpec-post-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 20px;
}


@media (max-width: 500px) {
    .wpec-price-container {
		text-align: center;
    }
}

.wpec-error-message{
	color: red;
	font-weight: bold;
}

/* Spinner */
.wp-ppec-spinner {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
}
.wp-ppec-spinner div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 51px;
    height: 51px;
    margin: 6px;
    border: 6px solid #005ea6;
    border-radius: 50%;
    animation: wp-ppec-spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #005ea6 transparent transparent transparent;
}
.wp-ppec-spinner div:nth-child(1) {
    animation-delay: -0.45s;
}
.wp-ppec-spinner div:nth-child(2) {
    animation-delay: -0.3s;
}
.wp-ppec-spinner div:nth-child(3) {
    animation-delay: -0.15s;
}
@keyframes wp-ppec-spinner {
    0% {
	transform: rotate(0deg);
    }
    100% {
	transform: rotate(360deg);
    }
}

.wp-ppec-overlay {
    z-index: 10000;
    display: none;
    background-color: white;
    width: 100%;
    opacity: 0.7;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.wp-ppec-button-container {
    margin: 10px 0;
}

.wp-ppec-form-error-msg {
    display: none;
    color: red;
}

.wpec-button-placeholder {
	display: none;
}

.wpec-product-variations-label,
.wpec_product_coupon_field_label {
    margin-right: 10px;
}

.wpec_product_coupon_input_container input {
	display: inline-block;
    line-height: 1 !important;
    height: auto;
}

.wpec_product_coupon_input_container input.wpec_product_coupon_field_input {
    width: auto;
    max-width: 200px;
    margin-right: 10px;
	display: inline-block;
}

.wpec_line_through {
    text-decoration: line-through;
}
