/* Black-gold custom select, shared by the storefront and admin console. */

.cselect {
  position: relative;
  display: block;
  width: 100%;
}

.cselect__native {
  position: absolute !important;
  left: 0;
  top: 0;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  padding: 0 !important;
}

.cselect__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid rgba(200, 167, 106, 0.38);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(200, 167, 106, 0.06), rgba(0, 0, 0, 0.18)),
    #08090a;
  color: #e8ddc8;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s, background 0.25s;
}

.cselect__trigger:hover,
.cselect__trigger:focus-visible,
.cselect.is-open .cselect__trigger {
  outline: none;
  border-color: rgba(200, 167, 106, 0.75);
  color: #f2e4c4;
  background:
    linear-gradient(180deg, rgba(200, 167, 106, 0.12), rgba(0, 0, 0, 0.22)),
    #08090a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 18px rgba(200, 167, 106, 0.08);
}

.cselect__trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cselect__value {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}

.cselect__trigger.is-placeholder .cselect__value {
  color: #776f62;
}

.cselect__arrow {
  display: block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-right: 1px solid #c8a76a;
  border-bottom: 1px solid #c8a76a;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s;
}

.cselect.is-open .cselect__arrow {
  transform: rotate(225deg) translateY(-2px);
}

.cselect__menu {
  position: fixed;
  z-index: 1200;
  max-height: 280px;
  padding: 6px;
  overflow: auto;
  border: 1px solid rgba(200, 167, 106, 0.5);
  border-radius: 2px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200, 167, 106, 0.08), transparent 62%),
    #08090a;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 167, 106, 0.4) #08090a;
}

.cselect__menu::-webkit-scrollbar {
  width: 6px;
}

.cselect__menu::-webkit-scrollbar-thumb {
  background: rgba(200, 167, 106, 0.35);
}

.cselect__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 1px;
  background: transparent;
  color: #bdb3a1;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cselect__option:hover,
.cselect__option:focus-visible {
  outline: none;
  background: rgba(200, 167, 106, 0.14);
  color: #f2e4c4;
}

.cselect__option.is-selected {
  background: rgba(200, 167, 106, 0.09);
  color: #e6cd9b;
}

.cselect__option.is-selected::after {
  content: '✓';
  color: #c8a76a;
  font-size: 11px;
}

.field .cselect__trigger {
  padding: 11px 13px;
  font-size: 13px;
}

.admin-field .cselect__trigger {
  padding: 10px 12px;
  font-size: 12px;
}

.member-tools .cselect__trigger {
  padding: 9px 11px;
  font-size: 12px;
}

.photo-card__row .cselect__trigger {
  min-height: 30px;
  padding: 6px 8px;
  font-size: 11px;
}

.photo-card__row .cselect__menu {
  max-height: 220px;
}
