/**
 * 全站 select 箭头右间距
 * 原生 menulist 箭头贴边；统一 appearance:none + SVG。
 * 注意：页面样式请用 background-color，勿用 background 简写冲掉箭头；
 * 勿再写 appearance:menulist / background-image:none 覆盖本文件。
 */
/*======= sanxio select caret spacing start ===========*/
:root {
  /* 箭头距右边框 + 文案距箭头：合计右内边距需明显大于 caret */
  --sanxio-select-caret-pad: 0.875rem;
  --sanxio-select-caret-size: 1.125rem;
  --sanxio-select-pad-end: 2.75rem;
  --sanxio-select-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6%209%2012%2015%2018%209'/%3E%3C/svg%3E");
}

/* 会员中心 + 前台：单选下拉统一箭头右边距
 * 排除日期选择器时分秒：窄框 + 大右内边距会把数字完全挤出 */
select:not([multiple]):not([size]):not(.sanxio-dp__time-select):not([data-sanxio-dp-time]),
select[size='1']:not(.sanxio-dp__time-select):not([data-sanxio-dp-time]),
.md3-select-wrap select:not(.sanxio-dp__time-select):not([data-sanxio-dp-time]),
.sanxio-search-fields select:not(.sanxio-dp__time-select),
.sanxio-search-row select:not(.sanxio-dp__time-select),
select.md3-input:not(.sanxio-dp__time-select):not([data-sanxio-dp-time]) {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  padding-right: var(--sanxio-select-pad-end) !important;
  background-image: var(--sanxio-select-caret) !important;
  background-repeat: no-repeat !important;
  background-position: right var(--sanxio-select-caret-pad) center !important;
  background-size: var(--sanxio-select-caret-size) !important;
}

/* 兜底：即使上面选择器未命中，也强制去掉时分秒箭头内边距 */
select.sanxio-dp__time-select,
select[data-sanxio-dp-time='1'] {
  padding-right: 0 !important;
  padding-left: 0 !important;
  background-image: none !important;
  background-size: 0 !important;
}

/* SelectCard 触发器：箭头与右边框留白 */
.md3-select-card__trigger {
  padding-right: 18px !important;
  box-sizing: border-box;
}
.md3-select-card__arrow {
  margin-right: 4px;
  flex: 0 0 auto;
}

:root[data-theme='dark'],
:root.theme-dark {
  --sanxio-select-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cac4d0' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6%209%2012%2015%2018%209'/%3E%3C/svg%3E");
}
/*======= sanxio select caret spacing end ===========*/
