/* Liquor Drop Delivery — front-end pages (store finder, store pages, dashboards, forms).
   Works with any theme; matches the Liquor Drop theme's colors. */
.ldd {
	--ldd-green: #123d33;
	--ldd-green-2: #1b5244;
	--ldd-amber: #e9a23b;
	--ldd-amber-2: #d48d22;
	--ldd-ink: #1c2422;
	--ldd-ink-2: #4c5754;
	--ldd-mist: #eef2ef;
	--ldd-line: #d5ddd9;
	--ldd-red: #b4442c;
	--ldd-ok: #2f7a4f;
	color: var(--ldd-ink);
	font-size: 16px;
	line-height: 1.5;
}
.ldd *, .ldd *::before, .ldd *::after { box-sizing: border-box; }
.ldd img { max-width: 100%; height: auto; }

.ldd .ldd-btn, .ldd button.ldd-btn, .ldd summary.ldd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 44px; padding: 10px 20px; border: 0; border-radius: 999px;
	background: var(--ldd-amber); color: var(--ldd-ink); font: inherit; font-weight: 700;
	text-decoration: none; cursor: pointer; line-height: 1.2;
}
.ldd .ldd-btn:hover { background: var(--ldd-amber-2); color: var(--ldd-ink); }
.ldd .ldd-btn.ldd-btn--ghost { background: transparent; color: var(--ldd-green); box-shadow: inset 0 0 0 2px var(--ldd-line); }
.ldd .ldd-btn.ldd-btn--ghost:hover { background: var(--ldd-mist); color: var(--ldd-green); }
.ldd .ldd-btn.ldd-btn--danger { background: var(--ldd-red); color: #fff; }
.ldd .ldd-btn.ldd-btn--danger:hover { background: #962f19; color: #fff; }
.ldd .ldd-btn--sm { min-height: 34px; padding: 6px 14px; font-size: 14px; margin-top: 6px; }
.ldd .ldd-linkbtn { background: none; border: 0; padding: 4px 0; color: var(--ldd-ink-2); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
.ldd :focus-visible { outline: 3px solid var(--ldd-amber); outline-offset: 2px; }

.ldd input[type=text], .ldd input[type=email], .ldd input[type=tel], .ldd input[type=number],
.ldd input[type=search], .ldd input[type=time], .ldd input[type=password], .ldd select, .ldd textarea {
	width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--ldd-line);
	border-radius: 10px; background: #fff; color: var(--ldd-ink); font: inherit;
}
.ldd input[type=time] { width: auto; min-width: 120px; }
.ldd textarea { min-height: 80px; }
.ldd input:focus, .ldd select:focus, .ldd textarea:focus { border-color: var(--ldd-green); outline: none; }

.ldd-muted { color: var(--ldd-ink-2); font-size: 14px; }
.ldd-note { background: var(--ldd-mist); border-left: 4px solid var(--ldd-green); padding: 12px 16px; border-radius: 6px; margin: 0 0 16px; }
.ldd-empty { color: var(--ldd-ink-2); padding: 18px; border: 1.5px dashed var(--ldd-line); border-radius: 12px; text-align: center; }
.ldd-flash { background: #e6f3ea; border-left: 4px solid var(--ldd-ok); padding: 12px 16px; border-radius: 6px; }
.ldd-flash--bad { background: #fbeae6; border-left-color: var(--ldd-red); }
.ldd-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.ldd-badge--open { background: #dff1e5; color: #1f5b3a; }
.ldd-badge--closed { background: #f2e1dd; color: #8a2b17; }
.ldd-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--ldd-mist); font-size: 13px; font-weight: 600; }
.ldd-soldby { color: var(--ldd-ink-2); }

/* Store finder */
.ldd-search { display: flex; gap: 8px; margin: 0 0 20px; flex-wrap: wrap; }
.ldd-search input { flex: 1 1 260px; }
.ldd-store-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ldd-store-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 14px; background: #fff; border: 1.5px solid var(--ldd-line); border-radius: 12px; color: var(--ldd-ink); text-decoration: none; height: 100%; }
.ldd-store-card:hover { border-color: var(--ldd-green); color: var(--ldd-ink); }
.ldd-store-card__logo { width: 64px; height: 64px; border-radius: 12px; background: var(--ldd-green); color: var(--ldd-amber); display: grid; place-items: center; overflow: hidden; font-weight: 800; font-size: 24px; }
.ldd-store-card__logo img { width: 100%; height: 100%; object-fit: cover; }

/* Store page */
.ldd-storehead { margin-bottom: 12px; }
.ldd-shop__filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.ldd-shop__filter select { flex: 0 1 220px; }
.ldd-shop__filter input { flex: 1 1 200px; }
.ldd-products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.ldd-product { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: #fff; border: 1.5px solid var(--ldd-line); border-radius: 12px; }
.ldd-product__img img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--ldd-mist); border-radius: 8px; }
.ldd-product__name { color: var(--ldd-ink); font-weight: 600; text-decoration: none; line-height: 1.3; }
.ldd-product__price { font-weight: 800; font-size: 18px; }
.ldd-product .ldd-btn { margin-top: auto; }
.ldd-product .added_to_cart { text-align: center; font-weight: 600; }

/* Dashboards */
.ldd-dash { max-width: 980px; }
.ldd-dash__head h2 { margin: 0 0 4px; }
.ldd-adminpick { background: #fff7e6; border: 1px solid #f0d9a8; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.ldd-adminpick select { width: auto; display: inline-block; }
.ldd-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--ldd-line); margin: 16px 0 18px; }
.ldd-tabs a { padding: 10px 16px; text-decoration: none; color: var(--ldd-ink-2); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.ldd-tabs a.is-active { color: var(--ldd-ink); border-bottom-color: var(--ldd-amber); }
.ldd-poll { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ldd-card { background: #fff; border: 1.5px solid var(--ldd-line); border-left: 6px solid var(--ldd-line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.ldd-card--processing { border-left-color: var(--ldd-amber); }
.ldd-card--ld-accepted { border-left-color: #3b7bbf; }
.ldd-card--ld-ready { border-left-color: #6b4fc4; }
.ldd-card--ld-out { border-left-color: var(--ldd-ok); }
.ldd-card header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 17px; }
.ldd-items { margin: 0 0 8px; padding-left: 0; list-style: none; }
.ldd-items li { padding: 3px 0; }
.ldd-actions { display: inline-block; margin: 6px 6px 0 0; }
.ldd-reject, .ldd-idcheck { margin-top: 10px; }
.ldd-reject summary { cursor: pointer; color: var(--ldd-ink-2); font-size: 14px; }
.ldd-reject form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: flex-end; }
.ldd-reject form select { flex: 1 1 220px; }
.ldd-idcheck > summary { list-style: none; }
.ldd-idcheck > summary::-webkit-details-marker { display: none; }
.ldd-idcheck[open] > summary { margin-bottom: 12px; }
.ldd-legs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 10px; }
@media (max-width: 600px) { .ldd-legs { grid-template-columns: 1fr; } }
.ldd-avail { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: #f2e1dd; font-weight: 700; margin-bottom: 18px; }
.ldd-avail.is-on { background: #dff1e5; }
.ldd-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ldd-toolbar form { flex: 1 1 220px; max-width: 360px; }
.ldd-tablewrap { overflow-x: auto; }
.ldd-table { width: 100%; border-collapse: collapse; background: #fff; }
.ldd-table th, .ldd-table td { padding: 8px 10px; border-bottom: 1px solid var(--ldd-line); text-align: left; vertical-align: middle; }
.ldd-drinks input[type=number] { width: 96px; min-height: 38px; }
.ldd-drinks input[type=checkbox] { width: 22px; height: 22px; }
.ldd-thumb img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }

/* Forms */
.ldd-form label, .ld-form label { display: block; font-weight: 600; margin-bottom: 14px; }
.ldd-form label input, .ldd-form label select, .ldd-form label textarea { margin-top: 6px; font-weight: 400; }
.ldd-row, .ld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .ldd-row, .ld-row { grid-template-columns: 1fr; } }
.ldd-check, .ld-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; }
.ldd-check input, .ld-check input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--ldd-green); }
.ldd fieldset { border: 1.5px solid var(--ldd-line); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; }
.ldd legend { font-weight: 700; padding: 0 6px; }
.ldd-hours th { text-align: left; padding: 4px 10px 4px 0; font-weight: 600; }
.ldd-hours td { padding: 4px 8px 4px 0; }
.ld-form .ld-field { margin-bottom: 14px; }
.ld-form .ld-field label { display: block; margin-bottom: 6px; }
.ld-form .ld-field small { display: block; color: var(--ldd-ink-2); font-weight: 400; margin-top: 4px; }
.ld-form button[type=submit] { display: inline-flex; min-height: 44px; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--ldd-amber); color: var(--ldd-ink); font-weight: 700; cursor: pointer; }
.ld-alert { padding: 12px 16px; border-radius: 6px; background: var(--ldd-mist); border-left: 4px solid var(--ldd-green); margin-bottom: 16px; }
.ld-alert--ok { border-left-color: var(--ldd-ok); background: #e6f3ea; }
.ld-alert--error { border-left-color: var(--ldd-red); background: #fbeae6; }

/* Order progress for customers */
.ldd-track { margin-bottom: 20px; }
.ldd-steps { display: flex; list-style: none; margin: 0 0 10px; padding: 0; gap: 4px; flex-wrap: wrap; counter-reset: s; }
.ldd-steps li { flex: 1 1 110px; padding: 10px 8px; border-radius: 8px; background: var(--ldd-mist); color: var(--ldd-ink-2); font-size: 14px; font-weight: 600; text-align: center; }
.ldd-steps li.is-done { background: #dff1e5; color: #1f5b3a; }
.ldd-steps li.is-now { background: var(--ldd-green); color: #fff; }
.ldd ul.ldd-products, .ldd ul.ldd-store-grid, .ldd ul.ldd-items, .ldd ol.ldd-steps { padding-left: 0 !important; margin-left: 0 !important; }
.ldd .ldd-products > li, .ldd .ldd-store-grid > li { margin: 0; }
