#ampromo-items-add {
  border: 1px solid #ededed;
  padding: 7px;
  text-align: center;
  margin-bottom: 12px;
}
#ampromo-items-add a {
  text-decoration: none;
  border-bottom: 1px dashed;
}
.amscheckout #ampromo-items-add {
  margin: 7px 10px;
}
#ampromo-overlay {
  direction: ltr;
}
#ampromo-overlay.mode-popup {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  top: 0;
  left: 0;
  z-index: 10000;
  text-align: center;
  overflow: scroll;
}
#ampromo-overlay.mode-popup .close {
  position: absolute;
  top: 7px;
  right: 7px;
  background: url(../../../images/amasty/ampromo/close_icon.png) no-repeat;
  width: 16px;
  height: 16px;
  z-index: 1;
  margin: 0;
  padding: 0;
  font-size: 0;
  display: block;
  opacity: .8;
}
#ampromo-overlay.mode-popup .close:hover {
  opacity: 1;
  transition: opacity 0.2s ease;
}

#ampromo-overlay.mode-inline #ampromo-items {
  width: 100%;
  margin: 0 0 40px;
  padding: 12px;
  border: 1px solid #30B579;
}

#ampromo-overlay.mode-inline #ampromo-items .products .product {
  margin-bottom: 20px;
}
#ampromo-overlay.mode-inline #ampromo-items #ampromo-carousel-wrapper {
  margin: 0;
}
#ampromo-overlay.mode-inline #ampromo-items .ampromo-item .ampromo-items-form {
  display: flex;
  flex-flow: column;
  height: 100%;
  justify-content: space-between;
}
#ampromo-overlay.mode-inline #ampromo-items .ampromo-item .ampromo-item-buttons {
  margin-top: 20px;
  text-align: center;
}
#ampromo-overlay.mode-inline #ampromo-items .ampromo-item .product-config .ampromo-item-options {
  margin-bottom: 0;
}
#ampromo-overlay.mode-inline #ampromo-items .ampromo-item .product-config.options {
  display: flex;
  align-items: flex-start;
}
#ampromo-overlay.mode-inline #ampromo-items .ampromo-item .product-config.options .ampromo-item-options {
  margin-left: 12px;
}
#ampromo-overlay.mode-inline #ampromo-items .ampromo-item .product-config.options .ampromo-item-options,
#ampromo-overlay.mode-inline #ampromo-items .ampromo-item .product-config.options .ampromo-item-options input,
#ampromo-overlay.mode-inline #ampromo-items .ampromo-item .product-config.options .ampromo-item-options select {
  max-width: 160px;
}
#ampromo-overlay.mode-inline #ampromo-items .ampromo-add-all {
  margin-top: 7px;
  display: flex;
  justify-content: center;
}

#ampromo-overlay.mode-inline .ampromo-slide {
  margin: 10px 0;
}
#ampromo-overlay.mode-inline #ampromo-carousel-content {
  display: flex;
  flex-wrap: wrap;
}
#ampromo-overlay .ampromo-carousel-control {
  position: absolute;
  top: 260px;
  background: url(../../../images/amasty/ampromo/buttons_next_prev.png) no-repeat;
  width: 48px;
  height: 45px;
  font-size: 0;
  display: none;
}
#ampromo-overlay .ampromo-carousel-control.carousel-disabled.prev {
  background-position: 0 0 !important;
}
#ampromo-overlay .ampromo-carousel-control.carousel-disabled.next {
  background-position: -46px 0 !important;
}
#ampromo-overlay .ampromo-carousel-control.prev {
  background-position: 0 -45px;
  left: 20px;
}
#ampromo-overlay .ampromo-carousel-control.prev:hover {
  background-position: 0 -91px;
}
#ampromo-overlay .ampromo-carousel-control.next {
  background-position: -46px -45px;
  right: 20px;
}
#ampromo-overlay .ampromo-carousel-control.next:hover {
  background-position: -46px -91px;
}
#ampromo-overlay #ampromo-items {
  border: 1px solid #ededed;
  background-color: white;
  position: relative;
  margin: 0 auto;
  padding: 24px;
  display: inline-block;
  box-sizing: border-box;
}
#ampromo-overlay #ampromo-items.amcarousel {
  display: block;
  width: 950px;
}
#ampromo-overlay #ampromo-items.amcarousel #ampromo-carousel-wrapper {
  width: 780px;
}
#ampromo-overlay #ampromo-items.amcarousel #ampromo-carousel-content {
  width: 4500px;
  height: 1px;
}
#ampromo-overlay #ampromo-items.amcarousel .ampromo-carousel-control {
  display: block;
}

