/* =========================================================
   Rasta Pets – Custom Select
   Componente para reemplazar selects nativos
   ========================================================= */

.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
  font-family: var(--font-family, "Inter", sans-serif);
}

.custom-select[data-disabled="true"] .cs-selected {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.cs-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  box-sizing: border-box;
  color: var(--text-main, #102a56);
  background: #ffffff;
  border: 1px solid #dce4ef;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(16, 42, 86, 0.02);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-selected:hover {
  border-color: #b8c8dd;
  background: #fcfdfe;
  box-shadow: 0 4px 12px rgba(16, 42, 86, 0.04);
}

.custom-select.open .cs-selected {
  border-color: var(--color-primary, #22c7a9);
  box-shadow: 0 0 0 4px rgba(34, 199, 169, 0.15), 0 4px 16px rgba(34, 199, 169, 0.1);
}

.cs-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  color: #7b8ba8;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select.open .cs-icon {
  transform: rotate(180deg);
  color: var(--color-primary, #22c7a9);
}

.cs-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 250px;
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--color-primary-soft, #e9fbf7);
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(16, 42, 86, 0.12);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select.open .cs-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cs-option {
  padding: 12px 16px;
  color: var(--text-main, #102a56);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cs-option:hover {
  background: var(--color-primary-soft, #e9fbf7);
  color: var(--color-primary-hover, #16a88e);
}

.cs-option.selected {
  background: var(--color-primary, #22c7a9);
  color: #ffffff;
  font-weight: 600;
}

/* Custom Scrollbar for options */
.cs-options::-webkit-scrollbar {
  width: 6px;
}
.cs-options::-webkit-scrollbar-track {
  background: transparent;
}
.cs-options::-webkit-scrollbar-thumb {
  background: rgba(123, 139, 168, 0.3);
  border-radius: 10px;
}
.cs-options::-webkit-scrollbar-thumb:hover {
  background: rgba(123, 139, 168, 0.5);
}
