.ttfps-anchor {
  position: relative;
}

.ttfps-results-anchor {
	position: relative !important;
	overflow: visible !important;
	filter: none !important;
	box-shadow: none !important;
}

.ttfps-results-anchor.ttfps-form-open {
	z-index: 99999;
}

.ttfps-mobile-results-host {
	display: none;
}

.ttfps-search-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 48px !important;
  align-items: stretch;
  gap: 0 !important;
  width: 100%;
  margin: 0;
  border-radius: 7px;
  transition: box-shadow .18s ease;
}

.ttfps-search-form.ttfps-results-anchor {
  box-shadow: 0 2px 10px rgba(15, 58, 115, .12) !important;
}

.ttfps-search-form.ttfps-results-anchor:focus-within {
  box-shadow: 0 0 0 3px rgba(255, 75, 43, .16), 0 3px 12px rgba(15, 58, 115, .14) !important;
}

.ttfps-search-form .ttfps-anchor,
.ttfps-search-form input[type="search"] {
  width: 100%;
}

.ttfps-results-anchor input[type="search"]::-webkit-search-cancel-button {
	display: none;
	-webkit-appearance: none;
}

.ttfps-results-anchor input[type="search"],
.ttfps-results-anchor input[type="search"]:hover,
.ttfps-results-anchor input[type="search"]:focus {
	-webkit-appearance: none !important;
	appearance: none !important;
	outline: 0 !important;
	filter: none !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
	background-image: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.ttfps-results-anchor .flex-row,
.ttfps-results-anchor .flex-col {
	filter: none !important;
	box-shadow: none !important;
}

.ttfps-search-form input[type="search"] {
  grid-column: 1;
  min-width: 0 !important;
  max-width: none !important;
  height: 46px;
  margin: 0;
  padding: 0 82px 0 16px;
  border: 1px solid #cbdcf2;
  border-right: 0;
  border-radius: 7px 0 0 7px;
  background: #fff;
  box-shadow: none;
  color: #17243a;
  font-size: 15px;
  line-height: 46px;
  transition: border-color .18s ease, background-color .18s ease;
}

.ttfps-search-form input[type="search"]::placeholder {
  color: #71829a;
  opacity: 1;
}

.ttfps-search-form button[type="submit"] {
  position: relative;
  grid-column: 2;
  display: grid !important;
  flex: 0 0 48px;
  width: 48px;
  min-height: 46px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 1px solid var(--ttfps-search-button, #FF4B2B);
  border-radius: 0 7px 7px 0;
  background: var(--ttfps-search-button, #FF4B2B);
  overflow: hidden;
  box-shadow: none;
  color: #fff;
  line-height: 1;
  transition: filter .18s ease, box-shadow .18s ease;
}

.ttfps-search-form button[type="submit"]:hover,
.ttfps-search-form button[type="submit"]:focus {
  background: var(--ttfps-search-button, #FF4B2B);
  filter: brightness(.92);
}

.ttfps-search-form button[type="submit"]:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .72);
  outline-offset: -5px;
}

.ttfps-search-form button[type="submit"] svg,
.ttfps-search-form button[type="submit"] .ttfps-search-icon {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  color: #fff;
  transition: opacity .18s ease, transform .18s ease;
}

.ttfps-search-form button[type="submit"]::before,
.ttfps-search-form button[type="submit"]::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.ttfps-search-form button[type="submit"]::before {
  transform: translate(-50%, -50%) rotate(45deg) scale(.7);
}

.ttfps-search-form button[type="submit"]::after {
  transform: translate(-50%, -50%) rotate(-45deg) scale(.7);
}

.ttfps-search-form.ttfps-form-open button[type="submit"] svg {
  opacity: 0;
  transform: rotate(45deg) scale(.72);
}

.ttfps-search-form.ttfps-form-open button[type="submit"]::before {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.ttfps-search-form.ttfps-form-open button[type="submit"]::after {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-45deg) scale(1);
}

.ttfps-clear {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.ttfps-clear {
  position: absolute;
	z-index: 3;
  top: 50%;
  right: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  min-height: 0;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  box-shadow: none;
}

.ttfps-anchor--form .ttfps-clear {
  right: 56px;
}

.ttfps-form-open .ttfps-clear {
  opacity: 1;
  pointer-events: auto;
}

.ttfps-clear:hover {
  background: #eaf3ff;
  color: var(--ttfps-primary, #FF4B2B);
}

.ttfps-clear svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.ttfps-dropdown {
	position: absolute;
	grid-column: 1 / -1;
	z-index: 1000;
	top: calc(100% + 6px);
	right: 0;
	left: 0;
	box-sizing: border-box;
  display: none;
	width: 100%;
	min-width: 0;
	max-height: min(58vh, 480px);
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #94a3b8 transparent;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
  text-align: left;
}

.ttfps-dropdown.is-open {
  display: block;
}

.ttfps-dropdown::-webkit-scrollbar {
	width: 7px;
}

.ttfps-dropdown::-webkit-scrollbar-track {
	margin: 6px 0;
	background: transparent;
}

.ttfps-dropdown::-webkit-scrollbar-thumb {
	border: 2px solid transparent;
	border-radius: 999px;
	background: #94a3b8;
	background-clip: padding-box;
}

.ttfps-dropdown::-webkit-scrollbar-button,
.ttfps-dropdown::-webkit-scrollbar-button:single-button {
	display: none;
	width: 0;
	height: 0;
}

.ttfps-result {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf0f3;
  color: #0f172a;
  text-decoration: none;
  transition: background-color .15s ease;
}

.ttfps-result:hover,
.ttfps-result.is-active {
  background: #f8fafc;
  color: #0f172a;
}

.ttfps-result__image {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid #edf0f3;
  border-radius: 6px;
  background: #fff;
}

.ttfps-result__content,
.ttfps-result__side {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.ttfps-result__title {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ttfps-result__title mark {
  padding: 0;
  background: transparent;
  color: var(--ttfps-primary, #FF4B2B);
}

.ttfps-result__meta {
  overflow: hidden;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ttfps-result__side {
  align-items: flex-end;
  gap: 5px;
  padding-left: 8px;
  white-space: nowrap;
}

.ttfps-result__price {
  color: #D92D20;
  font-size: 14px;
  font-weight: 700;
}

.ttfps-result__price del {
  margin-right: 4px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 400;
}

.ttfps-result__price ins {
  color: inherit;
  text-decoration: none;
}

.ttfps-result__stock {
  color: #059669;
  font-size: 11px;
}

.ttfps-result__stock.is-out-of-stock {
  color: #FF4B2B;
}

.ttfps-view-all {
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: block;
  padding: 13px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  color: var(--ttfps-primary, #FF4B2B);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.ttfps-message {
  padding: 30px 18px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

.ttfps-message.is-error {
  color: #b91c1c;
}

.ttfps-empty-state {
  padding: 18px 16px;
  border-bottom: 1px solid #edf0f3;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

.ttfps-suggestions-heading {
  padding: 11px 14px 7px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ttfps-result--suggested:last-child {
  border-bottom: 0;
}

.ttfps-skeleton {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf0f3;
}

.ttfps-skeleton > span:first-child,
.ttfps-skeleton i {
  display: block;
  border-radius: 5px;
  background: linear-gradient(90deg, #edf0f3 25%, #f8fafc 50%, #edf0f3 75%);
  background-size: 200% 100%;
  animation: ttfps-shimmer 1.2s infinite;
}

.ttfps-skeleton > span:first-child {
  width: 56px;
  height: 56px;
}

.ttfps-skeleton > span:last-child {
  padding-top: 8px;
}

.ttfps-skeleton i {
  width: 85%;
  height: 12px;
  margin-bottom: 10px;
}

.ttfps-skeleton i:last-child {
  width: 52%;
  height: 9px;
}

@keyframes ttfps-shimmer {
  to { background-position: -200% 0; }
}

@media (max-width: 549px) {
	.ttfps-search-form {
		box-sizing: border-box;
		min-height: 56px;
		padding: 0 0 10px;
		border-radius: 0;
		isolation: isolate;
	}

	.ttfps-search-form::before {
		position: absolute;
		z-index: -1;
		top: 0;
		left: 50%;
		width: 100vw;
		height: 56px;
		transform: translateX(-50%);
		background: #FF4B2B;
		content: "";
	}

	.ttfps-search-form.ttfps-results-anchor,
	.ttfps-search-form.ttfps-results-anchor:focus-within {
		box-shadow: none !important;
	}

	.ttfps-mobile-results-host.is-open {
		display: block;
		position: fixed;
		z-index: 1000000;
		right: 0;
		left: 0;
		box-sizing: border-box;
		width: 100%;
		padding-top: 0;
		background: transparent;
	}

	.ttfps-mobile-results-host .ttfps-mobile-sheet-form {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) 48px !important;
		width: 100% !important;
		min-height: 56px;
		margin: 0 !important;
		gap: 0 !important;
	}

	.ttfps-search-form.ttfps-anchor--form .ttfps-clear,
	.ttfps-mobile-results-host .ttfps-mobile-sheet-form.ttfps-anchor--form .ttfps-clear {
		top: 23px;
		right: 58px;
	}

	.ttfps-mobile-results-host .ttfps-dropdown {
		position: static;
		grid-column: 1 / -1;
		top: auto;
		right: auto;
		left: auto;
		width: 100%;
		min-width: 0;
		margin: var(--ttfps-mobile-popup-offset, 8px) 0 0;
		border-color: #d8e3f1;
		border-radius: 12px;
		box-shadow: 0 14px 32px rgba(15, 58, 115, .18);
	}

	.ttfps-search-form input[type="search"] {
		width: 100% !important;
		height: 46px;
		min-height: 46px;
		padding: 0 82px 0 16px;
		border: 2px solid #fff;
		border-right: 0;
		border-radius: 23px 0 0 23px;
		background: #fff;
		font-size: 16px;
		line-height: 46px;
	}

	.ttfps-results-anchor {
		min-height: 56px;
	}

	.ttfps-search-form input[type="search"]:focus {
		border-color: #fff;
		box-shadow: none !important;
	}

	.ttfps-search-form button[type="submit"] {
		float: none !important;
		flex-basis: 48px;
		width: 48px;
		min-width: 48px;
		height: 46px;
		min-height: 46px;
		border: 2px solid #fff;
		border-left: 0;
		border-radius: 0 23px 23px 0;
		background: var(--ttfps-search-button, #FF4B2B);
	}

	.ttfps-clear {
		width: 32px;
		height: 32px;
	}

  .ttfps-dropdown {
    min-width: 0;
		width: 100%;
		max-height: min(62dvh, 520px);
		border-radius: 12px;
		box-shadow: 0 14px 32px rgba(15, 58, 115, .18);
  }

  .ttfps-result {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
		min-height: 76px;
    padding: 10px;
  }

  .ttfps-result__image {
    width: 54px;
    height: 54px;
  }

	.ttfps-result__title {
		font-size: 14px;
		line-height: 1.4;
	}

	.ttfps-view-all {
		padding: 14px 16px;
		background: #f5f9ff;
		font-size: 14px;
	}

  .ttfps-result__side {
    grid-column: 2;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
    margin-top: -5px;
    padding: 0;
		white-space: normal;
  }

	.ttfps-result__title {
		font-size: 13.5px;
	}

	.ttfps-result__meta {
		font-size: 11px;
	}

	.ttfps-result__price {
		font-size: 13px;
	}

	.ttfps-empty-state {
		padding: 15px 12px;
		font-size: 13px;
	}

	.ttfps-suggestions-heading {
		padding: 9px 10px 6px;
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
  .ttfps-skeleton i,
  .ttfps-skeleton > span:first-child {
    animation: none;
  }
}

.ttfps-search-form .ttfps-clear,
.ttfps-mobile-results-host .ttfps-clear {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ttfps-search-form button[type="submit"],
.ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 48px !important;
  width: 48px !important;
  min-width: 48px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  line-height: 1 !important;
  color: #fff !important;
}

.ttfps-search-form button[type="submit"] svg,
.ttfps-search-form.ttfps-form-open button[type="submit"] svg,
.ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] svg,
.ttfps-mobile-results-host .ttfps-mobile-sheet-form.ttfps-form-open button[type="submit"] svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  opacity: 1 !important;
  transform: none !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.ttfps-search-form button[type="submit"]::before,
.ttfps-search-form button[type="submit"]::after,
.ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"]::before,
.ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"]::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
}

@media (max-width: 549px) {
  .ttfps-search-form,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form {
    grid-template-columns: minmax(0, 1fr) 44px !important;
  }

  .ttfps-search-form input[type="search"],
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form input[type="search"],
  .ttfps-search-form input[type="search"]:hover,
  .ttfps-search-form input[type="search"]:focus {
    padding-right: 10px !important;
    border-radius: 999px 0 0 999px !important;
  }

  .ttfps-search-form button[type="submit"],
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] {
    grid-column: 2 !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 999px 999px 0 !important;
    box-shadow: none !important;
  }

  .ttfps-search-form button[type="submit"] svg,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] svg {
    width: 18px !important;
    height: 18px !important;
  }
}
/* v1.0.28 - Mobile submit is an oval pill fixed to the form's right edge. */
@media (max-width: 549px) {
  .ttfps-search-form,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form {
    position: relative !important;
    display: block !important;
    grid-template-columns: none !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .ttfps-search-form input[type="search"],
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form input[type="search"],
  .ttfps-search-form input[type="search"]:hover,
  .ttfps-search-form input[type="search"]:focus {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 56px 0 39px !important;
    border-radius: 999px !important;
  }

  .ttfps-search-form button[type="submit"],
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] {
    position: absolute !important;
    top: 50% !important;
    right: -1px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #FF6A3D 0%, var(--ttfps-search-button, #FF4B2B) 100%) !important;
    box-shadow: 0 2px 7px rgba(255, 75, 43, .24) !important;
    color: #fff !important;
  }

  .ttfps-search-form button[type="submit"] svg,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* v1.0.27 final override - mobile button must sit on the outer right edge. */
@media (max-width: 549px) {
  .ttfps-search-form,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form {
    grid-template-columns: minmax(0, 1fr) 44px !important;
  }

  .ttfps-search-form input[type="search"],
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form input[type="search"],
  .ttfps-search-form input[type="search"]:hover,
  .ttfps-search-form input[type="search"]:focus {
    padding-right: 10px !important;
    border-radius: 999px 0 0 999px !important;
  }

  .ttfps-search-form button[type="submit"],
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] {
    grid-column: 2 !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 999px 999px 0 !important;
    box-shadow: none !important;
  }

  .ttfps-search-form button[type="submit"] svg,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* v1.0.27 - Align the mobile search/close button flush with the right edge. */
@media (max-width: 549px) {
  .ttfps-search-form,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form {
    grid-template-columns: minmax(0, 1fr) 44px !important;
  }

  .ttfps-search-form input[type="search"],
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form input[type="search"],
  .ttfps-search-form input[type="search"]:hover,
  .ttfps-search-form input[type="search"]:focus {
    padding-right: 10px !important;
    border-radius: 999px 0 0 999px !important;
  }

  .ttfps-search-form button[type="submit"],
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] {
    grid-column: 2 !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 999px 999px 0 !important;
    box-shadow: none !important;
  }

  .ttfps-search-form button[type="submit"] svg,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* v1.0.26 - Compact "view all" footer and keep it clear of the scrollbar. */
.ttfps-search-form .ttfps-dropdown,
.ttfps-mobile-results-host .ttfps-dropdown {
  scrollbar-gutter: stable !important;
}

.ttfps-search-form .ttfps-view-all,
.ttfps-mobile-results-host .ttfps-view-all {
  position: sticky !important;
  z-index: 3 !important;
  bottom: 0 !important;
  left: auto !important;
  right: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-height: 32px !important;
  margin: 6px 10px 8px !important;
  padding: 7px 12px !important;
  border: 1px solid #FFE1DA !important;
  border-radius: 8px !important;
  background: #FFF7F5 !important;
  box-shadow: 0 -6px 12px rgba(255, 255, 255, .88) !important;
  color: #FF4B2B !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.ttfps-search-form .ttfps-view-all:hover,
.ttfps-mobile-results-host .ttfps-view-all:hover,
.ttfps-search-form .ttfps-view-all:focus,
.ttfps-mobile-results-host .ttfps-view-all:focus {
  border-color: #FFB8A8 !important;
  background: #FFF0EC !important;
  color: #D92D20 !important;
  text-decoration: none !important;
}

@media (max-width: 549px) {
  .ttfps-search-form .ttfps-view-all,
  .ttfps-mobile-results-host .ttfps-view-all {
    min-height: 34px !important;
    margin: 6px 8px 8px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
  }
}

/* v1.0.17 - Lazada inspired mobile search, anchored under the real Flatsome form. */
@media (max-width: 549px) {
  #wide-nav.header-bottom {
    display: block !important;
    min-height: 58px !important;
    padding: 8px 0 !important;
    background: #fff !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .08) !important;
  }

  #wide-nav.header-bottom > .flex-row.container,
  #wide-nav.header-bottom .flex-row.container,
  #wide-nav.header-bottom .show-for-medium.flex-grow,
  #wide-nav.header-bottom .mobile-nav,
  #wide-nav.header-bottom .html_top_right_text {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  #wide-nav.header-bottom .mobile-nav > li,
  #wide-nav.header-bottom li.html_top_right_text {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 12px !important;
    line-height: normal !important;
  }

  .ttfps-search-form,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 76px !important;
    align-items: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 430px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: visible !important;
    isolation: isolate !important;
    border: 1.5px solid var(--ttfps-search-button, #FF4B2B) !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05) !important;
  }

  .ttfps-search-form::before,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form::before {
    position: absolute !important;
    z-index: 2 !important;
    top: 50% !important;
    left: 13px !important;
    width: 18px !important;
    height: 18px !important;
    transform: translateY(-50%) !important;
    background-color: #94a3b8 !important;
    background-image: none !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' d='M11 18a7 7 0 1 1 0-14 7 7 0 0 1 0 14Zm5-2 4 4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' d='M11 18a7 7 0 1 1 0-14 7 7 0 0 1 0 14Zm5-2 4 4'/%3E%3C/svg%3E") center / contain no-repeat;
    content: "" !important;
  }

  .ttfps-search-form.ttfps-results-anchor,
  .ttfps-search-form.ttfps-results-anchor:focus-within,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form:focus-within {
    border-color: var(--ttfps-search-button, #FF4B2B) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .09), 0 2px 8px rgba(15, 23, 42, .08) !important;
  }

  .ttfps-search-form input[type="search"],
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form input[type="search"],
  .ttfps-search-form input[type="search"]:hover,
  .ttfps-search-form input[type="search"]:focus {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 39px !important;
    min-height: 39px !important;
    margin: 0 !important;
    padding: 0 10px 0 39px !important;
    border: 0 !important;
    border-radius: 999px 0 0 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #1f2937 !important;
    font-size: 16px !important;
    line-height: 39px !important;
  }

  .ttfps-search-form input[type="search"]::placeholder {
    color: #7b8798 !important;
    opacity: 1 !important;
  }

  .ttfps-search-form button[type="submit"],
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] {
    grid-column: 2 !important;
    display: grid !important;
    width: auto !important;
    min-width: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 3px 3px 3px 0 !important;
    padding: 0 13px !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #ff6a3d 0%, var(--ttfps-search-button, #FF4B2B) 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, .22) !important;
    font-family: Roboto, Arial, sans-serif !important;
    overflow: hidden !important;
  }

  .ttfps-search-form button[type="submit"] svg,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .ttfps-search-form.ttfps-form-open button[type="submit"] svg,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form.ttfps-form-open button[type="submit"] svg {
    opacity: 0 !important;
    transform: rotate(45deg) scale(.72) !important;
  }

  .ttfps-search-form:not(.ttfps-form-open) button[type="submit"]::before,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form:not(.ttfps-form-open) button[type="submit"]::before {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
  }

  .ttfps-search-form:not(.ttfps-form-open) button[type="submit"]::after,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form:not(.ttfps-form-open) button[type="submit"]::after {
    display: none !important;
    opacity: 0 !important;
  }

  .ttfps-search-form.ttfps-form-open button[type="submit"]::before,
  .ttfps-search-form.ttfps-form-open button[type="submit"]::after,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form.ttfps-form-open button[type="submit"]::before,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form.ttfps-form-open button[type="submit"]::after {
    display: block !important;
    content: "" !important;
    opacity: 1 !important;
  }

  .ttfps-search-form.ttfps-form-open button[type="submit"]::before,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form.ttfps-form-open button[type="submit"]::before {
    transform: translate(-50%, -50%) rotate(45deg) scale(1) !important;
  }

  .ttfps-search-form.ttfps-form-open button[type="submit"]::after,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form.ttfps-form-open button[type="submit"]::after {
    transform: translate(-50%, -50%) rotate(-45deg) scale(1) !important;
  }

  .ttfps-mobile-results-host.is-open {
    display: block !important;
    position: fixed !important;
    z-index: 1000000 !important;
    right: 0 !important;
    left: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    padding-top: 0 !important;
    background: transparent !important;
  }

  .ttfps-mobile-results-host .ttfps-mobile-sheet-form {
    margin: 0 auto !important;
  }

  .ttfps-mobile-results-host .ttfps-dropdown,
  .ttfps-search-form .ttfps-dropdown {
    position: static !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 430px !important;
    margin: var(--ttfps-mobile-popup-offset, 8px) auto 0 !important;
    overflow-y: auto !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .18) !important;
  }

  .ttfps-result {
    grid-template-columns: 56px minmax(0, 1fr) !important;
    gap: 10px !important;
    min-height: 78px !important;
    padding: 10px 11px !important;
    background: #fff !important;
  }

  .ttfps-result__image {
    width: 56px !important;
    height: 56px !important;
    border-radius: 9px !important;
  }

  .ttfps-result__side {
    grid-column: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: -4px !important;
    padding: 0 !important;
  }

  .ttfps-result__price {
    color: #D92D20 !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
  }

  .ttfps-view-all {
    color: var(--ttfps-search-button, #FF4B2B) !important;
    background: #fff7f7 !important;
    border-top-color: #ffe0e0 !important;
  }

  .ttfps-clear,
  .ttfps-search-form.ttfps-anchor--form .ttfps-clear,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form.ttfps-anchor--form .ttfps-clear {
    top: 21px !important;
    right: 54px !important;
  }
}


/* v1.0.17 - Mobile dropdown is anchored to the real form, never moved to body. */
@media (max-width: 549px) {
  #header,
  #header .header-wrapper,
  #header .header-main,
  #header .header-inner,
  #wide-nav.header-bottom,
  #wide-nav.header-bottom > .flex-row.container,
  #wide-nav.header-bottom .show-for-medium.flex-grow,
  #wide-nav.header-bottom .mobile-nav,
  #wide-nav.header-bottom .html_top_right_text,
  #wide-nav.header-bottom li.html_top_right_text {
    overflow: visible !important;
  }

  #wide-nav.header-bottom {
    position: relative !important;
    z-index: 99990 !important;
    background: #fff !important;
  }

  #wide-nav.header-bottom li.html_top_right_text {
    position: relative !important;
    z-index: 99991 !important;
  }

  #wide-nav.header-bottom .ttfps-search-form {
    position: relative !important;
    z-index: 99992 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 76px !important;
    grid-template-rows: 42px auto !important;
    align-items: center !important;
    height: 42px !important;
    min-height: 42px !important;
    overflow: visible !important;
    isolation: auto !important;
  }

  #wide-nav.header-bottom .ttfps-search-form .ttfps-dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 99993 !important;
    display: none;
    width: 100% !important;
    max-width: 430px !important;
    margin: 0 auto !important;
    max-height: min(62dvh, 520px) !important;
    overflow-y: auto !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .18) !important;
  }

  #wide-nav.header-bottom .ttfps-search-form .ttfps-dropdown.is-open {
    display: block !important;
  }

  .ttfps-mobile-results-host,
  .ttfps-mobile-results-host.is-open {
    display: none !important;
  }

  #wide-nav.header-bottom .ttfps-search-form.ttfps-form-open button[type="submit"]::before,
  #wide-nav.header-bottom .ttfps-search-form.ttfps-form-open button[type="submit"]::after {
    display: block !important;
    content: "" !important;
    opacity: 1 !important;
  }
}


/* v1.0.18 - Desktop Flatsome header alignment fix.
   Child theme currently forces `.header-inner .nav-left { justify-content: left !important; }`,
   which makes the search form hug the logo. These selectors only target the desktop search slot. */
@media (min-width: 850px) {
  .header-main .header-inner .hide-for-medium.flex-left.flex-grow {
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .header-main .header-inner .hide-for-medium.flex-left.flex-grow > .header-nav.nav-left {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .header-main .header-inner .hide-for-medium.flex-left.flex-grow > .header-nav.nav-left > li.html_top_right_text,
  .header-main .header-inner .hide-for-medium.flex-left.flex-grow > .header-nav.nav-left > li.html.custom.html_top_right_text {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 640px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
    line-height: normal !important;
  }

  .header-main .header-inner .hide-for-medium.flex-left.flex-grow > .header-nav.nav-left > li.html_top_right_text > .ttfps-search-form {
    width: min(100%, 560px) !important;
    max-width: 560px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }
}

/* v1.0.19 - Red Orange UI Sync for white + red-orange theme. */
.ttfps-search-form {
  border-color: #F3D2CB !important;
}

.ttfps-search-form.ttfps-results-anchor {
  box-shadow: 0 6px 18px rgba(255, 75, 43, .10) !important;
}

.ttfps-search-form.ttfps-results-anchor:focus-within {
  box-shadow: 0 0 0 4px rgba(255, 75, 43, .16), 0 8px 22px rgba(23, 36, 58, .10) !important;
}

.ttfps-search-form input[type="search"] {
  border-color: #F3D2CB !important;
  color: #17243A !important;
}

.ttfps-search-form input[type="search"]::placeholder {
  color: #8A94A6 !important;
}

.ttfps-search-form button[type="submit"] {
  background: var(--ttfps-search-button, #FF4B2B) !important;
  border-color: var(--ttfps-search-button, #FF4B2B) !important;
}

.ttfps-search-form button[type="submit"]:hover,
.ttfps-search-form button[type="submit"]:focus {
  background: #D92D20 !important;
  border-color: #D92D20 !important;
  filter: none !important;
}

.ttfps-clear:hover {
  background: #FFF3F0 !important;
  color: #FF4B2B !important;
}

.ttfps-dropdown {
  border-color: #F3D2CB !important;
  box-shadow: 0 14px 34px rgba(23, 36, 58, .14) !important;
  scrollbar-color: #F3A294 transparent !important;
}

.ttfps-dropdown::-webkit-scrollbar-thumb {
  background: #F3A294 !important;
  background-clip: padding-box !important;
}

.ttfps-dropdown::-webkit-scrollbar-thumb:hover {
  background: #FF4B2B !important;
  background-clip: padding-box !important;
}

.ttfps-result:hover,
.ttfps-result.is-active {
  background: #FFF3F0 !important;
}

.ttfps-result__title {
  color: #17243A !important;
}

.ttfps-result__title mark,
.ttfps-result mark,
.ttfps-highlight {
  color: #FF4B2B !important;
  background: transparent !important;
  font-weight: 700 !important;
}

.ttfps-result__meta,
.ttfps-message,
.ttfps-empty-state {
  color: #64748B !important;
}

.ttfps-result__price,
.ttfps-result__price ins,
.ttfps-result__price .amount {
  color: #D92D20 !important;
  font-weight: 800 !important;
}

.ttfps-result__price del {
  color: #94A3B8 !important;
  font-weight: 400 !important;
}

.ttfps-result__stock,
.ttfps-result__stock.is-in-stock {
  color: #16A34A !important;
}

.ttfps-result__stock.is-out-of-stock,
.ttfps-message.is-error {
  color: #D92D20 !important;
}

.ttfps-view-all {
  color: #FF4B2B !important;
  background: #FFF7F5 !important;
  border-top-color: #F3D2CB !important;
  font-weight: 700 !important;
}

.ttfps-view-all:hover {
  color: #D92D20 !important;
  background: #FFF3F0 !important;
}

.ttfps-suggestions-heading {
  background: #FFF7F5 !important;
  color: #D92D20 !important;
}

.ttfps-skeleton > span:first-child,
.ttfps-skeleton i {
  background: linear-gradient(90deg, #F4E4E0 25%, #FFF7F5 50%, #F4E4E0 75%) !important;
  background-size: 200% 100% !important;
}

@media (max-width: 549px) {
  .ttfps-search-form,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form {
    border-color: var(--ttfps-search-button, #FF4B2B) !important;
    box-shadow: 0 1px 3px rgba(23, 36, 58, .06) !important;
  }

  .ttfps-search-form.ttfps-results-anchor:focus-within,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form:focus-within {
    border-color: var(--ttfps-search-button, #FF4B2B) !important;
    box-shadow: 0 0 0 3px rgba(255, 75, 43, .12), 0 2px 8px rgba(23, 36, 58, .08) !important;
  }

  .ttfps-search-form button[type="submit"],
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] {
    background: linear-gradient(135deg, #FF6A3D 0%, var(--ttfps-search-button, #FF4B2B) 100%) !important;
    box-shadow: 0 2px 7px rgba(255, 75, 43, .24) !important;
  }

  #wide-nav.header-bottom .ttfps-search-form .ttfps-dropdown,
  .ttfps-mobile-results-host .ttfps-dropdown,
  .ttfps-search-form .ttfps-dropdown {
    border-color: #F3D2CB !important;
    box-shadow: 0 16px 34px rgba(23, 36, 58, .16) !important;
  }

  .ttfps-result__price,
  .ttfps-result__price ins,
  .ttfps-result__price .amount {
    color: #D92D20 !important;
  }

  .ttfps-view-all {
    color: #FF4B2B !important;
    background: #FFF7F5 !important;
    border-top-color: #F3D2CB !important;
  }
}

.ttfps-search-form button[type="submit"],
.ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 48px !important;
  width: 48px !important;
  min-width: 48px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  line-height: 1 !important;
  color: #fff !important;
}

.ttfps-search-form button[type="submit"] svg,
.ttfps-search-form.ttfps-form-open button[type="submit"] svg,
.ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] svg,
.ttfps-mobile-results-host .ttfps-mobile-sheet-form.ttfps-form-open button[type="submit"] svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  opacity: 1 !important;
  transform: none !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.ttfps-search-form button[type="submit"]::before,
.ttfps-search-form button[type="submit"]::after,
.ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"]::before,
.ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"]::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
}

.ttfps-search-form .ttfps-clear,
.ttfps-mobile-results-host .ttfps-clear {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 549px) {
  .ttfps-search-form,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form {
    grid-template-columns: minmax(0, 1fr) 44px !important;
  }

  .ttfps-search-form input[type="search"],
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form input[type="search"],
  .ttfps-search-form input[type="search"]:hover,
  .ttfps-search-form input[type="search"]:focus {
    padding-right: 10px !important;
    border-radius: 999px 0 0 999px !important;
  }

  .ttfps-search-form button[type="submit"],
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] {
    grid-column: 2 !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 999px 999px 0 !important;
    box-shadow: none !important;
  }

  .ttfps-search-form button[type="submit"] svg,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* v1.0.28 final override - keep mobile search/X as a flush oval pill. */
@media (max-width: 549px) {
  .ttfps-search-form,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form {
    position: relative !important;
    display: block !important;
    grid-template-columns: none !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .ttfps-search-form input[type="search"],
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form input[type="search"],
  .ttfps-search-form input[type="search"]:hover,
  .ttfps-search-form input[type="search"]:focus {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 56px 0 39px !important;
    border-radius: 999px !important;
  }

  .ttfps-search-form button[type="submit"],
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] {
    position: absolute !important;
    top: 50% !important;
    right: -1px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #FF6A3D 0%, var(--ttfps-search-button, #FF4B2B) 100%) !important;
    box-shadow: 0 2px 7px rgba(255, 75, 43, .24) !important;
    color: #fff !important;
  }

  .ttfps-search-form button[type="submit"] svg,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* v1.0.29 final override - mobile search/X button sits inside the input border. */
@media (max-width: 549px) {
  .ttfps-search-form,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form {
    height: 42px !important;
    min-height: 42px !important;
  }

  .ttfps-search-form input[type="search"],
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form input[type="search"],
  .ttfps-search-form input[type="search"]:hover,
  .ttfps-search-form input[type="search"]:focus {
    padding-right: 50px !important;
  }

  .ttfps-search-form button[type="submit"],
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] {
    right: 4px !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 7px rgba(255, 75, 43, .22) !important;
  }

  .ttfps-search-form button[type="submit"] svg,
  .ttfps-mobile-results-host .ttfps-mobile-sheet-form button[type="submit"] svg {
    width: 17px !important;
    height: 17px !important;
  }
}
