/* EA BLACKWEEKS 1.1.0. Loaded only while the shared admin switch is ON. */
.product-thumb > .image[data-ea-blackweeks="1"],
.product-image > .main-image[data-ea-blackweeks="1"] {
  position: relative;
}

[data-ea-blackweeks="1"] > .ea-bw-badge {
  position: absolute;
  z-index: 40;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  width: max-content;
  max-width: calc(100% - 20px);
  overflow: hidden;
  border-radius: 9px;
  box-sizing: border-box;
  font-family: "Montserrat", Arial, sans-serif;
  font-style: normal;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

.ea-bw-badge > .ea-bw-title {
  display: block;
  padding: 6px 10px 5px;
  background: #080808;
  color: #ffe448;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.ea-bw-badge > .ea-bw-value {
  display: block;
  padding: 5px 10px 7px;
  background: #ed1228;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
}

/* A successful server badge alone suppresses the old delayed green ribbon. */
body.ea-sale-page #content-top .module-products-335 .product-thumb > .image[data-ea-blackweeks="1"] > .ea-sale-discount-ribbon,
body.ea-sale-page #content-top .module-products-335 .product-thumb > .image[data-ea-blackweeks="1"] > .ea-sale-discount-ribbon.ea-sale-green-badge,
[data-ea-blackweeks="1"] > .ea-sale-discount-ribbon {
  display: none !important;
}

/* Preserve native NOVO/NEW and DARILO/GIFT labels below the campaign badge. */
.product-thumb > .image[data-ea-blackweeks="1"][data-ea-bw-labels="1"] > .product-labels,
.product-image > .main-image[data-ea-blackweeks="1"][data-ea-bw-labels="1"] > .product-labels {
  transform: translateY(68px);
}

@media (max-width: 767px) {
  [data-ea-blackweeks="1"] > .ea-bw-badge {
    top: 7px;
    left: 7px;
    max-width: calc(100% - 14px);
    border-radius: 7px;
  }
  .ea-bw-badge > .ea-bw-title {
    font-size: 11px;
    padding: 5px 7px 4px;
  }
  .ea-bw-badge > .ea-bw-value {
    font-size: 17px;
    padding: 4px 7px 5px;
  }
  .product-thumb > .image[data-ea-blackweeks="1"][data-ea-bw-labels="1"] > .product-labels,
  .product-image > .main-image[data-ea-blackweeks="1"][data-ea-bw-labels="1"] > .product-labels {
    transform: translateY(56px);
  }
}
