.mn-fabric-info[hidden],
.mn-fabric-info__teaser[hidden] {
  display: none !important;
}

.af_addon_field_class:has(> .mn-fabric-info:not([hidden])) > br {
  display: none !important;
}

.mn-fabric-info {
  margin: 12px 0;
  padding: 12px 15px;
  border: 1px solid #dfe8e0;
  border-radius: 9px;
  background: #f7faf7;
  color: #355643;
  font-size: 13px;
  line-height: 1.5;
}

.mn-fabric-info__teaser {
  margin: 0 0 6px;
}

.mn-fabric-info__button {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #087940;
  font: inherit;
  font-weight: 650;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.mn-fabric-info__button:hover,
.mn-fabric-info__button:focus-visible {
  color: #04582d;
}

.mn-fabric-info__button:focus-visible,
.mn-fabric-dialog__close:focus-visible {
  outline: 2px solid #087940;
  outline-offset: 3px;
}

.mn-fabric-dialog {
  box-sizing: border-box;
  position: fixed;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, calc(100vw - 32px));
  max-width: none;
  max-height: min(calc(100dvh - 48px), 760px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e0e8e0;
  border-radius: 15px;
  background: #fff;
  color: #26362c;
  box-shadow: 0 24px 70px rgba(10, 37, 22, .22);
}

.mn-fabric-dialog::backdrop {
  background: rgba(16, 29, 20, .58);
}

.mn-fabric-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px;
  border-bottom: 1px solid #e8ede8;
}

.mn-fabric-dialog__header h2 {
  margin: 0;
  color: #116b3a;
  font-size: clamp(20px, 3vw, 25px);
  font-weight: 700;
  line-height: 1.3;
}

.mn-fabric-dialog__close {
  position: relative;
  display: block;
  flex: none;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0 !important;
  border: 0;
  border-radius: 50%;
  background: #f0f3f0;
  cursor: pointer;
}

.mn-fabric-dialog__close::before,
.mn-fabric-dialog__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: #334639;
  transform: translate(-50%, -50%) rotate(45deg);
}

.mn-fabric-dialog__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mn-fabric-dialog__content {
  box-sizing: border-box;
  max-height: calc(min(100dvh - 48px, 760px) - 78px);
  overflow-y: auto;
  padding: 24px;
  font-size: 14px;
  line-height: 1.65;
}

.mn-fabric-dialog__content p {
  margin: 0 0 14px;
}

.mn-fabric-dialog__content h3 {
  margin: 24px 0 10px;
  color: #174b2d;
  font-size: 16px;
  line-height: 1.4;
}

.mn-fabric-dialog__content ul {
  margin: 0 0 18px;
  padding-left: 23px;
  list-style: disc;
}

.mn-fabric-dialog__content li {
  padding-left: 2px;
  margin: 5px 0;
}

.mn-fabric-dialog__notice {
  padding: 11px 14px;
  border-left: 3px solid #c78a24;
  border-radius: 5px;
  background: #fff8ec;
}

@media (max-width: 600px) {
  .mn-fabric-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 30px);
  }

  .mn-fabric-dialog__header {
    padding: 18px;
  }

  .mn-fabric-dialog__content {
    max-height: calc(100dvh - 100px);
    padding: 18px;
  }
}
