﻿/**
 * Filter-MPRO Stylesheet
 *
 * @package filter-mpro
 * @version 2.4.0
 * @updated 2026-01-27
 *
 * Features:
 * - Combobox filter component (Google-style autocomplete)
 * - Trigger row with search icon (mirrors typed value)
 * - Invalid state styling (red border, bold text, notification)
 * - Matching option bold highlighting
 * - WCAG 2.4.7 focus indicators
 * - Responsive filter layout
 */

/* ==========================================================================
   Accessibility Utilities
   ========================================================================== */

/**
 * Screen reader only content - WCAG 1.3.1
 * Hides visually but keeps accessible to assistive technology
 */
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/**
 * Allows element to be focusable when navigated to via keyboard
 */
.visually-hidden.focusable:active,
.visually-hidden.focusable:focus,
.sr-only.focusable:active,
.sr-only.focusable:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}

/**
 * Focus indicators - WCAG 2.4.7 (Focus Visible)
 * 2px outline with 3:1 contrast ratio minimum
 */
.drop-down__heading:focus,
.drop-down__heading:focus-visible,
.active-tags li:focus,
.active-tags li:focus-visible,
.remove-tag:focus,
.remove-tag:focus-visible,
.tag:focus,
.tag:focus-visible,
.imp-filter:focus,
.imp-filter:focus-visible,
.filter-btn:focus,
.filter-btn:focus-visible,
.close-modal:focus,
.close-modal:focus-visible,
.clear-filters:focus,
.clear-filters:focus-visible {
  outline: 2px solid #005fcc !important;
  outline-offset: 2px !important;
}

/* Ensure interactive elements are focusable */
.drop-down__heading,
.active-tags li,
.remove-tag {
  outline: none;
}

.drop-down__heading:focus:not(:focus-visible),
.active-tags li:focus:not(:focus-visible),
.remove-tag:focus:not(:focus-visible) {
  outline: none !important;
}

/* ==========================================================================
   Combobox Filter Component
   ========================================================================== */

/* Two-column layout for Plotis and Ilgis filters */
.category-sorting .filter-combobox-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.filter-combobox {
  position: relative;
  flex: 1;
  max-width: 200px;
}

.combobox-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.combobox-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: var(--theme-var-rad, 4px);
  font-size: 14px;
  min-width: 80px;
  width: 100%;
  max-width: 120px;
}

.combobox-input:focus {
  outline: 2px solid #005fcc;
  outline-offset: 1px;
  border-color: #005fcc;
}

/* Invalid input state */
.filter-combobox.has-invalid-value .combobox-input {
  border-color: #dc2626;
  color: #dc2626;
  font-weight: 700;
}

.filter-combobox.has-invalid-value .combobox-input:focus {
  outline-color: #dc2626;
  border-color: #dc2626;
}

/* Invalid notification message */
.filter-combobox label {
  position: relative;
}

.filter-combobox .invalid-message {
  display: none;
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
}

.filter-combobox.has-invalid-value .invalid-message {
  display: block;
}

.combobox-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.combobox-toggle:hover {
  color: #333;
}

.combobox-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin: 0;
  padding: 8px 0;
  z-index: 1000;
  display: none;
}

.combobox-wrapper.open .combobox-dropdown {
  display: block;
}

/* Trigger row - first suggestion below input */
.combobox-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  min-height: 40px;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
  color: #1a1a1a;
  transition: background-color 0.1s ease;
  border: none;
  width: 100%;
  box-sizing: border-box;
}

.combobox-trigger:hover {
  background: #f2f2f2;
}

/* Invalid state - typed value doesn't match any available attribute */
.combobox-trigger.invalid {
  color: #dc2626;
}

.combobox-trigger.invalid .trigger-icon {
  color: #dc2626;
}

/* Kreiptis link - shown when value is out of range */
.trigger-kreiptis {
  display: none;
  color: #dc2626;
  font-weight: 600;
  font-size: 13px;
  text-decoration: underline;
  margin-left: auto;
  white-space: nowrap;
}

.trigger-kreiptis:hover {
  color: #b91c1c;
}

.combobox-trigger .trigger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #606060;
}

.combobox-trigger .trigger-text {
  flex: 1;
  text-align: left;
}

.combobox-options {
  list-style: none;
  margin: 0;
  padding: 0;
}

