/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
.field_with_errors label,
.field_with_errors input {
  color: rgb(255 0 0 / var(--tw-text-opacity, 1)) !important;
}

.field_with_errors input,
.field_with_errors select {
  border-color: rgb(255 0 0 / var(--tw-border-opacity, 1)) !important;
}

.required::after {
  content: " *";
  color: rgb(255 0 0 / var(--tw-text-opacity, 1));
}

/* Custom styling for the search input clear button to match the search icon */
.search-cancel-custom::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  width: 20px;
  position: relative;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563EB' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 18L18 6M6 6l12 12' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.search-cancel-custom::-webkit-search-cancel-button:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231D4ED8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 18L18 6M6 6l12 12' /%3E%3C/svg%3E");
}

/* Dark mode support */
.dark .search-cancel-custom::-webkit-search-cancel-button {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233B82F6' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 18L18 6M6 6l12 12' /%3E%3C/svg%3E");
}

.dark .search-cancel-custom::-webkit-search-cancel-button:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2393C5FD' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 18L18 6M6 6l12 12' /%3E%3C/svg%3E");
}

.onesignal-customlink-explanation.state-unsubscribed {
  color: red !important;
}

.onesignal-customlink-explanation.state-subscribed {
  visibility: hidden !important;
}

/* OneSignal custom link button styling - ensures consistent appearance */
.onesignal-customlink-container {
  margin: 10px 0;
}

.onesignal-customlink-subscribe {
  display: inline-block !important;
  padding: 10px 20px !important;
  margin: 10px 0 !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease, opacity 0.2s ease !important;
}

.onesignal-customlink-subscribe:hover {
  opacity: 0.9 !important;
}
