/**
* 2007-2023 Weblir
*
*  @author    weblir <hello@weblir.com>
*  @copyright 2012-2023 weblir
*  @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*  International Registered Trademark & Property of weblir.com
*
*  You are allowed to modify this copy for your own use only. You must not redistribute it. License
*  is permitted for one Prestashop instance only but you can install it on your test instances.
*/

button.btn.btn-primary.whatsapp-order-button, 
.whatsapp-order-button-container {
    display: block;
    margin: 15px auto;
	text-align: center;
}

#product button.btn.btn-primary.whatsapp-order-button {
    margin: 15px auto;
}

#order-on-whatsapp-form {
	width: auto;
	margin: 20px auto 40px auto;
	text-align: center;
	position: relative;
}

#cart #order-on-whatsapp-form {
    margin-top: 0px !important;
}

#OrderOnWhatsAppModal .modal-content {
    background-color: rgba(255, 255, 255, 0);
}

#order-on-whatsapp-form label {
    margin: 0;
}

#order-on-whatsapp-form fieldset {
	background: white;
	border: 0 none;
	border-radius: 3px;
	box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.4);
	padding: 0;
	box-sizing: border-box;
	width: 100%;
	/*margin: 0 5%;*/
	
	/*stacking fieldsets above each other*/
	position: relative!important;
}
/*Hide all except first fieldset*/
#order-on-whatsapp-form fieldset:not(:first-of-type) {
	display: none;
}
/*inputs*/
#order-on-whatsapp-form input:not(input[name="qty"]), #order-on-whatsapp-form textarea {
	padding: 15px;
	border: 1px solid #ccc;
	border-radius: 3px;
	margin-top: 10px;
	width: 100%;
	box-sizing: border-box;
	font-family: montserrat;
	color: #2C3E50;
	font-size: 13px;
}

/*buttons*/
#order-on-whatsapp-form .action-button {
	width: auto;
	font-weight: bold;
	color: white;
	border: 0 none;
	cursor: pointer;
	margin: 10px 5px;

    background-color: #f10000;
    padding: .5rem;
    padding: 13px;
    border-radius: 30px;
}
#order-on-whatsapp-form .action-button:hover,
#order-on-whatsapp-form .action-button:focus {
	background-color: #f10000;
}

#order-on-whatsapp-form #progressbar li.active-step:after {
    background: #27AE60 !important;
    z-index: 99;
}

/*headings*/
#order-on-whatsapp-form .fs-title {
	font-size: 15px;
	text-transform: uppercase;
	color: #2C3E50;
	margin-bottom: 10px;
    padding: 20px 30px;
}
#order-on-whatsapp-form .fs-subtitle {
	font-weight: normal;
	font-size: 13px;
	color: #666;
	margin-bottom: 20px;
}
/*progressbar*/
#order-on-whatsapp-form #progressbar {
	overflow: hidden;
	/*CSS counters to number the steps*/
	counter-reset: step;
	max-width: 50%;
    margin: 0 auto;
}
#order-on-whatsapp-form #progressbar li {
	list-style-type: none;
	color: white;
	text-transform: uppercase;
	font-size: 9px;
	width: 33.33%;
	float: left;
	position: relative;
}
#order-on-whatsapp-form #progressbar li:before {
	content: counter(step);
	counter-increment: step;
	width: 20px;
	line-height: 20px;
	display: block;
	font-size: 10px;
	color: #333;
	background: white;
	border-radius: 3px;
	margin: 0 auto 5px auto;
}
/*progressbar connectors*/
#order-on-whatsapp-form #progressbar li:after {
	content: '';
	width: 100%;
	height: 2px;
	background: white;
	position: absolute;
	left: -50%;
	top: 9px;
	z-index: -1; /*put it behind the numbers*/
}
#order-on-whatsapp-form #progressbar li:first-child:after {
	/*connector not needed before the first step*/
	content: none; 
}
/*marking active/completed steps green*/
/*The number of the step and the connector before it = green*/
#order-on-whatsapp-form #progressbar li.active:before, 
#order-on-whatsapp-form #progressbar li.active:after{
	background: #27AE60;
	color: white;
}

#order-on-whatsapp-form input.is-empty,
#order-on-whatsapp-form textarea.is-empty,
#order-on-whatsapp-form select.is-empty {
    border: 1px solid #e74c3c;
}

#order-on-whatsapp-form span.warning-message {
    color: #e74c3c;
    font-size: 10px;
    text-align: right;
    display: block;
}

.lang-rtl .form-group {
    text-align: right;
    font-family: "29ltbukra", sans-serif;
}

.form-group {
    text-align: left;
}

.whatsapp-order-button {
    background-color: #f10000;
    padding: .5rem;
    margin-top: 15px;
    padding: 13px;
    border-radius: 30px;
}

.whatsapp-order-button:hover {
	background-color: #f10000;
}

.whatsapp-ordered-products .badge-pill {
    float: right;
    border-radius: 15px;
    padding: 0;
    text-align: center;
    color: #fff;
    font-size: 12px;
    margin-top: -5px;
}

