.gift-rule-desc {
	margin-bottom: 35px;
}
.gift_preselector_container {
	padding: 15px 0;
	margin-bottom: 1rem;
}
.gift_preselector_container .form-control-label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}
.gift_preselector_container .gift-pic-container {
	cursor: pointer;
	margin-bottom: 0.75rem;
}
.gift_preselector_container select.form-control-select {
	max-width: 100%;
}
.gift-line {
	margin-bottom: 30px;
}
.bestkit-gifts-cart-block {
	margin: 1rem 0 1.5rem;
	padding: 1rem 1.25rem;
	text-align: left;
}
.bestkit-gifts-cart-block .description {
	text-align: left;
}
.bestkit-gifts-cart-block .bestkit-gifts-label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-right: 0.75rem;
	margin-bottom: 0.5rem;
}
.bestkit-gifts-cart-block .bestkit-gifts-label .material-icons {
	font-size: 1.25rem;
	line-height: 1;
}
.bestkit-gifts-selected {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0.75rem 0;
}
.bestkit-gifts-cart-block .cart-gift-container {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid #ddd;
	background: #fff;
}
.bestkit-gifts-cart-block .gift-text-container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.15rem;
}
.bestkit-gifts-cart-block .bestkit-gift-popup-trigger,
.bestkit-gifts-cart-block #choosy {
	cursor: pointer;
}
.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: left;
}
.gift-line .description a {
	text-decoration: none !important;
}
.gift-line .disabled .gift-item {
	opacity: 0.5
}
.gift-popup {
 padding: 10px 40px 30px;
}

/*
 * Modal Bootstrap (#gift-popup): el CSS legado .gift-popup (banner 30px + triángulo)
 * rompía el tamaño. Estilos normales de modal-lg.
 */
#gift-popup.gift-popup-modal .modal-dialog {
  width: 800px !important;
  max-width: calc(100vw - 2rem) !important;
  margin: 1.75rem auto;
}
#gift-popup.gift-popup-modal .modal-content {
  padding: 0;
  border-radius: 0.3rem;
  overflow: hidden;
  width: 100%;
}
#gift-popup.gift-popup-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #dee2e6;
  margin: 0;
}
#gift-popup.gift-popup-modal .modal-header .modal-title,
#gift-popup.gift-popup-modal .modal-header h2 {
  flex: 1;
  margin: 0;
  padding: 0;
  background: none;
  color: #232323;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  min-height: 0;
  position: static;
  text-align: left;
  text-transform: none;
}
#gift-popup.gift-popup-modal .modal-header .modal-title:after,
#gift-popup.gift-popup-modal .modal-header h2:after {
  display: none;
  content: none;
  border: 0;
}
#gift-popup.gift-popup-modal .modal-header .close {
  margin: 0;
  padding: 0.25rem 0.5rem;
  float: none;
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.6;
}
#gift-popup.gift-popup-modal .modal-body {
  padding: 1rem 1.25rem 1.5rem;
  max-height: calc(100vh - 10rem);
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  box-sizing: border-box;
}
#gift-popup.gift-popup-modal .bestkit-gifts-swiper-wrap {
  min-height: 280px;
  width: 100%;
}
#gift-popup.gift-popup-modal .gift-item {
  margin-bottom: 0.5rem;
}
#gift-popup.gift-popup-modal .gift-item .pic {
  text-align: center;
  background: #f7f7f7;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#gift-popup.gift-popup-modal .gift-item .pic img {
  max-width: 100%;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
#gift-popup.gift-popup-modal .gift-scroll-content .title {
  font-size: 0.875rem;
  line-height: 1.3;
  padding: 0.5rem 0.65rem;
}
#gift-popup.gift-popup-modal .more-gift {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.3;
}
#popup_gifts > .gift-line,
#popup_gifts > .bestkit-gifts-cart-block {
  display: none !important;
}

.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 {
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-top: 20px solid #e74c3c;
	bottom: -20px;
	content: " ";
	left: 20%;
	position: absolute;
}
/* Banner rojo legado: solo fuera del modal Bootstrap */
.gift-popup:not(.modal):not(.modal-content) 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:not(.modal):not(.modal-content) 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;
}
.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{
	width:100%;
}

#gift-popup .gift-item .pic img {
	max-width: 100%;
	height: auto;
}


.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%}