/**
* 2016-2023 Helloshop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    Helloshop <modules@helloshop.com>
*  @copyright 2016-2023 Helloshop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
.hide {
    display: none;
}
table.grid thead td {
  vertical-align: middle;
  font-weight: 600;
}
.di-btn {
    display: inline-block;
    padding: 0 12px;
    margin-bottom: 0;
    margin-left: 5px;
    font-size: 13px;
    font-weight: normal;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid #d0d0d0;
    background-color: #fff;
    border-radius: 0px;
    white-space: nowrap;
	color: #000;
	text-transform: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
    height: 30px;
}
.di-btn:hover, .di-btn:focus, .di-btn:active, .di-btn.active {
    color: #333;
    background-color: #ebebeb;
    border-color: #adadad;
}
.clickable {
    cursor: pointer;
}
.di-noclick {
    opacity: 0;
    pointer-events: none;
}
.rotate {
  transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
}
.expand-icon {
    transition: transform 0.4s;
    -webkit-transition: transform 0.4s;
}
.plus-icon {
    margin-left: 5px;
    font-weight: bold;
    font-size: 14px;
}
.panel.dates_delivery {
    margin: 13px 0;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: none;
    background-color: #fff;
    overflow: hidden;
}
.popup .dates_delivery {
    max-height: 70vh;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}
.dates_delivery .di-expand {
    cursor: pointer;
}
.di-icon {
    padding: 5px;
    margin-right: 10px;
    border-radius: 50px;
    width: 30px;
    height: 30px;
    background-color: #5d5d5d;
    color: #f6f6f6;
    fill: currentColor;
}
.panel_body {
    margin-bottom: 0;
    flex-grow: 1;
    overflow: auto;
    min-height: auto;
    padding-top: 12px;
}
.pickup-countdown {
	color: #f00;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
}
.panel_title {
    display: flex;
    align-items: center;
	font-weight: 600;
	font-size: 14px;
    justify-content: space-between;
}
#panel_delivery .area-select {
	display: flex;
    flex-direction: column;
    align-items: center;
}
.area-select .row {
    width: 100%;
    margin: 5px 0;
    height:30px;
    display: flex;
}
.area-select .row label.left{
    display: inline-block;
    flex: 0 0 30%;
}
.area-select.single-country .row label.left{
    flex: unset;
}
.area-select .row div.right{
    display: inline-block;
    flex-grow: 1;
    margin: 0 6px 0 0;
}
.area-select .country .chosen-container{
  width: 100%!important;
}
#panel_delivery .area-select label {
	white-space: nowrap;
	margin: 5px 10px 0 0;
}
.area-select select {
    padding: 0px 8px;
    width: 100%;
    flex-grow: 1;
    border: 1px solid #d0d0d0;
    height: 30px;
    min-height: 30px;
}
#panel_delivery td, #modal-delivery td {
	text-align: center;
}
#modal-delivery .dates_delivery {
  border-radius: 10px;
}
#panel_delivery .panel_heading {
    margin: 0;
    color: #363434;
    font-weight: 600;
}
#modal-delivery .panel_heading {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.panel_heading{
    background: #fafafa;
    height: auto;
    line-height: 1.4;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.panel_heading_popuplink {
    height: 50px;
    line-height: 48px;
    padding: 0 12px;
	background: #f6f6f6 none repeat scroll 0 0;
    box-shadow: 0px 1px 3px rgba(0,0,0,0.3);
	margin-bottom: 10px;
}
.pull-right {
    float: right !important;
    margin-left: auto;
}
.icon-cross::before {
    content: "\e600";
    font-size: 20px;
    font-family: icomoon;
}
[class^="icon-"]::before, [class*=" icon-"]::before {
    text-decoration: inherit;
    display: inline-block;
    speak: none;
}
.area-select {
    padding: 12px 16px;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.list-inline > li {
    display: inline-block;
    padding-left: 5px;
    padding-right: 5px;
}
.delivery-box.row1, .delivery-box.row2 {
	margin: 0 12px 10px 12px;
    border-radius: 6px;
	box-shadow: none;
	border: 1px solid #e5e5e5;
	min-height: auto;
	transition: border-color 0.2s, background 0.2s;
}

.delivery-box.row1:hover, .delivery-box.row2:hover {
	border-color: #ccc;
	background: #fcfcfc;
}

.delivery-box.row1:last-child, .delivery-box.row2:last-child {
	margin-bottom: 12px;
}
.delivery-box .delivery-time {
   padding: 10px 0;
   margin: auto 10px;
}
.delivery-box .delivery-time .di-info {
    font-style: italic;
	line-height: 20px;
    font-size: 14px;
	margin-bottom:0px;
}
.delivery-box .delivery-time .time {
    font-weight: bold;
}
.delivery-box-header {
    display:flex;
    justify-content: space-between;
    padding-bottom: 0;
	background-color: #f8f8f8;
	border-right: 1px solid #eee;
}
.delivery-box-header .price {
   /* border-radius: 8px;
    background-color: #f6f6f6;
	border: 1px solid #ecf1f4;*/
    padding: 0px;
    margin: auto 10px;
	font-weight: 600;
}
.di-modal-dialog {
    pointer-events: all;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border-radius: 8px;
    max-width: 500px;
    margin: 30px auto;
    min-height: auto;
}

