/* ==========================================================================
   ds-content.css: redesign look for the EXISTING Bootstrap 4.4.1 page elements (buttons, cards, forms, tables, list groups,
   modals, pagination). Written 18 Nov 2026. Additive only: no template or markup changes.
   Loaded ONLY for staff preview browsers (EXPOHIRE_STAFF + EXPOHIRE_DS_PREVIEW=1), after ds-chrome.css (which defines the
   --g / --ink / --line ... variables on body.ds). Every rule is scoped to body.ds.
   Specificity notes:
   - "body.ds :where(#contents, .modal) X" = (0,1,1)+X. Beats plain Bootstrap but loses to Bootstrap's own grouped-button
     joins (.btn-group > .btn:not(:last-child) ...), so button groups and input groups keep their square inner edges.
   - "body.ds #contents X" is used only where the live combined.css has a #contents rule to override
     (#contents .btn font/uppercase, #contents .btn-primary colour).
   - Page-specific live rules with higher specificity (e.g. #contents .expo-product-card ...) are left to win on purpose.
   ========================================================================== */

/* ---------- Buttons ---------- */
body.ds :where(#contents, .modal) .btn {
	border-radius: 999px;
	border-width: 2px;
	padding: .45rem 1.1rem;
	line-height: 1.3;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
body.ds :where(#contents, .modal) .btn-sm { padding: .3rem .8rem; font-size: .8125rem; }
body.ds :where(#contents, .modal) .btn-lg { padding: .7rem 1.5rem; font-size: 1.0625rem; }
body.ds #contents .btn, body.ds .modal .btn { font-family: var(--font); font-weight: 700; text-transform: none; letter-spacing: 0; }
body.ds :where(#contents, .modal) .btn:focus, body.ds :where(#contents, .modal) .btn.focus { box-shadow: none; }

body.ds :where(#contents, .modal) .btn-primary { background-color: var(--g); border-color: var(--g); }
body.ds #contents .btn-primary, body.ds #contents .btn-primary:focus, body.ds .modal .btn-primary { color: var(--ink); }
body.ds :where(#contents, .modal) .btn-primary:hover,
body.ds :where(#contents, .modal) .btn-primary:not(:disabled):not(.disabled):active { background-color: var(--g-700); border-color: var(--g-700); }
body.ds #contents .btn-primary:hover, body.ds .modal .btn-primary:hover { color: #fff; }

body.ds :where(#contents, .modal) .btn-secondary { background-color: var(--ink); border-color: var(--ink); }
body.ds #contents .btn-secondary, body.ds .modal .btn-secondary { color: #fff; }
body.ds :where(#contents, .modal) .btn-secondary:hover,
body.ds :where(#contents, .modal) .btn-secondary:not(:disabled):not(.disabled):active { background-color: var(--dark-2); border-color: var(--dark-2); }

body.ds :where(#contents, .modal) .btn-outline-primary { color: var(--g-700); border-color: var(--g); background-color: transparent; }
body.ds :where(#contents, .modal) .btn-outline-primary:hover,
body.ds :where(#contents, .modal) .btn-outline-primary:not(:disabled):not(.disabled):active { color: var(--ink); background-color: var(--g-50); border-color: var(--g); }
body.ds :where(#contents, .modal) .btn-outline-secondary { color: var(--ink); border-color: var(--line); background-color: transparent; }
body.ds :where(#contents, .modal) .btn-outline-secondary:hover,
body.ds :where(#contents, .modal) .btn-outline-secondary:not(:disabled):not(.disabled):active { color: var(--ink); background-color: var(--g-50); border-color: var(--g); }
body.ds :where(#contents, .modal) .btn-link { color: var(--g-700); }

/* One focus ring, as in the chrome: 2px brand-dark green with a 2px gap */
body.ds :where(#contents, .modal) :is(a, button, .btn, summary, [tabindex]):focus-visible { outline: 2px solid var(--g-700); outline-offset: 2px; }

/* ---------- Cards ---------- */
body.ds :where(#contents, .modal) .card { border-color: var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
body.ds :where(#contents, .modal) .card > .list-group:first-child .list-group-item:first-child,
body.ds :where(#contents, .modal) .card-header:first-child { border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0; }
body.ds :where(#contents, .modal) .card-footer:last-child { border-radius: 0 0 calc(var(--r) - 1px) calc(var(--r) - 1px); }
body.ds :where(#contents, .modal) .card-header,
body.ds :where(#contents, .modal) .card-footer { background-color: var(--bg); border-color: var(--line); }
body.ds :where(#contents, .modal) .card-img-top { border-top-left-radius: calc(var(--r) - 1px); border-top-right-radius: calc(var(--r) - 1px); }

/* ---------- Forms ---------- */
body.ds :where(#contents, .modal) .form-control,
body.ds :where(#contents, .modal) .custom-select { border-color: #cfd6ce; border-radius: var(--r-sm); color: var(--ink); }
body.ds :where(#contents, .modal) .form-control:focus,
body.ds :where(#contents, .modal) .custom-select:focus { border-color: var(--g-700); box-shadow: 0 0 0 3px rgba(130, 188, 65, .28); }
body.ds :where(#contents, .modal) .form-control::placeholder { color: var(--muted); }
body.ds :where(#contents, .modal) label { color: var(--ink-2); font-weight: 500; }
body.ds :where(#contents, .modal) .input-group-text { background-color: var(--bg); border-color: #cfd6ce; color: var(--ink-2); }
body.ds :where(#contents, .modal) .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--g-700); border-color: var(--g-700); }
body.ds :where(#contents, .modal) .custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 3px rgba(130, 188, 65, .28); }

/* ---------- Tables ---------- */
body.ds :where(#contents, .modal) .table { color: var(--ink); }
body.ds :where(#contents, .modal) .table th,
body.ds :where(#contents, .modal) .table td { border-top-color: var(--line); }
body.ds :where(#contents, .modal) .table thead th { border-bottom: 2px solid var(--line); color: var(--ink-2); font-weight: 700; }
body.ds :where(#contents, .modal) .table-striped tbody tr:nth-of-type(odd) { background-color: var(--bg); }
body.ds :where(#contents, .modal) .table-hover tbody tr:hover { background-color: var(--g-50); }
body.ds :where(#contents, .modal) .table-bordered,
body.ds :where(#contents, .modal) .table-bordered th,
body.ds :where(#contents, .modal) .table-bordered td { border-color: var(--line); }

/* ---------- List groups ---------- */
body.ds :where(#contents, .modal) .list-group-item { border-color: var(--line); color: var(--ink); }
body.ds :where(#contents, .modal) .list-group:not(.list-group-flush) > .list-group-item:first-child { border-top-left-radius: var(--r-sm); border-top-right-radius: var(--r-sm); }
body.ds :where(#contents, .modal) .list-group:not(.list-group-flush) > .list-group-item:last-child { border-bottom-left-radius: var(--r-sm); border-bottom-right-radius: var(--r-sm); }
body.ds :where(#contents, .modal) .list-group-item-action:hover,
body.ds :where(#contents, .modal) .list-group-item-action:focus { background-color: var(--g-50); color: var(--ink); }
body.ds :where(#contents, .modal) .list-group-item.active { background-color: var(--g-700); border-color: var(--g-700); color: #fff; }

/* ---------- Modals (the footer's contact/delivery modals sit outside #contents) ---------- */
body.ds .modal-content { border: 0; border-radius: var(--r); box-shadow: var(--shadow); }
body.ds .modal-header { border-bottom-color: var(--line); padding: 1rem 1.25rem; }
body.ds .modal-footer { border-top-color: var(--line); }
body.ds .modal-title { font-family: var(--font); font-weight: 700; color: var(--ink); }
body.ds .modal-backdrop.show { opacity: .55; }

/* ---------- Pagination ---------- */
body.ds :where(#contents, .modal) .pagination { gap: 6px; }
body.ds :where(#contents, .modal) .page-link { border-radius: 999px !important; margin-left: 0; min-width: 38px; text-align: center; color: var(--g-700); border-color: var(--line); }
body.ds :where(#contents, .modal) .page-link:hover { background-color: var(--g-50); border-color: var(--g); color: var(--ink); }
body.ds :where(#contents, .modal) .page-link:focus { box-shadow: 0 0 0 3px rgba(130, 188, 65, .28); }
body.ds :where(#contents, .modal) .page-item.active .page-link { background-color: var(--g-700); border-color: var(--g-700); color: #fff; }
body.ds :where(#contents, .modal) .page-item.disabled .page-link { color: var(--muted); border-color: var(--line); }
