.tire-search-widget {
  background: transparent;
}

.tire-search-title {
  margin: 0 0 20px 0;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-align: left;
}

.tire-search-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tire-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
}

.tire-search-field {
  min-width: 200px;
  display: flex;
  flex-direction: column;
  flex-basis: calc(33.33% - 10px);
}

.tire-search-field:last-child {
  flex: 1 1 auto !important;
}

.tire-search-field label {
  margin-bottom: 5px;
  font-weight: 600;
  color: #555;
  font-size: 14px;
}

.tire-search-field select {
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  transition: border-color 0.3s ease;
  cursor: pointer;
}

.tire-search-field select:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.tire-search-field select:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.6;
}

.tire-search-button {
  padding: 12px 30px;
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-height: 46px;
}

.tire-search-button:hover {
  background: #005a87;
  color: white;
}

.tire-search-button:active {
  transform: translateY(1px);
}

/* Layout modifier classes (from Elementor setting) */
.tire-search-widget.tire-layout-stack .tire-search-row {
  flex-direction: column;
}
.tire-search-widget.tire-layout-stack .tire-search-field {
  min-width: 100%;
}
.tire-search-widget.tire-layout-stack .tire-search-button {
  width: 100%;
}

/* Responsive design fallback */
@media (max-width: 768px) {
  .tire-search-row {
    flex-direction: column;
  }
  .tire-search-field {
    min-width: 100%;
  }
}

/* Loading state */
.tire-search-field select.loading {
  background: #f9f9f9
    url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZGVmcz4KICAgIDxsaW5lYXJHcmFkaWVudCBpZD0iYSI+CiAgICAgIDxzdG9wIG9mZnNldD0iMCUiIHN0b3Atb3BhY2l0eT0iMCIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3Atb3BhY2l0eT0iMSIvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICA8L2RlZnM+CiAgPGNpcmNsZSBjeD0iMTAiIGN5PSIxMCIgcj0iOCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJ1cmwoI2EpIiBzdHJva2Utd2lkdGg9IjIiPgogICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJyb3RhdGUiIGZyb209IjAgMTAgMTAiIHRvPSIzNjAgMTAgMTAiIGR1cj0iMXMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIi8+CiAgPC9jaXJjbGU+Cjwvc3ZnPg==")
    no-repeat right 10px center;
  background-size: 20px;
}

/* Admin page tweaks */
.tire-mapping-admin .widefat th,
.tire-mapping-admin .widefat td {
  padding: 10px;
}
.tire-mapping-admin .regular-text {
  width: 100%;
}
.tire-mapping-admin .remove-row {
  color: #a00;
}
.tire-mapping-admin .remove-row:hover {
  color: #dc3232;
}
