/*
 * Global additions on top of the legacy theme. Keep this file small: the
 * original look lives in ./legacy/*.css; React-specific glue goes here.
 */
html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
}

/* Bootstrap modals are driven by React state instead of jQuery. */
.modal.show {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
}

.mmenu.show {
  top: 0 !important;
  display: block !important;
  position: fixed !important;
  z-index: 1060;
}

body.modal-open {
  overflow: hidden;
}

.dropdowns {
  position: relative;
}

/* Bootstrap carousel: simple fade between items. */
.carousel-item {
  transition: opacity 0.4s ease;
}

/* Visually hidden helper for accessible labels. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Native replacement for the jQuery bootstrap-select widget (same metrics as the original). */
select.kmainselect {
  display: block;
  width: 100%;
  height: auto;
  padding: 20px 45px 20px 20px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
  text-transform: uppercase;
  color: #000;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3E%3Cpath d='M0 0h8L4 4z' fill='%23000'/%3E%3C/svg%3E") no-repeat right 25px center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* Legacy markup used an inline `height:40px !important` (not expressible in React styles). */
#yatirimci img.tusiad-logo {
  height: 40px !important;
}

/* Short pages (e.g. /mobil-uygulama): fill the viewport so no blank area is left under the footer. */
.page-fill {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-fill > main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.page-fill > main > .shipperform2 {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
}

.page-fill > main > .shipperform2 > .container {
  width: 100%;
}
