/* Unified day / billing-month controls, independent of browser-native popup styles. */
.date-picker-field { position: relative; display: flex; width: 100%; min-width: 0; align-items: center; border-radius: 10px; background: #fff; cursor: pointer; }
.date-picker-field .date-picker-source { width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 10px 42px 10px 12px; border: 1px solid #cfdfd7; border-radius: 10px; color: var(--ink, #172321); background: transparent; font-size: 14px; font-weight: 500; line-height: 1.4; font-variant-numeric: tabular-nums; cursor: pointer; appearance: none; -webkit-appearance: none; }
.date-picker-field:hover .date-picker-source:not(:disabled) { border-color: #71b495; background-color: #f9fcfa; }
.date-picker-field .date-picker-source:focus { border-color: #3c966d; outline: 0; box-shadow: 0 0 0 3px #3c966d26; }
.date-picker-source::-webkit-calendar-picker-indicator { display: none; }
.date-picker-source::-webkit-date-and-time-value { text-align: left; }
.date-picker-field .date-picker-source:disabled { cursor: not-allowed; opacity: .55; background: #f0f4f2; }
.date-picker-icon { position: absolute; right: 14px; width: 17px; height: 17px; border: 1.7px solid #337a5d; border-radius: 4px; pointer-events: none; }
.date-picker-icon::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; border-top: 1.7px solid #337a5d; }
.date-picker-icon::after { content: ""; position: absolute; top: -4px; left: 3px; width: 6px; height: 5px; border-left: 1.7px solid #337a5d; border-right: 1.7px solid #337a5d; }
.date-picker-field:has(:disabled) .date-picker-icon { opacity: .4; }
.month-control .date-picker-field { min-width: 160px; }
.youzan-product-date-control .date-picker-field .date-picker-source { font-size: 12px; padding-left: 9px; }
.date-picker-popup { position: fixed; z-index: 1000; width: 360px; max-width: calc(100vw - 24px); padding: 16px; overflow: auto; overscroll-behavior: contain; border: 1px solid #c9dfd2; border-radius: 16px; color: #172321; background: white; box-shadow: 0 16px 52px #163f3433, 0 3px 10px #163f3410; font-size: 14px; line-height: 1.4; }
.date-picker-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.date-picker-title-row strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.date-picker-popup button { min-width: 0; border: 0; border-radius: 8px; color: #245a43; background: #f0f7f3; font-size: 14px; font-weight: 600; }
.date-picker-popup button:hover:not(:disabled) { background: #e1f1e8; }
.date-picker-popup button:focus-visible, .date-picker-popup select:focus-visible, .date-picker-popup input:focus-visible { outline: 2px solid #33835f; outline-offset: 2px; }
.date-picker-popup button:disabled { opacity: .32; cursor: not-allowed; }
.date-picker-popup .date-picker-close { flex: 0 0 32px; height: 32px; font-size: 23px; font-weight: 400; }
.date-picker-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.date-picker-header .date-picker-button { flex: 0 0 36px; height: 40px; font-size: 26px; font-weight: 400; }
.date-picker-header select { flex: 1; min-width: 0; width: auto; height: 40px; padding: 0 6px; border: 1px solid #d5e4dc; border-radius: 8px; color: #245a43; background: #fff; font-size: 15px; font-weight: 600; }
.date-picker-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.date-picker-weekday { display: grid; place-items: center; height: 26px; color: #7a8981; font-size: 12px; }
.date-picker-popup .date-picker-day { display: grid; place-items: center; height: 40px; padding: 0; color: #263e33; background: transparent; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.date-picker-popup .date-picker-adjacent { color: #97a49d; }
.date-picker-popup .date-picker-day[aria-current="date"] { box-shadow: inset 0 0 0 1px #62ac84; color: #257c53; }
.date-picker-popup .date-picker-day[aria-pressed="true"] { color: white; background: #247453; font-weight: 700; }
.date-picker-popup .date-picker-day[aria-pressed="true"]:hover { background: #1c6044; }
.date-picker-month-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 16px; }
.date-picker-month-grid .date-picker-day { height: 48px; background: #f6f9f7; }
.date-picker-entry { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e7eee9; }
.date-picker-entry .date-picker-manual { min-width: 0; width: 100%; height: 40px; padding: 8px 10px; border: 1px solid #d0dfd7; border-radius: 8px; color: #263e33; background: #fff; font-size: 14px; }
.date-picker-entry .date-picker-apply { flex: 0 0 58px; color: white; background: #247453; }
.date-picker-entry .date-picker-apply:hover { background: #1c6044 !important; }
.date-picker-error:empty { display: none; }
.date-picker-error { margin: 8px 0 0; color: #a33d35; font-size: 12px; }
.date-picker-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.date-picker-footer button { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.date-picker-hint { margin: 10px 0 0; color: #79887f; font-size: 11px; }
@media (max-width: 480px) {
  .date-picker-popup { padding: 12px; }
  .date-picker-popup .date-picker-day { height: 42px; }
  .date-picker-entry .date-picker-manual { font-size: 16px; }
}
