/*
 * CARLOG shop search reset UX
 *
 * This file is intentionally scoped to the classes added by
 * shop-search-reset-ux.js so the existing filter layout remains unchanged.
 */
.carlog-shop-keyword__control {
  position: relative;
  width: 100%;
  min-width: 0;
}

.carlog-shop-keyword__input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 52px 10px 12px;
}

#shop-filter-form .carlog-shop-keyword__input {
  padding-right: 52px !important;
}

.mobile-drawer-search .carlog-shop-keyword__control {
  flex: 1 1 auto;
}

.mobile-drawer-search .carlog-shop-keyword__input {
  min-height: 40px;
  padding: 8px 44px 8px 0;
  border: 0;
  background: transparent;
  outline: none;
}

.carlog-shop-keyword__clear {
  position: absolute;
  top: 50%;
  right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transform: translateY(-50%);
}

.carlog-shop-keyword__clear:hover,
.carlog-shop-keyword__clear:focus-visible {
  color: #1e293b;
  background: #e2e8f0;
  outline: 2px solid #94a3b8;
  outline-offset: 1px;
}

.carlog-shop-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

#shop-filter-form .carlog-shop-filter-reset {
  margin-top: 12px;
}

.carlog-shop-filter-reset:hover,
.carlog-shop-filter-reset:focus-visible {
  color: #1e293b;
  background: #f1f5f9;
  border-color: #94a3b8;
  outline: 2px solid #cbd5e1;
  outline-offset: 1px;
}

.mobile-drawer-footer .carlog-shop-filter-reset {
  margin: 0;
}

.carlog-shop-keyword__clear[hidden],
.carlog-shop-filter-reset[hidden] {
  display: none !important;
}
