/* FasilKiray 1.4.8 — responsive marketplace search + reliable OTP digit motion.
   Keep layout animation transform/opacity-only and avoid permanent GPU promotion. */

/* The search panel is constrained to the hero's content box at every viewport. */
.public-marketplace-page .hero {
  min-width: 0;
}
.public-marketplace-page .hero .search-panel {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 1120px !important;
  min-width: 0 !important;
  margin-inline: auto !important;
  transform: none !important;
  justify-self: stretch;
}
.public-marketplace-page .hero .search-panel,
.public-marketplace-page .hero .search-panel * {
  box-sizing: border-box;
}
.public-marketplace-page .hero .search-panel > *,
.public-marketplace-page .hero .search-field,
.public-marketplace-page .hero .search-field > span,
.public-marketplace-page .hero .search-field-copy {
  min-width: 0;
  max-width: 100%;
}
.public-marketplace-page .hero .search-field {
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
}
.public-marketplace-page .hero .search-field > span:last-child,
.public-marketplace-page .hero .search-field-copy {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
}
.public-marketplace-page .hero .search-field input,
.public-marketplace-page .hero .search-select-trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.public-marketplace-page .hero .search-select-trigger {
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  overflow: hidden;
  white-space: normal;
}
.public-marketplace-page .hero .search-select-trigger [data-current-label] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.public-marketplace-page .hero .search-button {
  min-width: 0;
  max-width: 100%;
  justify-self: stretch;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Two balanced filter columns at tablet/mobile widths; the primary search
   field and action always span both columns. */
@media (max-width: 900px) {
  .public-marketplace-page .hero .search-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 9px;
    padding: clamp(9px, 2.8vw, 14px);
  }
  .public-marketplace-page .hero .search-field:first-child,
  .public-marketplace-page .hero .search-button {
    grid-column: 1 / -1 !important;
  }
  .public-marketplace-page .hero .search-button {
    width: 100% !important;
    min-height: 50px;
    margin: 0;
  }
  .public-marketplace-page .hero .search-field {
    padding-inline: clamp(7px, 2.3vw, 12px);
    gap: clamp(6px, 2vw, 10px);
  }
  .public-marketplace-page .hero .search-field small {
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }
}
@media (max-width: 300px) {
  .public-marketplace-page .hero .search-panel {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .public-marketplace-page .hero .search-field:first-child,
  .public-marketplace-page .hero .search-button {
    grid-column: 1 !important;
  }
}

/* OTP cells: CSS animation is the primary path, so it also works where the
   Web Animations API is missing or restricted. Only changed cells animate. */
.admin-mfa-code-slots span.otp-digit-enter {
  animation: betfinder-otp-digit-enter 280ms cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: var(--otp-delay, 0ms);
  will-change: transform, opacity;
}
.admin-mfa-code-slots span.otp-digit-remove {
  animation: betfinder-otp-digit-remove 130ms ease-out both;
  will-change: transform, opacity;
}
@keyframes betfinder-otp-digit-enter {
  0% { opacity: .12; transform: translate3d(0, 8px, 0) scale(.78); }
  62% { opacity: 1; transform: translate3d(0, -1px, 0) scale(1.045); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes betfinder-otp-digit-remove {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: .18; transform: scale(.9); }
}
.admin-mfa-code-slots span.otp-digit-enter.filled,
.admin-mfa-code-slots span.otp-digit-remove.filled {
  transform: translate3d(0, 0, 0);
}

/* Small, consistent motion feedback; never animate layout dimensions. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn,
  .icon-btn,
  .chip,
  .search-select-trigger,
  .workspace-nav-item {
    transition-property: color, background-color, border-color, box-shadow, transform;
    transition-duration: 180ms;
    transition-timing-function: cubic-bezier(.2, .75, .25, 1);
  }
  .btn:active,
  .icon-btn:active,
  .chip:active {
    transform: translateY(1px) scale(.985);
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-mfa-code-slots span.otp-digit-enter,
  .admin-mfa-code-slots span.otp-digit-remove {
    animation: none !important;
    will-change: auto;
  }
}

/* FasilKiray 1.4.9 — hard-contained search geometry on compact phones.
   Keep the two filters as matched columns, but reserve real inner padding so
   the location control and action never touch or escape the white panel. */
@media (max-width: 900px) {
  body.public-marketplace-page .hero .search-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: clamp(9px, 2.8vw, 13px) !important;
    gap: clamp(6px, 2vw, 9px) !important;
    margin-inline: auto !important;
  }

  body.public-marketplace-page .hero .search-panel > .search-field,
  body.public-marketplace-page .hero .search-panel > .search-button {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    justify-self: stretch !important;
  }

  body.public-marketplace-page .hero .search-panel > .search-field:first-child,
  body.public-marketplace-page .hero .search-panel > .search-button {
    grid-column: 1 / -1 !important;
  }

  body.public-marketplace-page .hero .search-panel > .search-field:first-child {
    min-height: 57px;
    padding: 8px 10px !important;
  }

  body.public-marketplace-page .hero .search-panel > .search-field.search-select-field {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    min-height: 70px !important;
    padding: 8px clamp(5px, 1.7vw, 8px) !important;
    gap: clamp(4px, 1.5vw, 7px) !important;
    overflow: hidden !important;
    border: 1px solid #e4ebe5 !important;
    border-radius: 12px !important;
    background: #fff !important;
  }

  body.public-marketplace-page .hero .search-panel > .search-field.search-select-field > span:first-child {
    display: flex;
    flex: 0 0 22px !important;
    align-items: center;
    justify-content: center;
    width: 22px !important;
    max-width: 22px !important;
    min-width: 22px !important;
    overflow: hidden;
    font-size: 8px;
    line-height: 1;
    white-space: nowrap;
  }

  body.public-marketplace-page .hero .search-panel .search-field-copy {
    display: grid !important;
    grid-template-rows: minmax(2.35em, auto) 27px !important;
    align-content: center !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body.public-marketplace-page .hero .search-panel .search-field-copy > small {
    display: block;
    min-width: 0;
    min-height: 2.35em;
    margin: 0 0 2px !important;
    font-size: clamp(8px, 2.45vw, 9px) !important;
    line-height: 1.16 !important;
    letter-spacing: .015em !important;
    overflow-wrap: anywhere;
  }

  body.public-marketplace-page .hero .search-panel .search-select-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 27px !important;
    padding: 0 !important;
    gap: 3px !important;
    font-size: clamp(11px, 3.5vw, 13px) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  body.public-marketplace-page .hero .search-panel .search-select-trigger [data-current-label] {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.public-marketplace-page .hero .search-panel .search-button {
    min-height: 49px !important;
    padding-inline: 12px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }
}

/* Under 301px, stack the filters rather than compressing labels beyond use. */
@media (max-width: 300px) {
  body.public-marketplace-page .hero .search-panel {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.public-marketplace-page .hero .search-panel > .search-field.search-select-field,
  body.public-marketplace-page .hero .search-panel > .search-field:first-child,
  body.public-marketplace-page .hero .search-panel > .search-button {
    grid-column: 1 !important;
  }
}
