:root {
  /* Text Alignment */
  --selectify-text-align-start: left;
  --selectify-text-align-end: right;  /* Checkbox Styles */
  --selectify-radio-border-radius: 12px;
  --selectify-radio-padding: 10px 14px;
  --selectify-checkbox-bg: linear-gradient(180deg, #d1d1d1 0%, #a8a8a8 50%, #7f7f7f 100%);
  --selectify-checkbox-checked-bg: linear-gradient(180deg, #bebebe 0%, #8c8c8c 50%, #5f5f5f 100%);
  --selectify-checkbox-check-circle: radial-gradient(circle at 35% 35%, #ffffff 0%, #e6e6e6 40%, #bfbfbf 100%);
  --selectify-checkbox-checked-circle: radial-gradient(circle at 40% 40%, #ffffff 0%, #bfbfbf 40%, #5f5f5f 100%);
  --selectify-checkbox-disabled-bg: linear-gradient(180deg, #c0c0c0 0%, #9e9e9e 50%, #7c7c7c 100%);
  --selectify-checkbox-disabled-circle: radial-gradient(circle at 40% 40%, #e3e3e3 0%, #c6c6c6 40%, #9f9f9f 100%);
}

.selectify,
.selectify * {
  box-sizing: border-box;
}

.s-hidden {
  display: none !important;
}

.selectify-hidden {
  visibility: hidden;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  border: 0;
  outline: none;
}

.selectify-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.selectify-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.selectify-select {
  all: unset;
  background: var(--selectify-select-bg, inherit);
  border-color: var(--selectify-select-border-color, unset);
  border-radius: var(--selectify-select-border-radius, inherit);
  padding: var(--selectify-select-padding, inherit);
  color: var(--selectify-select-color, inherit);
  box-shadow: none;
  cursor: pointer;
  line-height: 1.6;
  font-size: 0.875rem;
  transition: background 0.2s ease-in-out, border 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.selectify-radio,
.selectify-checkbox {
  border: none;
  background: var(--selectify-checkbox-bg, inherit);
  border-radius: var(--selectify-radio-border-radius, inherit);
  padding: var(--selectify-radio-padding, inherit);
  box-shadow: none;
}

.dual-list-option button,
.dual-list-option label,
.dual-list-option span,
.selectify-available-one-option button,
.selectify-available-one-option span,
.selectify-available-one-option label {
  pointer-events: none;
}

.wrapper-selectify {
  width: auto;
}

.wrapper-selectify > label {
  border: 0;
  background-image: none !important;
  background: transparent;
  cursor: default;
}

.selectify-select-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
}

.selectify-select-footer .selectify-clear-all {
  margin: 8px 0;
  border: 1px solid var(--selectify-select-border-color);
  background: var(--selectify-select-bg);
}

.selectify-select-footer button.s-hidden {
  margin: 0;
}

.options-inner,
.selectify-selected-options.dual-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.options-inner > *,
.selectify-selected-options.dual-inner > * {
  width: 100%;
}

.selectify-clear-all {
  display: flex;
  padding: 8px 14px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.selectify-clear-all span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.selectify-clear-all svg {
  vertical-align: middle;
  width: 20px;
  height: 20px;
  line-height: 0.9;
}

.selectify-max-selection-message {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #ffebee !important;
  color: #d32f2f !important;
  border: 2px solid #d32f2f !important;
  padding: 8px 14px;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.2 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* Show animation */
.selectify-max-selection-message.show {
  z-index: 7000;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.selectify-available-display {
  background: inherit;
}

/* Hide animation */
.selectify-max-selection-message.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
}

.selectify select:disabled {
  cursor: not-allowed;
}

.search-input {
  margin: 6px 0;
}

.remove-tag svg {
  width: 18px;
  height: 18px;
}

body .selectify-clear-all span.icon svg {
  width: 20px;
  height: 20px;
}

body .remove-tag,
body .selectify-dorpdown-arrow,
body .selectify-clear-all span.icon {
  line-height: 0.8;
}

.selectify-selected-one-option label,
.selectify-available-one-option label {
  padding: 0 !important;
  line-height: 1.2;
  pointer-events: none;
}

/* Clear All Button */
.selectify-select .selectify-select-footer button {
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  transition: background 0.3s ease-in-out;
}

.selectify-select .selectify-select-footer button:hover {
  opacity: 0.8;
}

@media (min-width:36rem) {
  .selectify-selected-one-option label,
  .selectify-available-one-option label {
    white-space: nowrap;
  }

}
