/*
 *  Do not edit or add to this file if you wish to upgrade Prestashop to newer
 *  versions in the future.
 *  ****************************************************
 *
 *   @author     BEST-KIT.COM (contact@best-kit.com)
 *   @copyright  http://best-kit.com
 *   @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 *   International Registered Trademark & Property of PrestaShop SA
 */

.gift-rule-desc {
	margin-bottom: 35px;
}
.gift_preselector_container {
	padding: 15px;
}
.gift-line {
	margin-bottom: 30px;
}
.gift-line .icon-gift:before {
	font-size: 16px;
	margin-right: 5px;
}
.gift-line .dashed {
	border-bottom: 1px dotted;
	text-decoration: none !important;
}
.gift-line .description {
	text-align: right;
}
.gift-line .description a {
	text-decoration: none !important;
}
.gift-line .disabled .gift-item {
	opacity: 0.5
}
.gift-popup {
 padding: 10px 40px 30px;
}

.gift-popup h2{
  margin: 0 0 20px;
    text-transform: uppercase;
}


.gift-popup .more-gift a {
   color: #e74c3c;
    font-size: 14px;
    text-decoration: none;
}
.gift-item-container {
	cursor: pointer;
}
.gift-item-container.disabled, .gift-item-container.hover{
	cursor: default;
}
.gift-item-container.processing{
    cursor: wait;
    opacity: 0.3;
}
.gift-item-container.hover .pic {
	border: 2px solid #e74c3c;
}
.gift-item-container.disabled {
	opacity: 0.6;
}

.gift-item {
	background: none repeat scroll 0 0 #f0f0f0;
	margin-bottom: 20px;
    overflow: hidden;
}
.gift-item .new-label {
    background: #e74c3c;
}
.gift-item .new-label:before,
.gift-item .new-label:after {
    display: none;
    border-color: #e74c3c transparent transparent transparent;
}
.container-item img {
	border: 1px solid #d6d4d4;
}
.container-item {
	display: inline-block;
	margin: 10px 25px;
	vertical-align: top;
	width: 128px;
}
.container-item .product_img_link {
}
.container-item .product-image-container {
	border: none;
}
.gift-rule-name {
   color: #555454;
    font: 600 18px/22px "Open Sans",sans-serif;
    margin-bottom: 0;
    margin-top: 7px;
    padding: 20px 5px 17px 71px;
    text-transform: uppercase;
}
.gift-rule-name h5 {
	color: #555454;
	font: 600 18px/22px "Open Sans", sans-serif;
	margin: 0;
	text-transform: uppercase;
}
.gift-rule-dependencies {
	background: none repeat scroll 0 0 #f6f6f6;
	color: #555454;
	padding: 20px;
}
.gift-rule-dependencies > div {
	background: none repeat scroll 0 0 #fff;
	display: inline-block;
	margin: 10px;
	padding: 10px;
	vertical-align: top;
	width: 22%;
}
.gift-rule-dependencies .icon {
 color: #555454;
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
}
.gift-rule-desc:after, .gift-popup h2:after {
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-top: 20px solid #e74c3c;
	bottom: -20px;
	content: " ";
	left: 20%;
	position: absolute;
}
.gift-rule-desc, .gift-popup h2 {
 background: none repeat scroll 0 0 #e74c3c;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    line-height: 40px;
    min-height: 25px;
    padding: 0 12px 0 40px;
    position: relative;
    text-align: left;
	clear: both;
}
.gift-rule-dependencies ul, .gift-rule-dependencies ol {
	list-style: disc outside none;
	margin-bottom: 9px;
	margin-left: 20px;
	margin-top: 10px;
}

.gift-item{
	position:relative;
}


#module-bestkit_gifts-offers .gift-item:before {
 background: none repeat scroll 0 0 #ddd;
    border-radius: 20px;
    content: " ";
    height: 20px;
    left: 4%;
    margin-left: -10px;
    position: absolute;
    top: 20px;
    width: 20px;
}


#gift-popup h3{
	display:inline-block;
	width:100%;
}


.gift-scroll-content{
	display:inline-block;
	width:100%;
}


.gift-scroll-content .title{
   background: none repeat scroll 0 0 #e74c3c;
    color: #fff;
    font-size: 16px;
    padding: 10px;
    position: relative;
    text-align: left;
}


.gift-scroll-content .title:after {
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-top: 10px solid #e74c3c;
	bottom: -10px;
	content: " ";
	left: 20%;
	position: absolute;
}
.gift-scroll-content .title a{
	color:#fff;
}


.gift-scroll-content   .pic{
	border:1px solid #d6d4d4;
}