/* Modal backdrop and overlay */
#modal-delivery.in,
#modal-delivery.show {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.5);
}

#modal-delivery .di-modal-dialog {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
    max-width: 450px;
    width: 100%;
    height: auto;
    flex-shrink: 0;
}

#modal-delivery .dates_delivery {
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

#modal-delivery .panel_heading {
    background: #fafafa;
    border-bottom: 1px solid #eee;
    padding: 12px 16px;
    border-radius: 0;
}

#modal-delivery .panel_heading .panel_title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#modal-delivery .panel_heading .close {
    font-size: 24px;
    font-weight: 300;
    color: #666;
    opacity: 1;
    text-shadow: none;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

#modal-delivery .panel_heading .close:hover {
    color: #333;
}

#modal-delivery .panel_body {
    padding: 0;
    padding-top: 0;
    min-height: auto;
    max-height: 60vh;
    overflow-y: auto;
}

#modal-delivery .area-select {
    padding: 10px 16px;
}

#modal-delivery .delivery-box.row1,
#modal-delivery .delivery-box.row2 {
    margin: 0 12px 10px 12px;
}

#modal-delivery .delivery-box.row2:last-child {
    margin-bottom: 12px;
}
#product-carrier .dates_delivery .banner, #product-carrier .dates_delivery .deliveryinfo-extra,
#modal-delivery .dates_delivery .banner, #modal-delivery .dates_delivery .deliveryinfo-extra {
    margin: 0 7px 5px 7px;
    line-height: 20px;
    color: #3B86AC;
    background-color: #e8f0f5;
    position: relative;
	padding: 0px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: stretch;
	border: none;
    /*justify-content: space-between;*/
}
#modal-delivery #delivery-table {
    max-height: 60vh;
    overflow-y: auto;
}
#product-carrier .dates_delivery .banner.warning{
    background-color: #FFF3D7;
    color: #fcc94f;
}
#product-carrier .dates_delivery .banner.warning .di-banner-icon{
    background-color: #fcc94f;
    color: #FFF3D7;
}
.di-banner-icon img{
    width: 20px;
}
.dates_delivery .grid .img img {
  width: 100%;
  max-width: 70px;
}
.dates_delivery .banner .di-banner-icon, .deliveryinfo-extra .di-banner-icon {
    color: #fff;
    border-radius: 10px 0px 0px 10px;
    background-color: #3B86AC;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    flex: 0 0 35px;
    margin: 0 10px 0 0;
    padding: 3px 8px;
    line-height: 25px;
    display: flex;
    align-items: center;
}
.dates_delivery .di-banner-msg {
    text-align: left;
	margin: 10px 0;
}
.dates_delivery .banner.warning:before {
    background-color: #fcc94f;
    color: #FFF3D7;
}
.delivery-box.row2 {
    display: flex;
}
.delivery-box.row2 .carrier-name, .grid .carrier-name {
/*    color: #333333;*/
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9em;
}
.delivery-box.row2 .delivery-box-header{
    flex-direction: column;
    flex: 0 0 100px;
    min-width: 100px;
	justify-content: center;
	align-items: center;
	padding: 12px;
}
.delivery-box.row2 .service div.img, .grid .delivery-box div.img {
	max-width: 85%;
	/*max-height: 85%;*/
  flex: none;
  margin: auto;
  border-radius: 8px;
}
.delivery-box.row1 .service div.img-wrap {
  display: flex;
  align-items: center;
}
.delivery-box.row2 .price{
    text-align: center;
	font-size: 14px;
}
.delivery-box.row1 .service, .delivery-box.row2 .service{
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.delivery-box.row1 .service img {
	 margin: 5px;
    height: 35px;
    max-height: 60px;
}
.delivery-box.row2 .service img {
    width: auto;
    max-width: 100%;
    max-height: 60px;
}
.delivery-box.row1 .carrier-name {
	margin-left: 10px;
	font-weight: 600;
}
.hldi-btn, input.hldi-qty {
    border: 1px solid #d0d0d0!important;
    color: #212121;
    padding: 6px 12px;
    height: 30px;
}
.hldi-btn {
    font-size: 15px;
	line-height: 14px;
    cursor: pointer;
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
}
input.hldi-qty::-webkit-outer-spin-button,
input.hldi-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input.hldi-qty {
  -moz-appearance:textfield;
  min-width: 50px;
  width: 60px;
  text-align: center;
  min-height: 30px;
}
.modal-backdrop {
    z-index: 1000;
    bottom: 0;
}
body {
    position: relative;
}
/*#preloader p {
    padding: 8px;
    background-color: #f3eded;
    margin-bottom: 5px;
    border-radius: 5px;
    color: transparent;
}
#preloader p.di-info2 {
    width: 40%;
}
#preloader p.carrier-name {
    padding: 12px;
}
#preloader .delivery-time {
    width: 100%;
}
#preloader .img {
    width: 64%;
    height: 40px;
    background-color: #f3eded;
    margin: auto;
}*/

.lds-default {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    margin: 14% auto;
}
.lds-default div {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
  animation: lds-default 1.2s linear infinite;
}
.lds-default div:nth-child(1) {
  animation-delay: 0s;
  top: 37px;
  left: 66px;
}
.lds-default div:nth-child(2) {
  animation-delay: -0.1s;
  top: 22px;
  left: 62px;
}
.lds-default div:nth-child(3) {
  animation-delay: -0.2s;
  top: 11px;
  left: 52px;
}
.lds-default div:nth-child(4) {
  animation-delay: -0.3s;
  top: 7px;
  left: 37px;
}
.lds-default div:nth-child(5) {
  animation-delay: -0.4s;
  top: 11px;
  left: 22px;
}
.lds-default div:nth-child(6) {
  animation-delay: -0.5s;
  top: 22px;
  left: 11px;
}
.lds-default div:nth-child(7) {
  animation-delay: -0.6s;
  top: 37px;
  left: 7px;
}
.lds-default div:nth-child(8) {
  animation-delay: -0.7s;
  top: 52px;
  left: 11px;
}
.lds-default div:nth-child(9) {
  animation-delay: -0.8s;
  top: 62px;
  left: 22px;
}
.lds-default div:nth-child(10) {
  animation-delay: -0.9s;
  top: 66px;
  left: 37px;
}
.lds-default div:nth-child(11) {
  animation-delay: -1s;
  top: 62px;
  left: 52px;
}
.lds-default div:nth-child(12) {
  animation-delay: -1.1s;
  top: 52px;
  left: 62px;
}
@keyframes lds-default {
  0%, 20%, 80%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
}

.bubble {
    background-color: #337ab7;
    border-radius: 8px;
    color: #fff;
    padding: 5px;
    white-space: nowrap;
}
.bubble.orange {
    background-color: orange;
}

/* ========================================
   Inline compact design for accordion mode
   ======================================== */
.panel.dates_delivery.accordion-mode {
    box-shadow: none;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.delivery-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.delivery-inline:hover {
    background: #f5f5f5;
}

.di-inline-icon {
    width: 22px;
    height: 22px;
    color: #666;
    flex-shrink: 0;
}

.di-inline-text {
    flex: 1;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    font-weight: 600;
}

.di-inline-text strong {
    color: #333;
    font-weight: 600;
}

.di-inline-price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.di-inline-expand {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s;
}

.delivery-inline.expanded .di-inline-expand {
    transform: rotate(180deg);
}

/* Accordion body styles */
.accordion-mode .accordion-body {
    border-top: none;
    padding: 0;
}

.accordion-mode .panel_body {
    min-height: auto;
    margin-bottom: 0;
}

.accordion-mode .area-select {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 16px;
}

.accordion-mode .area-select .row {
    margin: 8px 0;
}

.accordion-mode .area-select label.left {
    font-size: 13px;
    color: #666;
}

.accordion-mode .area-select select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    transition: border-color 0.2s;
}

.accordion-mode .area-select select:hover,
.accordion-mode .area-select select:focus {
    border-color: #999;
    outline: none;
}

/* Carrier cards for accordion mode */
.accordion-mode #delivery-table {
    padding: 12px !important;
}