#ampromo-overlay #ampromo-items .ampromo-item.ampromo-type-amgiftcard {
  width: 400px;
}
#ampromo-overlay #ampromo-items .ampromo-item.ampromo-type-amgiftcard .ampromo-item-options {
  overflow-y: scroll;
  max-height: 300px;
}
#ampromo-overlay #ampromo-items .ampromo-item-options {
  margin-bottom: 12px;
  text-align: left;
}
#ampromo-overlay #ampromo-items .ampromo-item-image {
  display: block;
  margin: 0 auto;
  width: 160px;
  height: 160px;
}
#ampromo-overlay #ampromo-items .rule .ampromo-rule-header {
  font-weight: bold;
  font-size: 18px;
  background: #f3f3f3;
  text-transform: uppercase;
  height: 45px;
  line-height: 45px;
  box-sizing: border-box;
  padding-left: 20px;
  margin-bottom: 25px;
  cursor: pointer;
}
#ampromo-overlay #ampromo-items .rule .ampromo-rule-header:after {
  content: '▲';
  margin-left: 12px;
  color: #919191;
}
#ampromo-overlay #ampromo-items .rule .products {
  display: flex;
  flex-wrap: wrap;
  border-radius: 5px;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 0 0 40px;
}
#ampromo-overlay #ampromo-items .rule .products .product {
  margin-left: 10px;
}
#ampromo-overlay #ampromo-items .rule .products .product .product-config.simple {
  margin: -20px -20px -40px;
}
#ampromo-overlay #ampromo-items .rule .products .product .product-config.simple .product-title {
  position: static;
}
#ampromo-overlay #ampromo-items .rule .products .product .product-config.simple .ampromo-item-image-wrap {
  padding: 20px;
}
#ampromo-overlay #ampromo-items .rule .products .product .ampromo-item {
  box-shadow: none;
  border: 1px solid #d8dae4;
  border-radius: 0;
}
#ampromo-overlay #ampromo-items .rule .products .product .ampromo-item.checked {
  outline: 1px solid #d8dae4;
}
#ampromo-overlay #ampromo-items .rule .products .product .ampromo-item .ampromo-item-title {
  border-radius: 0;
}
#ampromo-overlay #ampromo-items .rule .products .product .ampromo-item .mark input {
  position: absolute;
  left: -25px;
  top: 0;
}
#ampromo-overlay #ampromo-items .rule.collapsed .ampromo-rule-header:after {
  content: '▼';
}
#ampromo-overlay #ampromo-items .rule.collapsed .products {
  display: none;
}
@media only screen and (max-width: 820px) and (min-width: 420px) {
  #ampromo-overlay.mode-popup #ampromo-items.amcarousel {
    width: 400px;
  }
  #ampromo-overlay.mode-popup #ampromo-items.amcarousel #ampromo-carousel-wrapper {
    width: 250px;
  }
}
@media only screen and (max-width: 420px) {
  #ampromo-overlay.mode-popup #ampromo-items.amcarousel {
    width: 100%;
  }
  #ampromo-overlay.mode-popup #ampromo-items.amcarousel #ampromo-carousel-wrapper {
    width: 250px;
  }
  #ampromo-overlay.mode-popup .ampromo-carousel-control {
    z-index: 10001;
  }
  #ampromo-overlay.mode-popup .ampromo-carousel-control.next {
    right: 0;
  }
  #ampromo-overlay.mode-popup .ampromo-carousel-control.prev {
    left: 0;
  }
}
@media only screen and (max-width: 340px) {
  #ampromo-overlay.mode-popup #ampromo-items .ampromo-item {
    border: none;
  }
}
@media only screen and (max-height: 500px) {
  #ampromo-overlay.mode-popup #ampromo-items {
    padding-top: 0;
  }
  #ampromo-overlay.mode-popup #ampromo-items.amcarousel {
    top: 0 !important;
    height: 100%;
  }
  #ampromo-overlay.mode-popup #ampromo-items > h4 {
    display: none;
  }
}
#ampromo-carousel-wrapper {
  overflow: hidden;
  margin: 0 auto;
}
#ampromo-carousel-content .ampromo-slide {
  float: left;
}
.ampromo-item .qty-holder {
  display: none;
}
.ampromo-item .giftcard-send-form {
  padding: 0;
  margin: 0;
}
.ampromo-item-options select,
.ampromo-item-options input {
  max-width: 210px;
}
.ampromo-notification {
  padding: 7px;
  text-align: center;
  margin-bottom: 12px;
  border: 1px solid #f16048;
  color: #df280a;
  background: #faebe7;
}
.ampromo-items-form h4 {
  line-height: 50px;
}
.ampromo-items-form h4 a {
  display: inline-block;
  vertical-align: middle;
  line-height: 30px;
}
.ampromo-label {
  float: right;
  position: absolute;
  z-index: 500;
}
.ampromo-gift .product-image {
  float: left;
}
.ampromo-gift li {
  margin: 10px 10px;
  float: left;
}
.ampromo-tooltip {
  padding: 2px 5px;
  background: #FEC;
  border: 1px solid #FAA819;
  color: #1F5070;
  text-align: left;
  width: 300px;
  position: absolute;
  z-index: 10001;
}
.ampromo-product-name {
  font-weight: bold;
}