/*jquery tooltip plugin*/
.tooltip {
    position: absolute;
    z-index: 1030;
    display: block;
    font-size: 11px;
    line-height: 1.4;
    opacity: 0;
    filter: alpha(opacity=0);
    visibility: visible;
}

.tooltip.in {
    opacity: 0.8;
    filter: alpha(opacity=80);
}

.tooltip.top {
    padding: 5px 0;
    margin-top: -15px;
}

.tooltip.right {
    padding: 0 5px;
    margin-left: 3px;
}

.tooltip.bottom {
    padding: 5px 0;
    margin-top: 3px;
}

.tooltip.left {
    padding: 0 5px;
    margin-left: -3px;
}

.tooltip-inner {
    max-width: 200px;
    padding: 8px;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    background-color: #000000;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
}

.tooltip.top .tooltip-arrow {
    bottom: 0;
    left: 50%;
    margin-left: -5px;
    border-top-color: #000000;
    border-width: 5px 5px 0;
}

.tooltip.right .tooltip-arrow {
    top: 50%;
    left: 0;
    margin-top: -5px;
    border-right-color: #000000;
    border-width: 5px 5px 5px 0;
}

.tooltip.left .tooltip-arrow {
    top: 50%;
    right: 0;
    margin-top: -5px;
    border-left-color: #000000;
    border-width: 5px 0 5px 5px;
}

.tooltip.bottom .tooltip-arrow {
    top: 0;
    left: 50%;
    margin-left: -5px;
    border-bottom-color: #000000;
    border-width: 0 5px 5px;
}

.gift_preselector_container .gift-pic-container {
    border: 2px solid transparent;
    overflow: hidden;
	padding-left: 0px;
    padding-right: 0px;
}

.gift_preselector_container .gift-pic-container:hover {
    border: 2px solid #d0d0d0;
}

.gift_preselector_container .gift-pic-container.selected,
.gift_preselector_container .gift-pic-container.selected:hover {
    border: 2px solid #015883;
}

.gift_item .cart_delete a.gift_cart_delete {
	font-size: 23px;
	color: #333333;
	cursor: pointer;
}
.gift_item .cart_delete a.gift_cart_delete:hover { color: #silver; }

.gift_item textarea.gift_message {width: 100%}
/* ===================================================
   bkg-gift-card — product page gift banner
   =================================================== */
.bkg-gift-card {
    background: #f0f0f0;
    border-radius: 8px;
    margin-top: 14px;
    overflow: hidden;
    font-family: inherit;
}

.bkg-gift-card__header {
    background: #888;
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    letter-spacing: 0.02em;
}

.bkg-gift-card__body {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
}

.bkg-gift-card__img {
    flex: 0 0 auto;
}

.bkg-gift-card__img img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    display: block;
}

.bkg-gift-card__info {
    flex: 1 1 auto;
}

.bkg-gift-card__name {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin-bottom: 4px;
}

.bkg-gift-card__rule {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}

/* ===================================================
   bkg-cart-gift-block — bloque regalo en carrito/OPC
   v1.8.6
   =================================================== */

/* Bloque contenedor principal */
.bkg-cart-gift-block {
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    margin-top: 12px;
    overflow: hidden;
    font-family: inherit;
}

/* Cabecera del bloque */
.bkg-cart-gift-block__header {
    background: #6b6b6b;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bkg-cart-gift-block__header a {
    color: #fff;
    text-decoration: none;
}
.bkg-gift-icon {
    font-style: normal;
    font-size: 15px;
}

/* Cuerpo del bloque */
.bkg-cart-gift-block__body {
    padding: 12px 14px;
    background: #f7f7f7;
}