.whatsapp-ordered-products .badge-pill input#wa_product_qty {
    padding: 0;
    margin: 0;
    width: 40px;
    height: 30px;
    text-align: center;
}

#OrderOnWhatsAppModal .modal-header {
	display: none;
}

#order-confirmation-message {
    padding: 40px 20px;
    text-align: center;
    background: #eee;
}

#OrderOnWhatsAppModal .wa-loading:after {
  content: ' .';
  animation: dots 1s steps(5, end) infinite;}

@keyframes dots {
  0%, 20% {
    color: rgba(0,0,0,1);
    text-shadow:
      .25em 0 0 rgba(0,0,0,1),
      .5em 0 0 rgba(0,0,0,1);}
  40% {
    color: white;
    text-shadow:
      .25em 0 0 rgba(0,0,0,1),
      .5em 0 0 rgba(0,0,0,1);}
  60% {
    text-shadow:
      .25em 0 0 white,
      .5em 0 0 rgba(0,0,0,1);}
  80%, 100% {
    text-shadow:
      .25em 0 0 black,
      .5em 0 0 black;}}

#order-on-whatsapp-form .list-group li {
    color: #777;
}

#order-on-whatsapp-form .list-group li.active {
    color: #fff;
}

#order-on-whatsapp-form .delivery-options .delivery-option {
	display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
	background: #f6f6f6;
    padding: .9375rem 0;
    margin-bottom: .9375rem;
    min-height: 80px;
	border-right: .1rem solid #c3c3c3;
}

#order-on-whatsapp-form .custom-radio {
	display: flex;
    position: relative;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #7a7a7a;
    background: #fff;
	margin-right: 0;
}

#order-on-whatsapp-form .custom-radio input[type=radio]:checked+span {
    display: block;
    background-color: #0b6fb7;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    left: .125rem;
    top: .125rem;
}

#order-on-whatsapp-form .custom-radio input[type=radio] {
	height: 1.25rem;
    width: 1.25rem;
	opacity: 0;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

#order-on-whatsapp-form  .delivery-options .delivery-option label {
	text-align: inherit;
    margin-bottom: 0;
}

#order-on-whatsapp-form .delivery-options .delivery-option label>.row {
	display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

#order-on-whatsapp-form .carrier-name {
    display: inline-block;
    word-break: break-word;
    text-align: left;
    margin-bottom: 0;
    font-weight: 700;
    line-height: 1.1;
}

#order-on-whatsapp-form .payment-options .payment-option {
    margin-bottom: .5rem;
}

#order-on-whatsapp-form .payment-options .custom-radio {
    margin-right: 1.25rem;
    display: inline-block;
    position: relative;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #7a7a7a;
    background: #fff;
}

#order-on-whatsapp-form .payment-options label {
    display: table-cell;
}

#order-on-whatsapp-form .additional-information {
    font-size: .875rem;
    margin-left: 2.875rem;
    margin-top: 1.25rem;
}

#order-on-whatsapp-form .step-title {
    cursor: default;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 700;
}

#order-on-whatsapp-form .promo-input {
    color: #232323;
    border: 1px solid #7a7a7a;
    height: 2.5rem;
    text-indent: .625rem;
    width: 50%;
    margin-right: -.24rem;
}

#order-on-whatsapp-form .promo-input+button {
    margin-top: -4px;
    margin-left: -1px;
    text-transform: capitalize;
}

#order-on-whatsapp-form .promo-code-button.cancel-promo[aria-expanded=true] {
    display: block;
    padding: 0;
    margin-top: 1rem;
}

.card-block.cart-summary-totals .cart-summary-line.cart-total {
    background-color: #f1f1f1;
    padding: .5rem;
    margin-bottom: 0;
}

.card-block.cart-summary-totals .cart-summary-line.cart-total .label {
    font-size: 1rem;
    font-weight: 700;
    padding-left: 0;
    white-space: inherit;
    color: #363a42;
}

.card-block.cart-summary-totals .cart-summary-line.cart-total .value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #232323;
    float: right;
}

@media (max-width: 991px) {
    #order-on-whatsapp-form .delivery-options .delivery-option {
        margin-right: -15px;
        margin-left: -15px;
    }
}

/* Styles for the original WhatsApp button */
.whatsapp-order-button {
    display: inline-block;
}

/* Styles for the sticky button container */
.sticky-whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none; /* Initially hidden */
    transition: opacity 0.3s ease-in-out;
}

/* Ensure the button inside the container takes its full width */
.sticky-whatsapp-container .whatsapp-order-button {
    width: 100%;
    background-color: #f10000;
}

/* Full width on mobile */
@media (max-width: 767px) {
    .sticky-whatsapp-container {
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .sticky-whatsapp-container .whatsapp-order-button {
        border-radius: 0;
    }
}

#order-on-whatsapp-form-btn-quantity {
    display: inline-flex;
}

#order-on-whatsapp-form-btn-quantity #place-order {
    margin-top: 0px;
}

#order-on-whatsapp-form .anfield-checkbox input {
    width: auto!important;
}