.calendar {
  z-index:10001;
}

/* Trigger ========================================================================================================== */

#ampromo-items h4 {
    font-size: 16px;
    color: #30B579;
}

#ampromo-items #trigger-collapse {
  cursor: pointer;
  margin-bottom: 0;
  position: relative;
}

#ampromo-items #trigger-collapse:after {
  content: '';
  background-image: url('../../../images/link-arrow.svg');
  padding: 8px;
  position: absolute;
  right: 0;
  background-repeat: no-repeat;
  transform: rotate(-180deg);
}

#ampromo-items #trigger-collapse.close-wrapper:after {
  transform: rotate(0deg);
}

/* Contents ========================================================================================================= */

.checkout-cart-index .ampromo-item .price-box .old-price {
  display: none;
}

#ampromo-carousel-content .ampromo-slide {
  width: 100%;
}

/* Table */

#ampromo-overlay, #ampromo-items {
  opacity: 1 !important;
  display:  block !important;
}

@media screen and (max-width: 749px) {
  .custom-table-cell.ampromo-item-image-wrap {
    float:left;
    width: 40%;
  }

  #ampromo-overlay #ampromo-items .custom-table-cell.ampromo-item-image-wrap .ampromo-item-image {
    width: 100%;
    height: unset;
  }

  .custom-table-cell.checkout-cart-qty-status-message,
  .custom-table-cell.ampromo-item-title {
    float:right;
    width: 60%;
    padding-left: 20px;
  }

  .ampromo-item .ampromo-item-buttons {
    margin-top :20px;
    text-align :center;
    float      :left;
    width      :50%;
    clear      :left;
  }

  .custom-table-cell.price-box-container {
    float: right;
    width: 50%;
    text-align: right;
    margin-top: 30px;
    clear: none;
  }

  .custom-table-cell.price-box-container .special-price {
    font-family: "Radikal-Medium", "Open Sans", sans-serif;
  }

  .custom-table-cell.price-box-container .special-price .price {
    color: #3c3c3c;
  }

  .custom-table-cell.ampromo-item-title h4 a {
    font-size: 18px;
    color: #3c3c3c;
  }

  .custom-table-cell.ampromo-item-buttons .button-tertiary {
    padding: 10px 20px;
  }

  .custom-table-cell.ampromo-item-buttons .button-tertiary > span {
    display:block;
    text-align: center;
  }
}

@media screen and (max-width: 480px){
  .custom-table-cell.ampromo-item-buttons {
    width: 100%;
  }

  .custom-table-cell.ampromo-item-buttons .button-tertiary {
    width: 100%;
  }

  .custom-table-cell.price-box-container {
    clear: both;
    float: left;
    width: 100%;
    margin-top: 20px;
    text-align: center;
  }

  .custom-table-cell.price-box-container .special-price {
    padding-left: 0;
  }
}


@media screen and (min-width: 750px) {
  .custom-table-wrapper {
    display: table;
  }

  .custom-table-row {
    display: table-row;
  }

  .custom-table-cell {
    display: table-cell;
    vertical-align: middle;
  }

  .custom-table-cell.ampromo-item-image-wrap {
    width: 12%;
  }

  .custom-table-cell.ampromo-item-title {
    vertical-align: middle;
    max-width: 180px;
  }

  .custom-table-cell.ampromo-item-title h4{
    padding: 0 50px;
  }

  .custom-table-cell.ampromo-item-title h4 a {
    color: #3c3c3c;
    font-size: 24px;
  }

  .custom-table-cell.checkout-cart-qty-status-message {
    width: 20%;
  }

  .custom-table-cell.mark,
  .custom-table-cell.ampromo-item-buttons {
    width: 20%;
    padding-left: 10px;
  }

  .custom-table-cell.ampromo-item-buttons button {
    margin: 0 auto;
  }

  .custom-table-cell.price-box-container {
    text-align: right;
    padding-right: 10px;
  }

  .custom-table-cell .ampromo-item-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
  }

  .custom-table-cell.price-box-container .price-box .price {
    color: #3c3c3c;
    font-size: 24px;
    font-family: "Radikal-Medium", "Open Sans", sans-serif;
  }
}