/* Woocommerce Anpassungen */
/* =========================
   Woo Add-to-Cart Notice
   ========================= */

.woocommerce-notices-wrapper{
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 9999;
  width: min(760px, calc(100vw - 32px));
  margin: 0;
  pointer-events: none;
}

.woocommerce-notices-wrapper .woocommerce-message{
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 18px;

  width: 100%;
  margin: 0;
  padding: 22px 22px 22px 20px;
  border: 0;
  border-radius: 28px;
  background: #f7f7f5;
  color: #222;
  box-shadow: 0 14px 34px rgba(0,0,0,0.10);

  font-size: 18px;
  line-height: 1.3;

  pointer-events: auto;
  animation: rwNoticeIn .28s ease;
}

/* Woo Standard-Deko entfernen */
.woocommerce-message::after{
  display: none !important;
}

/* Elementor / Font Awesome Haken */
.woocommerce-message::before{
  content: "\f00c";
  grid-column: 1;
  position: relative;
  left: 0;
  top: 0;
  transform: none;

  width: 48px;
  height: 48px;
  min-width: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background: #d9ddd3;
  color: #1f2328;

  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 28px;
  line-height: 1;

  margin: 0;
}

/* Text */
.woocommerce-message{
  text-wrap: pretty;
}

.woocommerce-message > *:not(.button){
  grid-column: 2;
}

/* Button */
.woocommerce-message .button,
.woocommerce-message a.button,
.woocommerce-message .button.wc-forward{
  grid-column: 3;
  justify-self: end;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  margin: 0 !important;
  padding: 0 34px !important;
  min-height: 56px;
  min-width: 360px;

  border: 0 !important;
  border-radius: 999px !important;
  background: #000 !important;
  color: #fff !important;
  box-shadow: none !important;

  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;

  white-space: nowrap !important;
  word-break: normal !important;
  line-height: 1 !important;

  float: none !important;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.woocommerce-message .button:hover,
.woocommerce-message a.button:hover,
.woocommerce-message .button.wc-forward:hover{
  background: #111 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Animation */
@keyframes rwNoticeIn{
  from{
    opacity: 0;
    transform: translateY(-10px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet */
@media (max-width: 900px){
  .woocommerce-notices-wrapper{
    top: 74px;
    right: 16px;
    width: min(680px, calc(100vw - 24px));
  }

  .woocommerce-notices-wrapper .woocommerce-message{
    grid-template-columns: 48px minmax(0, 1fr);
    row-gap: 14px;
    padding: 18px;
    border-radius: 24px;
    font-size: 17px;
  }

  .woocommerce-message::before{
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 24px;
  }

  .woocommerce-message .button,
  .woocommerce-message a.button,
  .woocommerce-message .button.wc-forward{
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 52px;
    min-width: 280px;
    padding: 0 24px !important;
    font-size: 16px !important;
  }
}

/* Mobile */
@media (max-width: 640px){
  .woocommerce-notices-wrapper{
    top: 68px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .woocommerce-notices-wrapper .woocommerce-message{
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 12px;
    padding: 16px;
    border-radius: 20px;
    font-size: 16px;
  }

  .woocommerce-message::before{
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 20px;
  }

  .woocommerce-message .button,
  .woocommerce-message a.button,
  .woocommerce-message .button.wc-forward{
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    min-height: 50px;
    padding: 0 20px !important;
    font-size: 15px !important;
    letter-spacing: 0.1em !important;
  }
}