/* Estado: aún no alcanza el importe mínimo */
.bkg-cart-gift-pending {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
.bkg-cart-gift-pending strong {
    color: #333;
}

/* CTA para elegir el regalo */
.bkg-cart-gift-choose {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s;
}
.bkg-cart-gift-choose:hover { color: #000; text-decoration: none; }
.bkg-cart-gift-arrow {
    font-size: 20px;
    line-height: 1;
    color: #999;
}

/* Enlace cambiar regalo */
.bkg-cart-gift-change {
    display: inline-block;
    font-size: 12px;
    color: #888;
    text-decoration: underline;
    margin-top: 6px;
}
.bkg-cart-gift-change:hover { color: #555; }

/* ── Regalo seleccionado (cart_gift_product_line) ── */
.bkg-cart-gift-selected {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bkg-cart-gift-selected__img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e0e0e0;
    flex: 0 0 auto;
}
.bkg-cart-gift-selected__info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.bkg-cart-gift-selected__name {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    line-height: 1.3;
}
.bkg-cart-gift-selected__name:hover { color: #000; }
.bkg-cart-gift-selected__cancel {
    font-size: 11px;
    color: #999;
    text-decoration: underline;
}
.bkg-cart-gift-selected__cancel:hover { color: #c00; }
.bkg-cart-gift-selected__free {
    font-size: 12px;
    font-weight: 700;
    color: #2a7a2a;
    white-space: nowrap;
    flex: 0 0 auto;
}

/* ── Resumen OPC (cart-summary-gifts) ── */
.bkg-cart-summary-gift {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f7f7f7;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}
.bkg-cart-summary-gift__label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 6px;
}
.bkg-cart-summary-gift__row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bkg-cart-summary-gift__img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #ddd;
    flex: 0 0 auto;
}
.bkg-cart-summary-gift__info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bkg-cart-summary-gift__name {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}
.bkg-cart-summary-gift__name small {
    font-weight: 400;
    color: #666;
}
.bkg-cart-summary-gift__free {
    font-size: 12px;
    font-weight: 700;
    color: #2a7a2a;
}

/* ── Popup de selección de regalo ── */
.gift-popup h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #222;
}
.gift-scroll-content {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.gift-scroll-content li {
    flex: 1 1 140px;
    max-width: 180px;
}
.gift-item-container {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.gift-item-container:hover:not(.disabled) {
    border-color: #aaa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.gift-item-container.hover {
    border-color: #2a7a2a;
    box-shadow: 0 2px 8px rgba(42,122,42,0.15);
}
.gift-item-container.disabled {
    opacity: 0.5;
    cursor: default;
}
.gift-item .pic {
    position: relative;
    text-align: center;
    padding: 10px;
    background: #fafafa;
}
.gift-item .pic img {
    max-width: 100%;
    height: 90px;
    object-fit: contain;
}
.bkg-gift-price-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #e85454;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.gift-item .title {
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #222;
}
.gift-item .title strong {
    display: block;
    font-weight: 700;
    margin-bottom: 3px;
}
.bkg-gift-rule-desc {
    display: block;
    font-size: 11px;
    color: #777;
}
.bkg-gift-pending-msg {
    display: block;
    font-size: 11px;
    color: #c07000;
    padding: 4px 10px 0;
}
.more-gift {
    display: block;
    text-align: center;
    margin-top: 4px;
    font-size: 11px;
}
.more-gift a {
    color: #888;
    text-decoration: underline;
}
.more-gift a:hover { color: #555; }

/* ===================================================
   Badge "Regalo gratis" en línea nativa del carrito
   v1.8.7
   =================================================== */
.bkg-gift-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #2a7a2a;
    background: #eaf5ea;
    border: 1px solid #b8deb8;
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
}

.bkg-gift-price-free {
    color: #2a7a2a !important;
}
.bkg-gift-price-free strong {
    color: #2a7a2a !important;
}

/* ===================================================
   Fila "Regalo incluido" (gift_inside_cart=0, asignado)
   v1.8.15
   =================================================== */
.bkg-cart-gift-included {
    padding: 12px 0;
    border-top: 1px solid #eee;
}
.bkg-cart-gift-included .product-image img {
    max-width: 80px;
    border-radius: 4px;
}
.bkg-cart-gift-included .label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}
.bkg-gift-badge-included {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #2a7a2a;
    background: #eaf5ea;
    border: 1px solid #b8deb8;
    border-radius: 4px;
    padding: 2px 8px;
    margin-top: 4px;
    white-space: nowrap;
}
.bkg-cart-gift-included .bkg-gift-price-free {
    font-size: 14px;
    display: block;
    text-align: right;
    padding-top: 8px;
}

/* ===================================================
   Fila "Regalo incluido" — estilo OPC media-list
   v1.8.18
   =================================================== */
.bkg-gift-product-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #e8e8e8;
}
.bkg-gift-product-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    gap: 12px;
}
.bkg-gift-product-row .media-left {
    flex-shrink: 0;
}
.bkg-gift-product-row .media-left img {
    width: 60px;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}
.bkg-gift-product-row .media-body {
    flex: 1;
    min-width: 0;
}
.bkg-gift-product-name a {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    display: block;
    line-height: 1.3;
}
.bkg-gift-product-name a:hover { color: #000; }
.bkg-gift-product-combination {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}
.bkg-gift-badge-included {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #2a7a2a;
    background: #eaf5ea;
    border: 1px solid #b8deb8;
    border-radius: 4px;
    padding: 2px 7px;
    margin-top: 5px;
    white-space: nowrap;
}
.bkg-gift-product-price {
    flex-shrink: 0;
    text-align: right;
    font-size: 13px;
}
.bkg-gift-price-free {
    color: #2a7a2a !important;
}