.combobox-option {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  min-height: 40px;
  cursor: pointer;
  transition: background-color 0.1s ease;
  width: 100%;
  box-sizing: border-box;
  color: #1a1a1a;
  background: #fff;
}

/* Only mouse hover changes background - not JS highlight */
.combobox-option:hover {
  background: #f2f2f2;
}

.combobox-option.hidden {
  display: none;
}

/* Matching option - when typed value matches this option */
.combobox-option.matching {
  font-weight: 700;
}

/* ==========================================================================
   Main Styles
   ========================================================================== */

.posts_sorting {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.posts_sorting p {
  margin-bottom: 0;
  font-size: 1.1rem;
}
.open-filter,
.open-products-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}
.open-filter svg,
.open-products-filter svg {
  width: 22px;
  height: 22px;
}

@media screen and (min-width: 550px) {
  .open-filter,
  .open-products-filter {
    width: auto;
  }
}

.active-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem !important;
  padding: 0;
}

.active-tags li {
  cursor: pointer;
  display: block;
  padding: 5px 15px;
  margin: 0 6px 6px 0;
  font-size: 11px !important;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  -webkit-border-radius: var(--theme-var-rad);
  -ms-border-radius: var(--theme-var-rad);
  border-radius: var(--theme-var-rad);
  color: var(--theme-color-accent_text);
  background-color: var(--theme-color-accent_hover);
}
.active-tags li:hover {
  background-color: var(--theme-color-accent_hover);
}
.active-tags li .remove-tag {
  display: inline-block;
  width: 18px;
  line-height: 18px;
  text-align: center;
  color: black;
  margin-left: 0.5rem;
  border-radius: 20px;
  background-color: #fff;
}

.active-tags li.remove-all {
  background-color: var(--theme-color-navigate_bg);
  color: var(--theme-color-text_dark);
  cursor: pointer;
}

/* Filter window */

.filters {
  display: none;
}

.show-modal {
  cursor: pointer;
}

.filter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  position: relative;
  z-index: 20;
}

.filter-heading h2 {
  margin: 0;
}

.close-modal {
  font-size: 2.5rem;
  color: #333;
  cursor: pointer;
  border: none;
  background: none !important;
  color: var(--theme-color-accent_link) !important;
}
.close-modal:hover {
  color: var(--theme-color-accent_link) !important;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.hidden {
  display: none;
}

.modal {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 100%;
  max-width: 700px;
}

.modal-inner {
  position: relative;
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  margin: 1rem;
  overflow: hidden;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 9998;
}

.posts-filtering {
  overflow-y: scroll;
  max-height: 62vh;
  scrollbar-width: none;
  min-height: 50px;
}

.drop-down {
  border-top: 1px solid var(--theme-color-bd_color);
  padding: 1rem 0;
}
.drop-down label {
  cursor: pointer;
}

.drop-down ul {
  padding-top: 1rem;
  list-style: none;
  padding: 1rem 0 0 0;
  margin: 0;
  display: none;
}

.drop-down ul li {
  padding: 0.3rem 0;
  position: relative;
}

.drop-down ul .has-posts {
  display: inline-block;
  margin-left: 0.5rem;
}

.drop-down ul .sub-menu {
  display: none;
  padding-left: 1rem;
  padding-top: 0;
}

.drop-down__heading {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.drop-down__heading::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 0.2em solid black;
  border-top: 0.2em solid black;
  transform: rotate(135deg);
  margin-right: 0.6rem;
}

.drop-down ul .has_childrens {
  position: relative;
  cursor: pointer;
}
.drop-down ul .has_childrens .box-heading {
  color: black;
  position: relative;
  z-index: 10;
}

.drop-down ul .has_childrens::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 0;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 0.1em solid black;
  border-top: 0.1em solid black;
  transform: rotate(135deg);
  margin-right: 0.6rem;
}

