/* Shared storefront controls. Existing form actions and page templates stay intact. */
.rd-ui {
  --rd-amber: #f5af00;
  --rd-amber-dark: #d09e00;
  --rd-amber-text: #8a6100;
  --rd-border: #e0e0e0;
  --rd-border-soft: #ededed;
  --rd-muted: #6e6e6e;
  --rd-ink: #262626;
}
html[data-unified-ui="1"] { scroll-padding-top: calc(var(--rd-header-height, 72px) + 16px); }
.rd-ui .rd-header { position: sticky; top: 0; z-index: 40; }
.rd-ui .rd-header .hdr { position: relative; top: auto; }
.rd-ui .rd-header .rd-dropdown { max-height: calc(100dvh - var(--rd-header-height, 72px) - 24px); overflow-y: auto; overscroll-behavior: contain; }
/* Contact launchers return when the active overlay closes; widgets keep running. */
.rd-ui:is(.rd-nav-open, .rd-search-open) :is(.ocdw_form_builder-call-float-button, #jvLabelWrap, #jvLabelWrap *, jdiv) { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.rd-ui .bar { top: var(--rd-header-height, 72px); }
.rd-ui .buybox { top: calc(var(--rd-header-height, 72px) + 16px); }
.rd-ui :is(#content, #main-content, .dl_theme, details[id], .panel-collapse) { scroll-margin-top: 16px; }
@media (max-width:999px) {
  .rd-ui .rd-header .mainnav.is-open { max-height: calc(100dvh - var(--rd-header-height, 62px) - 80px); }
  .rd-ui .rd-header .rd-dropdown { max-height: none; overflow: visible; }
}
@media print {
  .rd-ui .rd-header, .rd-ui .bar, .rd-ui .buybox { position: static; }
}

/* Primary, secondary and destructive actions keep distinct meanings. */
body.rd-ui.rd-legacy :where(.btn:not(.btn-solid, .btn-out, .btn-quiet)),
body.rd-ui :is(.btn-primary, .btn-default, .btn-info, .btn-danger, .btn-success, .btn-warning),
body.rd-ui.rd-legacy .dl_theme .read_more a,
body.rd-ui.rd-legacy .dl_theme .buy_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  max-width: 100%;
  padding: 10px 18px;
  border: 1px solid var(--rd-amber);
  border-radius: 7px;
  background: var(--rd-amber);
  color: #000;
  font-family: Poppins, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
  white-space: normal;
  text-decoration: none;
  text-shadow: none;
  box-shadow: none;
  vertical-align: middle;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
body.rd-ui .btn.btn-block { display: flex; width: 100%; }
/* The legacy blog selector otherwise paints amber text on the new amber button. */
body.rd-ui.rd-legacy .dl_theme .custom_blog .blog_list .blog_item .blog_content .blog_top .read_more a { color: #000; }
body.rd-ui :is(.btn-default, .btn-info) { color: var(--rd-amber-text); background: #fff; }
body.rd-ui .btn-danger { color: #b42318; background: #fff; border-color: #b42318; }
body.rd-ui .btn-success { color: #fff; background: #1c6b2e; border-color: #1c6b2e; }
body.rd-ui .btn-warning { color: #000; background: #ffe5a1; border-color: var(--rd-amber-dark); }
body.rd-ui .btn-link { min-height: 44px; padding: 6px 8px; background: transparent; border-color: transparent; color: var(--rd-amber-text); text-transform: none; }
body.rd-ui :is(.btn-sm, .btn-xs), body.rd-ui .input-group-btn .btn { min-width: 44px; min-height: 46px; padding: 10px; }
body.rd-ui .input-group .input-group-btn > .btn { border-radius: 7px; margin-left: 6px; }
body.rd-ui .btn i { flex-shrink: 0; }
body.rd-ui.rd-legacy .btn:disabled, body.rd-ui .btn.disabled { opacity: .55; cursor: not-allowed; }
body.rd-ui :is(.btn, .read_more a, .buy_btn):focus-visible { outline: 2px solid var(--rd-amber-dark); outline-offset: 3px; }
/* Stanley forces a black hover with !important, including touch hover emulation. */
body.rd-ui .btn-primary:hover { background: var(--rd-amber-dark) !important; color: #000 !important; border-color: var(--rd-amber-dark); }
body.rd-ui.rd-legacy .dl_theme .buy_btn a { padding: 0; color: inherit; background: none; border: 0; }
@media (hover:hover) {
  body.rd-ui :is(.btn-primary, .btn-default, .btn-info):hover,
  body.rd-ui.rd-legacy .dl_theme :is(.read_more a, .buy_btn):hover { background: var(--rd-amber-dark); border-color: var(--rd-amber-dark); color: #000; }
  body.rd-ui .btn-danger:hover { background: #b42318; color: #fff; }
  body.rd-ui .btn-success:hover { background: #145522; border-color: #145522; }
  body.rd-ui .btn-link:hover { color: var(--rd-ink); text-decoration: underline; background: none; border-color: transparent; }
}

/* Legacy breadcrumb markup is retained for SEO and existing controller links. */
body.rd-ui.rd-legacy .wrap-breadcrumb {
  margin: 0 auto;
  padding: 12px 0 0;
  min-height: 0;
  border: 0;
  background: #fff;
  text-align: left;
}
body.rd-ui .breadcrumb,
body.rd-ui .crumbs ol {
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 32px;
  border: 0;
  border-radius: 0;
  background: none;
  list-style: none;
  font: 400 12.5px/1.5 Poppins, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: var(--rd-muted);
  white-space: nowrap;
}
body.rd-ui .wrap-breadcrumb .container, body.rd-ui .crumbs {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rd-border) transparent;
}
body.rd-ui.rd-legacy .wrap-breadcrumb .container { padding-left: 20px; padding-right: 20px; }
body.rd-ui .breadcrumb li,
body.rd-ui .crumbs li { display: inline-flex; align-items: center; float: none; gap: 0; margin: 0; padding: 0; border: 0; color: inherit; }
body.rd-ui .breadcrumb li::after { display: none; }
body.rd-ui .breadcrumb li::before { display: none; }
body.rd-ui .breadcrumb li + li::before,
body.rd-ui .crumbs li + li::before { display: inline; content: "/"; position: static; margin: 0 6px 0 0; padding: 0; border: 0; color: #a1a1a1; transform: none; }
body.rd-ui .breadcrumb a, body.rd-ui .crumbs a { padding: 0; color: inherit; text-decoration: none; text-transform: none; font: inherit; }
body.rd-ui .breadcrumb a::after, body.rd-ui .breadcrumb a::before { display: none; }
body.rd-ui .breadcrumb [aria-current], body.rd-ui .crumbs [aria-current] { color: var(--rd-ink); }
body.rd-ui .breadcrumb a:hover, body.rd-ui .crumbs a:hover { color: var(--rd-amber-text); }
body.rd-ui .pagination { display: flex; flex-wrap: wrap; gap: 5px; }
body.rd-ui .pagination > li > :is(a, span) { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; margin: 0; border: 1px solid var(--rd-border); border-radius: 7px; background: #fff; color: var(--rd-ink); }
body.rd-ui .pagination > .active > span { background: var(--rd-amber); border-color: var(--rd-amber); color: #000; }

/* Form controls and compact panels use the same geometry as the new storefront. */
body.rd-ui.rd-legacy #content .form-control { min-height: 46px; height: auto; border: 1px solid var(--rd-border); border-radius: 7px; box-shadow: none; font-size: 16px; line-height: 1.5; }
body.rd-ui.rd-legacy #content textarea.form-control { min-height: 120px; }
body.rd-ui.rd-legacy #content .form-control:focus { border-color: var(--rd-amber-dark); box-shadow: 0 0 0 2px rgba(245,175,0,.15); }
body.rd-ui.rd-legacy #content :is(.well, .panel) { border-color: var(--rd-border-soft); border-radius: 8px; box-shadow: none; background: #fff; }
body.rd-ui.rd-legacy #content .panel-heading { border-color: var(--rd-border-soft); border-radius: 8px 8px 0 0; background: #f3f3f5; }
body.rd-ui.rd-legacy :is(#content, .dl_theme) h1 { font-size: 22px; line-height: 1.2; font-weight: 700; text-transform: none; letter-spacing: 0; margin-top: 12px; }
body.rd-ui.rd-legacy :is(#content, #column-left, #column-right, .dl_theme) :is(h2, h3, h4, h5, .list-group-item) { text-transform: none; letter-spacing: 0; }
body.rd-ui.rd-legacy #content .buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
body.rd-ui.rd-legacy #content .buttons::before, body.rd-ui.rd-legacy #content .buttons::after { display: none; }
body.rd-ui.rd-legacy #content .buttons > .pull-right { margin-left: auto; float: none; max-width: 100%; }
body.rd-ui.rd-legacy #content .buttons > .pull-left { float: none; max-width: 100%; }
@media (min-width:1000px) {
  body.rd-ui.rd-legacy :is(#content, .dl_theme) h1 { font-size: 28px; }
}
@media (max-width:479px) {
  body.rd-ui.rd-legacy #content .buttons > :is(.pull-right, .pull-left) { width: 100%; }
  body.rd-ui.rd-legacy #content .buttons > :is(.pull-right, .pull-left) > .btn { width: 100%; }
}
@media (max-height:480px) {
  .rd-ui .bar, .rd-ui .buybox { position: relative; top: 0; }
}
