/* The date picker (design: "Избор на дата"); the colour from the page: --primary (the sites), else the admin's --accent */
.dp { position: relative; }
.dp > input[type="text"] { padding-right: 44px; }
.dp-open { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 6px; background: transparent; color: #4B5563; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.dp-open:hover { background: #F3F4F6; color: #111; }
.dp-pop { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; width: 316px; max-width: calc(100vw - 32px); box-sizing: border-box; background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .14); padding: 14px; font-family: var(--font-body, Inter), system-ui, sans-serif; color: #111; }
.dp-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.dp-nav { flex: none; width: 36px; height: 36px; border: 1px solid #E5E7EB; border-radius: 8px; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; color: #111; padding: 0; }
.dp-nav:hover { background: #F3F4F6; }
.dp-head select { height: 36px; border: 1px solid #D1D5DB; border-radius: 8px; font: 600 14px var(--font-body, Inter), system-ui, sans-serif; padding: 0 6px; background: #fff; color: #111; min-width: 0; }
.dp-month { flex: 1 1 auto; }
.dp-year { width: 84px; flex: none; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-week { font-size: 11px; font-weight: 600; color: #6B7280; padding: 4px 0; }
.dp-day { height: 38px; border: 0; border-radius: 8px; background: transparent; font: 400 14px var(--font-body, Inter), system-ui, sans-serif; color: #111; cursor: pointer; padding: 0; }
.dp-day:hover:not(:disabled) { background: #F3F4F6; }
.dp-day:focus-visible { outline: 2px solid var(--primary, var(--accent, #1fb5ad)); outline-offset: 1px; }
.dp-day.is-today { font-weight: 700; background: #F3F4F6; }
.dp-day.is-selected { background: var(--primary, var(--accent, #1fb5ad)); color: #fff; font-weight: 700; }
.dp-day:disabled { color: #C9CDD3; cursor: default; }
.dp-time { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #EEE; font-size: 13px; color: #555; }
.dp-time label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.dp-time select { height: 32px; border: 1px solid #ccc; border-radius: 6px; font: 13px var(--font-body, Inter), system-ui, sans-serif; padding: 0 4px; }
.dp-done { margin-left: auto; height: 32px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--primary, var(--accent, #1fb5ad)); color: #fff; font: 600 13px var(--font-body, Inter), system-ui, sans-serif; cursor: pointer; }
/* in the admin: the fields of the theme, a smaller calendar */
.admin-dp .dp-pop { width: 300px; border-radius: 6px; padding: 12px; }
.admin-dp .dp-day { height: 32px; font-size: 13px; border-radius: 4px; }
.admin-dp .dp-open { width: 30px; height: 30px; }
.admin-dp .dp > .form-control { padding-right: 38px; }