.accordion-mode .delivery-box.row1,
.accordion-mode .delivery-box.row2 {
    box-shadow: none !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px !important;
    margin: 0 0 10px 0 !important;
    transition: border-color 0.2s, background 0.2s;
    overflow: hidden;
    min-height: auto !important;
}

.accordion-mode .delivery-box.row1:last-child,
.accordion-mode .delivery-box.row2:last-child {
    margin-bottom: 0 !important;
}

.accordion-mode .delivery-box.row1:hover,
.accordion-mode .delivery-box.row2:hover {
    border-color: #ccc !important;
    background: #fcfcfc !important;
}

.accordion-mode .delivery-box-header {
    background: #f8f8f8 !important;
    padding: 0 !important;
}

.accordion-mode .delivery-box.row2 .delivery-box-header {
    flex: 0 0 100px !important;
    min-width: 100px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 12px !important;
    border-right: 1px solid #eee !important;
}

.accordion-mode .delivery-box.row2 .service {
    margin-top: 0 !important;
}

.accordion-mode .delivery-box.row2 .service img {
    max-width: 55px !important;
    max-height: 45px !important;
}

.accordion-mode .delivery-box.row2 .price {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 10px 0 0 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

.accordion-mode .delivery-box .delivery-time {
    padding: 14px 16px !important;
    margin: 0 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.accordion-mode .delivery-box .carrier-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 6px !important;
}

.accordion-mode .delivery-box .carrier-name span {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.accordion-mode .delivery-box .di-info {
    font-size: 13px !important;
    color: #555 !important;
    font-style: normal !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
}

.accordion-mode .delivery-box .di-info .time {
    color: #333 !important;
    font-weight: 600 !important;
}

/* Banners in accordion mode */
.accordion-mode .banner,
.accordion-mode .deliveryinfo-extra {
    box-shadow: none;
    margin: 0 0 10px 0;
    border-radius: 6px;
}

.accordion-mode .banner:first-child {
    margin-top: 0;
}

/* Single country display */
.accordion-mode .area-select.single-country {
    padding: 10px 16px;
    background: #fafafa;
}

.accordion-mode .area-select.single-country p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Popup trigger inline style */
.popup_delivery .delivery-inline-popup {
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
}

.popup_delivery .delivery-inline-popup:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.popup_delivery .delivery-inline-popup .di-inline-expand {
    font-size: 16px;
    font-weight: 500;
}

/* Carrier delivery estimation in checkout */
.carrier-delivery-estimation {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.carrier-delivery-estimation .delivery-text {
    font-style: italic;
}

.carrier-delivery-estimation strong {
    color: #333;
    font-weight: 600;
}
/* Attribute text display (synced with product selector) */
.hldi-attribute-text {
    font-weight: 500;
    color: #333;
}

.hldi-attribute-row {
    padding: 8px 0;
}

.hldi-quantity-text {
    font-weight: 500;
    color: #333;
}

.hldi-quantity-row {
    padding: 8px 0;
}
