/* INTERSHOP_FASTBUY_LAYOUT_20261109: this modal only. */
#appFastBuy #appFastBuyContainer {
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(700px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  height: auto;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#appFastBuy #appFastBuyContainer > .heading {
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 1;
  height: auto;
  min-height: 60px;
  padding: 16px 52px;
  line-height: 1.4;
}

#appFastBuy #fastBuyOpenContainer {
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 24px;
}

#appFastBuy #fastBuyOpenContainer > .column,
#appFastBuy #fastBuyOpenContainer > .column:first-child {
  box-sizing: border-box;
  display: block;
  float: none;
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  margin: 0;
  padding: 0;
}

#appFastBuy #appFastBuyContainer .title {
  margin-right: 0;
}

#appFastBuy #fastBuyForm input:not([type="checkbox"]):not([type="hidden"]),
#appFastBuy #fastBuyForm textarea,
#appFastBuy #fastBuyFormSubmit {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

#appFastBuy #fastBuyPicture,
#appFastBuy #fastBuyPicture .url {
  height: auto;
  line-height: normal;
}

#appFastBuy #fastBuyPicture .url {
  display: flex;
  align-items: center;
  justify-content: center;
}

#appFastBuy #fastBuyPicture .picture {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}

#appFastBuy #fastBuyName {
  padding: 0;
}

#appFastBuy #fastBuyName .name {
  height: auto;
  line-height: 1.4;
  overflow: visible;
}

#appFastBuy #fastBuyName .middle {
  display: inline;
  line-height: inherit;
}

#appFastBuy .fastBuyTerms {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
}

#appFastBuy #fastBuyResult {
  transform: none;
  height: auto;
  padding: 24px;
}

@media (max-width: 640px) {
  #appFastBuy #fastBuyOpenContainer {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  #appFastBuy #fastBuyOpenContainer > .column,
  #appFastBuy #fastBuyOpenContainer > .column:first-child {
    flex: none;
    width: 100%;
  }

  #appFastBuy #fastBuyPicture .picture {
    max-height: 120px;
  }
}