.drop-down__heading h4 {
  margin: 0;
  font-size: 1.2rem;
}
.btn-wrapper {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-wrapper button {
  flex-basis: 0;
  flex-grow: 1;
  text-align: center;
  transition: all 500ms;
}

.clear-filters {
  background-color: #fff;
  border: 1px solid #0d4bc1 !important;
  color: black;
}
.clear-filters:hover,
.filter-btn:hover {
  background-color: #083fa9;
  border-color: #083fa9 !important;
  color: #fff;
}

.button-wrapper {
  margin-top: 5rem;
  display: flex;
  justify-content: center;
}

@media screen and (min-width: 450px) {
  .btn-wrapper {
    flex-direction: row;
  }
}

.spinner-wrapper {
  position: absolute;
  background: rgb(255, 255, 255, 0.7);
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.loader {
  width: 48px;
  height: 48px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  position: relative;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
.loader::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid;
  border-color: #0d4bc1 transparent;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.load-more,
.get-more,
.get-more-products {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.load-more.loading::before,
.get-more.loading::before,
.get-more-products.loading::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 3px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.post_footer {
  display: none !important;
}

.post_content .post_meta {
  display: flex;
}

/* Contact form 7  styles */

@media screen and (min-width: 500px) {
  .column-style {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .column-style p {
    margin-top: 0 !important;
  }
}

.ekspert-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 30px;
}

.ekspert-details .expert-link {
  width: 100%;
  height: auto;
}
.ekspert-details figure {
  margin-bottom: 0 !important;
}

.ekspert-details .expert-link img {
  width: 100%;
}

.pesonal-info {
  margin: 0 !important;
  padding: 0;
  list-style: none;
}
.pesonal-info li {
  padding: 0.2rem 0;
}

.pesonal-info h3 {
  margin: 0 !important;
}

.custom-tags {
  margin-bottom: 40px;
}

@media screen and (min-width: 768px) {
  .ekspert-details .expert-link {
    width: 44%;
    height: auto;
    object-fit: cover;
  }
  .ekspert-details {
    flex-direction: row;
  }
}

.sidebar-img {
  margin-bottom: 2rem;
  display: block;
}
.ctx-posts img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.social-links {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.social-links a {
  display: block;
}
.social-links img {
  width: 35px;
  height: auto;
}

.post-dec {
  margin-top: 2rem;
}
.expert-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.post_tags_single {
  margin-top: 1.5rem;
}

.ctx-posts .onsale {
  display: block;
  font-size: 12px;
  text-align: center;
  line-height: 39px;
  font-weight: 500;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 15px;
  top: 15px;
  z-index: 10;
  border-radius: 100%;
  text-transform: uppercase;
  color: var(--theme-color-accent_text);
  background-color: var(--theme-color-accent_link2);
}
/* .ctx-posts .post_meta {
  font-size: 1.1rem;
  display: flex;
  gap: 0.3rem;
} */

.wrapper {
  width: 400px;
  background: #fff;
  border-radius: 10px;
  padding: 20px 25px 40px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}
header h2 {
  font-size: 24px;
  font-weight: 600;
}
header p {
  margin-top: 5px;
  font-size: 16px;
}
.price-input {
  width: 100%;
  display: flex;
  margin: 30px 0 35px;
}
.price-input .field {
  display: flex;
  width: 100%;
  height: 45px;
  align-items: center;
}
.field input {
  width: 100%;
  height: 100%;
  outline: none;
  font-size: 19px;
  margin-left: 12px;
  border-radius: 5px;
  text-align: center;
  border: 1px solid #999;
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.price-input .separator {
  width: 130px;
  display: flex;
  font-size: 19px;
  align-items: center;
  justify-content: center;
}
.slider {
  height: 5px;
  position: relative;
  background: #ddd;
  border-radius: 5px;
}
.slider .progress {
  height: 100%;
  left: 0%;
  right: 0%;
  position: absolute;
  border-radius: 5px;
  /* background: #17a2b8; */
}
.range-input {
  position: relative;
  margin-bottom: 2rem;
}
.range-input input {
  position: absolute;
  width: 100%;
  height: 5px;
  top: -5px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
input[type="range"]::-webkit-slider-thumb {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: var(--theme-color-accent_link);
  pointer-events: auto;
  -webkit-appearance: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}
input[type="range"]::-moz-range-thumb {
  height: 28px;
  width: 28px;
  border: none;
  border-radius: 50%;
  background: var(--theme-color-accent_link);
  pointer-events: auto;
  -moz-appearance: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.list_products_sorting {
  display: none;
}

.category-sorting {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  /*align-items: center;*/
  gap: 1rem;
  flex-direction: column;
}
.category-sorting .active-tags {
  margin-bottom: 0 !important;
 width: 100%;
}

/*.filter-by-width {*/
/*  display: grid;*/
/*  grid-template-columns: 1fr 200px;*/
/*  gap: 1rem;*/
/*  width: 100%;*/
/*}*/


.filters-rp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media screen and (max-width: 680px ) {
  .filters-rp {
    grid-template-columns: 1fr;
  }
}


.modal-inner.loading,
.list_products.loading {
  position: relative;
}
.modal-inner.loading::after,
.list_products.loading::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 10;
  border-radius: 15px;
}

.modal-inner.loading::before,
.list_products.loading::before {
  width: 50px;            /* Customize width */
  height: 50px;           /* Customize height */
  border: 8px solid #f3f3f3;  /* Light gray border */
  border-top: 8px solid rgb(91, 86, 202); /* Blue border on top */
  border-radius: 50%;     /* Makes it a circle */
  animation: spin 1s linear infinite;
  content: '';
  display: block;
  position: absolute;
  top: 50vh;
  left:48%;
  transform: translate(-50%, -50vh);
  z-index: 11;
}

.modal-inner.loading::before {
  top: 45%;
  left:45%;

}

/* Animation Keyframes */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.error-msg {
  margin-top: 2rem;
}

#wps_wpr_order_notice {
  width: auto !important;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
}

.cart.woocommerce-cart-form__contents .product-name {
  flex-direction: column;
}

.cart.woocommerce-cart-form__contents .product-name .variation {
  display: grid;
  grid-template-columns: auto auto 1fr;
  font-size: 0.875rem;
}

.zf-templateWrapper ul {
  list-style: none;
  padding: 1rem 0 0 0;
  margin: 0;
}
.zf-templateWrapper input {
  width: 100%;
}

.list-item-img img {
  max-width: 300px;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
}
.expert-img img {
  object-fit: cover;
  max-height: 450px;
}

.post_layout_band .post_featured {
  max-width: 300px;
  width: 100%;
}
.post_layout_band .post_featured,
.post_layout_band .post_content_wrap {
  flex-basis: unset;
}

.mt-2 {
  margin-top: 0.5rem !important;
}
.mt-4 {
  margin-top: 1rem !important;
}

.post_layout_band .post_content_wrap {
  margin-top: 0px !important;
}

@media (max-width: 700px) {
  .post_layout_band {
    flex-direction: column !important;
  }

  .post_layout_band .post_content_wrap {
    padding-left: 0 !important;
    margin-top: 20px !important;
  }
}
@media (min-width: 900px) {
  .list-item-img img {
    max-width: 350px;
  }
}

/*Sticky form*/

.sticky-form {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 9999;
}
.woocommerce div.product form.cart {
  margin: 0 !important;
  padding-bottom: 4rem;
}

.woocommerce div.product form.cart.sticky-form {
  margin: 0 !important;
  padding: 1rem 0 1rem 0 !important;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgb(216, 216, 216);
}
.woocommerce div.product form.cart.sticky-form .woocommerce-variation-price {
  text-align: center;
}
.woocommerce div.product form.cart.sticky-form table tr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.woocommerce div.product form.cart.sticky-form table {
  margin-bottom: 1rem !important;
}
.woocommerce div.product form.cart.sticky-form .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.content-img img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  max-height: 450px;
  height: 100%;
  width: 100%;
}

.woocommerce .shop_mode_list ul.products li.product .post_featured {
  max-width: 300px !important;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
}
.woocommerce .shop_mode_list ul.products li.product .post_featured a {
  display: block;
  height: 100%;
  width: 100%;
}

.woocommerce .shop_mode_list ul.products li.product .post_featured img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}
.woocommerce .shop_mode_list ul.products li.product {
  margin-bottom: 3rem !important;
}

@media screen and (min-width: 768px) {
  .woocommerce .shop_mode_list ul.products li.product .post_item {
    display: flex;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .woocommerce .shop_mode_list ul.products li.product .post_content {
    display: block !important;
  }
}

.woocommerce div.product form.cart {
  margin-bottom: 6rem;
}

.post_item_single .post_tags_single {
  align-items: center;
}

.post_item_single .post_tags_single .post_meta_label {
  display: inline-block !important;
  font-size: 0.875rem;
  line-height: 1;
  padding: 2px 9px !important;
  margin: 0 4px 4px 0 !important;
}
.expert-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.post_content_single .wpulike {
  margin: 0 0 0 1rem !important;
}
.wpulike {
  padding: 0 !important;
}

.post_content_single .wpulike {
  margin-top: 2rem;
}

.post_content_inner {
  margin-bottom: 1rem;
}

.btn-custom {
  display: block;
  padding: 6px 14px;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  -webkit-border-radius: var(--theme-var-rad);
  -ms-border-radius: var(--theme-var-rad);
  border-radius: var(--theme-var-rad);
  color: var(--theme-color-text_dark);
  background-color: var(--theme-color-bg_color);
}

.btn-custom:hover {
  color: var(--theme-color-text_dark) !important;
}

.yikes-custom-woo-tab-title {
  display: none;
}

.woocommerce div.product .woocommerce-tabs #tab-description h2 {
  display: block;
}

.shortcode-title {
  font-size: 20px !important;
}
.woocommerce .shop_mode_list ul.products li.product .post_content {
  margin: 0 0 12px 0;
}
.woocommerce ul.products li.product strong {
  display: inline;
}

.products-pagination {
  padding: 15px 0;
  background: #fff;
  display: flex;
  justify-content: center;
  border-radius: 15px;
}

.products-pagination .page-numbers {
  margin: 0 !important;
}


.url-maker {
  display: none;
}

.url-maker.active {
  display: flex;
  gap: 1rem;
}

.url-maker input {
  width: 100%;
}

@media screen and (max-width: 600px) {
  .url-maker {
    flex-direction: column;
  }
}
.url-maker-btn {
  margin: 1rem 0;
  border-radius: 99rem;
  padding: 0 1rem;
}

/* ===========================================
   Size Autocomplete — Google Search-style
   Mobile-first, 375px baseline
   =========================================== */

.size-autocomplete {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: #fff;
  border: 1.5px solid #dfe1e5;
  border-radius: 24px;
  padding: 0 12px 0 16px;
  height: 46px;
  box-sizing: border-box;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.size-autocomplete:focus-within {
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66,133,244,0.18);
  border-radius: 24px 24px 0 0;
}

.size-autocomplete[aria-expanded="true"] {
  border-radius: 24px 24px 0 0;
  border-bottom-color: transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.size-ac-input {
  flex: 1 1 auto;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: #202124;
  min-width: 0;
  height: 100%;
  padding: 0;
}

.size-ac-input::placeholder {
  color: #9aa0a6;
  font-weight: 400;
}

.size-ac-clear {
  flex: 0 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  color: #70757a;
  font-size: 18px;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.12s;
}

.size-ac-clear:hover {
  background: #f1f3f4;
  color: #202124;
}

.size-ac-dropdown {
  position: absolute;
  top: calc(100% + 1.5px);
  left: -1.5px;
  right: -1.5px;
  background: #fff;
  border: 1.5px solid #4285f4;
  border-top: none;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 9999;
  padding-bottom: 6px;
}

.size-ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #202124;
  transition: background 0.1s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.size-ac-item:hover,
.size-ac-item--active {
  background: #f1f3f4;
}

.size-ac-item--active {
  background: #e8f0fe;
}

.size-ac-item-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa0a6;
}

.size-ac-item-label {
  flex: 1 1 auto;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.size-ac-item--custom .size-ac-item-label {
  font-weight: 400;
  color: #4285f4;
}

.size-ac-count {
  flex: 0 0 auto;
  font-size: 12px;
  color: #70757a;
  background: #f1f3f4;
  border-radius: 12px;
  padding: 2px 8px;
  white-space: nowrap;
}

.size-ac-custom-sub {
  font-size: 11px;
  color: #9aa0a6;
  margin-top: 1px;
}

.size-ac-separator {
  height: 1px;
  background: #e8eaed;
  margin: 4px 0;
}

/* Wrap the autocomplete in the existing filter row layout */
.filter-combobox-row .size-autocomplete {
  flex: 1 1 auto;
  min-width: 0;
}

/* Tablet+ */
@media screen and (min-width: 600px) {
  .size-autocomplete {
    height: 48px;
    font-size: 15px;
  }

  .size-ac-input {
    font-size: 15px;
  }
}

/* Desktop */
@media screen and (min-width: 992px) {
  .size-autocomplete {
    height: 46px;
  }
}