.au-combination-control-message {
  margin: 1rem 0;
  white-space: pre-line;
}

.au-combination-control-message[hidden],
.au-combination-control-low[hidden],
.aucc-in-stock-ribbon[hidden],
.aucc-out-of-stock-ribbon[hidden],
.aucc-pickup-badge[hidden],
.aucc-modal[hidden] {
  display: none !important;
}

.au-combination-control-low {
  margin: 1rem 0;
  font-weight: 600;
}

[data-au-combination-control-disabled="1"] {
  color: #777;
}

button[data-au-combination-control-button="1"] {
  cursor: not-allowed;
  opacity: 0.65;
}

.au-combination-control-image-host {
  position: relative;
  overflow: hidden;
}

.aucc-availability-host {
  position: relative;
  display: block;
  overflow: hidden;
}

.aucc-in-stock-ribbon,
.aucc-out-of-stock-ribbon {
  position: absolute;
  top: 18px;
  left: -40px;
  z-index: 9;
  width: 158px;
  padding: 7px 8px;
  transform: rotate(-45deg);
  background: var(--aucc-availability-green, #2e9d5b);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.aucc-out-of-stock-ribbon {
  background: var(--aucc-out-of-stock-red, #c83b3b);
}

/* A termekkartyak gyari akcios cimkeje a bal felso sarkot hasznalja.
 * A zold keszletjelzes lejjebb kerul, igy a ket jelzes nem takarja egymast. */
.product-miniature .aucc-in-stock-ribbon,
article[data-id-product] .aucc-in-stock-ribbon,
.aucc-listing-in-stock-ribbon {
  top: 88px !important;
}

/* A termekoldali zold keszletjelzes is lejjebb jelenik meg. A kulon osztaly
 * biztosítja, hogy ez ne modositsa a piros es a jobb also jelzes helyet. */
.aucc-product-in-stock-ribbon {
  top: 88px !important;
}

.aucc-pickup-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 9;
  max-width: calc(100% - 20px);
  padding: 7px 11px;
  border-radius: 4px;
  background: var(--aucc-availability-green, #2e9d5b);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
}

.au-combination-control-image-message {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  padding: 12px 16px;
  background: rgba(255, 149, 14, 0.92);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: pre-line;
  pointer-events: none;
}

.product-miniature .thumbnail-container,
.product-miniature .product-thumbnail,
article[data-id-product] {
  position: relative;
}

.aucc-listing-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 8;
  max-width: calc(100% - 20px);
  padding: 7px 10px;
  border-radius: 3px;
  background: rgba(60, 60, 60, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.aucc-listing-out {
  top: 18px;
  right: auto;
  left: -40px;
  width: 158px;
  max-width: none;
  border-radius: 0;
  transform: rotate(-45deg);
  background: var(--aucc-out-of-stock-red, #c83b3b);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.aucc-cart-alert {
  margin-bottom: 1rem;
}

body.aucc-modal-open {
  overflow: hidden;
}

.aucc-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
}

.aucc-modal-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.aucc-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  padding: 2px 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.aucc-modal-title {
  margin: 0 34px 10px 0;
}

.aucc-modal-intro {
  margin-bottom: 20px;
}

.aucc-replacement-card {
  display: grid;
  grid-template-columns: minmax(130px, 42%) 1fr;
  gap: 22px;
  align-items: center;
}

.aucc-replacement-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.aucc-replacement-details h3 {
  margin-top: 0;
}

.aucc-replacement-price {
  font-size: 1.2rem;
  font-weight: 700;
}

.aucc-contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.aucc-contact-link {
  display: block;
  flex: 1 1 220px;
  overflow-wrap: anywhere;
}

.aucc-reopen-button {
  display: block;
  width: 100%;
  margin-top: 12px;
}

@media (max-width: 767px) {
  .aucc-in-stock-ribbon,
  .aucc-out-of-stock-ribbon,
  .aucc-listing-out {
    top: 15px;
    left: -43px;
    font-size: 11px;
  }

  .product-miniature .aucc-in-stock-ribbon,
  article[data-id-product] .aucc-in-stock-ribbon,
  .aucc-listing-in-stock-ribbon,
  .aucc-product-in-stock-ribbon {
    top: 84px !important;
  }

  .aucc-pickup-badge {
    right: 7px;
    bottom: 7px;
    padding: 6px 8px;
    font-size: 11px;
  }

  .au-combination-control-image-message {
    padding: 10px 12px;
    font-size: 14px;
  }

  .aucc-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .aucc-modal-panel {
    max-height: calc(100vh - 20px);
    padding: 22px 18px;
  }

  .aucc-replacement-card {
    grid-template-columns: 1fr;
  }

  .aucc-replacement-card img {
    max-height: 260px;
    object-fit: contain;
  }
}
