/* Compact storefront notifications. Keep these rules scoped to the bar host. */
#bar-notification {
  position: fixed;
  top: 20px;
  top: var(--notification-top, 20px);
  right: 20px;
  bottom: auto;
  left: auto;
  z-index: 1000001;
  width: 360px;
  max-width: calc(100% - 40px);
  margin: 0;
  padding: 0;
  pointer-events: none;
}

#bar-notification .bar-notification {
  --notification-accent: #62717a;
  display: none;
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid #dce1e4;
  border-left: 3px solid #62717a;
  border-left-color: var(--notification-accent, #62717a);
  border-radius: 10px;
  background: #fff;
  color: #29343b;
  box-shadow: 0 4px 20px rgba(27, 42, 51, .14);
  text-align: left;
  pointer-events: auto;
  animation: wristwear-notification-appear .18s ease-out;
}

#bar-notification .bar-notification::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 24px;
  left: auto;
  width: 10px;
  height: 10px;
  border-top: 1px solid #dce1e4;
  border-left: 1px solid #dce1e4;
  background: #fff;
  transform: rotate(45deg);
}

#bar-notification .bar-notification.success {
  --notification-accent: #31754a;
  border-left-color: #31754a;
}

#bar-notification .bar-notification.error {
  --notification-accent: #b33b3b;
  border-left-color: #b33b3b;
}

#bar-notification .bar-notification.warning {
  --notification-accent: #9a6a14;
  border-left-color: #9a6a14;
}

#bar-notification .bar-notification .notification-icon {
  position: absolute;
  top: 17px;
  right: auto;
  left: 15px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f0f3f4;
  color: #62717a;
  color: var(--notification-accent, #62717a);
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

#bar-notification .bar-notification.success .notification-icon {
  background: #edf5ef;
}

#bar-notification .bar-notification.error .notification-icon {
  background: #f8eded;
}

#bar-notification .bar-notification.warning .notification-icon {
  background: #fbf5e8;
}

#bar-notification .notification-messages {
  max-height: calc(100vh - 110px);
  max-height: calc(100vh - var(--notification-top, 20px) - 90px);
  overflow-y: auto;
}

#bar-notification .bar-notification p.content {
  margin: 0;
  padding: 17px 48px 17px 49px;
  color: #29343b;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

#bar-notification .bar-notification p.content a {
  color: #005579;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#bar-notification .bar-notification p.content a:hover {
  color: #003a54;
  text-decoration: underline;
}

#bar-notification .bar-notification button.close {
  appearance: none;
  position: absolute;
  top: 9px;
  right: 8px;
  left: auto;
  float: none;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #52616a;
  font-size: 0;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
  text-shadow: none;
  opacity: 1;
  cursor: pointer;
}

#bar-notification .bar-notification button.close::before {
  content: "\00d7";
  display: block;
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 30px;
}

#bar-notification .bar-notification button.close:hover {
  background: #f0f3f4;
  color: #29343b;
  opacity: 1;
}

#bar-notification .bar-notification button.close:focus,
#bar-notification .bar-notification p.content a:focus {
  outline: 2px solid #005579;
  outline-offset: 2px;
}

html[dir="rtl"] #bar-notification .bar-notification {
  border-right: 3px solid #62717a;
  border-right-color: var(--notification-accent, #62717a);
  border-left: 1px solid #dce1e4;
  text-align: right;
}

html[dir="rtl"] #bar-notification .bar-notification p.content {
  padding-right: 49px;
  padding-left: 48px;
  text-align: right;
}

html[dir="rtl"] #bar-notification .bar-notification .notification-icon {
  right: 15px;
  left: auto;
}

html[dir="rtl"] #bar-notification .bar-notification button.close {
  right: auto;
  left: 8px;
}

@keyframes wristwear-notification-appear {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 479px) {
  #bar-notification {
    right: 12px;
    left: auto;
    width: 360px;
    max-width: calc(100% - 24px);
  }

}

.product-details-page .availability .stock .value.selection-required {
  background: transparent;
  color: #52616a;
}

.product-details-page .attributes .selection-missing {
  outline: 1px solid #b88932;
  outline-offset: 4px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  #bar-notification .bar-notification {
    animation: none;
    transition: none;
  }
}
