/* Workshop badge widget */
.workshop-badge-widget {
  position: fixed;
  right: 20px;
  bottom: 15px;
  z-index: 9998;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.workshop-badge-widget span {
  font-size: 12px;
}

.workshop-widget-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(31, 31, 31, 0.4);
  z-index: 2147483647;
  display: flex;
  justify-content: center;
  align-items: center;
}

.workshop-widget-popup {
  position: relative;
}

.workshop-widget-popup iframe {
  width: calc(100vw - 32px);
  max-width: 1000px;
  height: min(calc(100dvh - 32px), 760px);
  max-height: calc(100dvh - 32px);
  border-radius: 8px;
  overflow: hidden;
  background-color: #f7f6f3;
  position: relative;
  box-shadow:
    rgb(0 0 0 / 7%) 0px 0px 0px 1px,
    rgb(0 0 0 / 5%) 0px 2px 4px 0px,
    rgb(0 0 0 / 5%) 0px 12px 24px 0px;
}

.workshop-inline-widget iframe {
  max-width: 1000px;
  height: 760px;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f7f6f3;
  position: relative;
  box-shadow:
    rgb(0 0 0 / 7%) 0px 0px 0px 1px,
    rgb(0 0 0 / 5%) 0px 2px 4px 0px,
    rgb(0 0 0 / 5%) 0px 12px 24px 0px;
}

.workshop-inline-widget {
  transition: none;
}

@media (max-width: 735px) {
  .workshop-widget-popup iframe {
    max-width: 100%;
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden;
  }

  .workshop-inline-widget iframe {
    max-width: 100%;
  }

  .workshop-widget-popup {
    border-radius: 0px;
    position: relative;
    overflow: hidden;
    height: 100dvh;
  }

  .workshop-inline-widget {
    width: 100%;
    padding: 0 0px !important;
  }
}

.workshop-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  background-color: transparent;
  outline: 0;
  border: 0;
  margin: 0;
  padding: 8px;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  appearance: none;
  text-decoration: none;
  color: #637381;
  text-align: center;
  flex: 0 0 auto;
  font-size: 1.5rem;
  border-radius: 6px !important;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  top: 8px;
  right: 8px;
}

.workshop-close-button:hover {
  background-color: rgba(40, 51, 74, 0.08);
}

.workshop-widget-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff0000;
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

.workshop-inline-widget {
  border: none;
  padding: 0 16px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.workshop-partner-inline-widget {
  border: none;
  padding: 0 16px;
  width: 100%;
  display: flex;
  justify-content: center;
  max-width: 1060px;
  transition: height 280ms cubic-bezier(0.2, 0, 0, 1);
}

.workshop-partner-inline-widget-iframe {
  max-width: 1000px;
  height: 760px;
  max-height: 760px;
  min-height: 0;
  border-radius: 8px;
  overflow: auto;
  background-color: white;
  position: relative;
  box-shadow:
    rgb(0 0 0 / 7%) 0px 0px 0px 1px,
    rgb(0 0 0 / 5%) 0px 2px 4px 0px,
    rgb(0 0 0 / 5%) 0px 12px 24px 0px;
  transition: height 280ms cubic-bezier(0.2, 0, 0, 1);
}

.workshop-partner-badge-widget {
  border: none;
  padding: 0 16px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.workshop-partner-badge-widget span {
  font-size: 12px;
}

.workshop-partner-widget-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(31, 31, 31, 0.4);
  z-index: 2147483647;
  display: flex;
  justify-content: center;
  align-items: center;
}

.workshop-partner-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  background-color: transparent;
  outline: 0;
  border: 0;
  margin: 0;
  padding: 8px;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  appearance: none;
  text-decoration: none;
  color: #637381;
  text-align: center;
  flex: 0 0 auto;
  font-size: 1.5rem;
  border-radius: 6px !important;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  position: absolute;
  top: 8px;
  right: 8px;
}

.workshop-partner-close-button:hover {
  background-color: rgba(40, 51, 74, 0.08);
}

.workshop-partner-widget-popup {
  position: relative;
}

.workshop-partner-widget-popup iframe {
  width: calc(100vw - 32px);
  max-width: 1000px;
  height: min(calc(100dvh - 32px), 760px);
  max-height: calc(100dvh - 32px);
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
  position: relative;
  box-shadow:
    rgb(0 0 0 / 7%) 0px 0px 0px 1px,
    rgb(0 0 0 / 5%) 0px 2px 4px 0px,
    rgb(0 0 0 / 5%) 0px 12px 24px 0px;
}

@media (max-width: 735px) {
  .workshop-partner-widget-popup iframe {
    max-width: 100%;
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden;
  }

  .workshop-partner-inline-widget {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 0 0px !important;
  }

  .workshop-partner-badge-widget {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 0 0px !important;
  }

  .workshop-partner-widget-overlay {
    position: fixed;
    top: 0;
    left: 0;
  }

  .workshop-partner-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .workshop-partner-widget-popup {
    border-radius: 0px;
    position: relative;
    overflow: hidden;
    height: 100dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workshop-inline-widget,
  .workshop-inline-widget iframe {
    transition: none;
  }
}
