/* Additive official CSS for first-party cookie consent.
   Interaction and structure follow Haworth’s Cookie Settings pattern
   (full-width bottom bar, Show details preference center, footer re-entry).
   The look stays Rhino: Klavika, footer #1b1d1f and site blue #008dff.
   Official common.css / neiye.css are not edited. */

.rhino-cc-bar,
.rhino-cc-panel,
.rhino-cc-overlay,
.rhino-privacy-doc,
.rhino-preview-sim {
  font-family: klavika_regular, Arial, Helvetica, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  box-sizing: border-box;
}

.rhino-cc-bar *,
.rhino-cc-panel *,
.rhino-cc-overlay *,
.rhino-preview-sim * {
  box-sizing: border-box;
}

.rhino-cc-overlay[hidden],
.rhino-cc-bar[hidden],
.rhino-cc-panel[hidden],
.rhino-cc-tabpanel[hidden] {
  display: none !important;
}

/* Overlay is used only behind the preference center. Kept very light so
   the page stays readable, close to Haworth’s undimmed panel. */
.rhino-cc-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 100001;
  background: rgba(27, 29, 31, 0.18);
}

/* ---- First-visit / re-entry bottom bar. No page dim. ---- */
.rhino-cc-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  background: #1b1d1f;
  color: #fff;
  border: 0;
  border-radius: 0;
  padding: 20px 28px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 18px rgba(27, 29, 31, 0.22);
}

.rhino-cc-bar-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rhino-cc-title {
  margin: 0 0 8px;
  padding: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: bold;
  color: #fff;
  text-align: left;
}

.rhino-cc-body {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: #e6e7e8;
  text-align: left;
  max-width: 72rem;
}

.rhino-cc-body a,
.rhino-cc-body a:visited {
  color: #fff;
  text-decoration: underline;
}

.rhino-cc-body a:hover,
.rhino-cc-body a:focus {
  color: #008dff;
}

.rhino-cc-bar-controls {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px 28px;
}

.rhino-cc-inline-toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.rhino-cc-inline-toggle .rhino-cc-cat-label {
  font-size: 14px;
  line-height: 1.2;
  color: #fff;
  font-weight: normal;
}

.rhino-cc-show-details {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.2;
  color: #fff;
  background: transparent;
  border: 0;
  padding: 0 0 6px;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  align-self: flex-end;
}

.rhino-cc-show-details:hover,
.rhino-cc-show-details:focus {
  color: #008dff;
  outline: none;
}

.rhino-cc-show-details:focus-visible {
  outline: 2px solid #008dff;
  outline-offset: 3px;
}

.rhino-cc-show-details .rhino-cc-chevron {
  display: inline-block;
  margin-left: 6px;
  font-style: normal;
}

/* Right-hand stacked actions on the bar */
.rhino-cc-bar-actions {
  flex: 0 0 260px;
  width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* ---- Preference center ---- */
.rhino-cc-panel {
  position: fixed;
  z-index: 100002;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1040px, calc(100vw - 48px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #1b1d1f;
  color: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: 0 12px 48px rgba(27, 29, 31, 0.45);
  padding: 0 0 20px;
}

.rhino-cc-tabs {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  margin: 0;
  padding: 0 8px;
}

.rhino-cc-tab {
  appearance: none;
  -webkit-appearance: none;
  flex: 1 1 0;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  margin: 0;
  padding: 16px 12px 14px;
  cursor: pointer;
  text-align: center;
}

.rhino-cc-tab:hover,
.rhino-cc-tab:focus {
  color: #fff;
  outline: none;
}

.rhino-cc-tab:focus-visible {
  outline: 2px solid #008dff;
  outline-offset: -2px;
}

.rhino-cc-tab[aria-selected="true"] {
  border-bottom-color: #008dff;
  font-weight: bold;
}

.rhino-cc-tabpanel {
  padding: 24px 28px 8px;
}

.rhino-cc-consent-tiles {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  margin: 8px 0 0;
}

.rhino-cc-tile {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
}

.rhino-cc-tile:first-child {
  border-left: 0;
}

.rhino-cc-tile .rhino-cc-cat-label {
  font-size: 16px;
  line-height: 1.3;
  color: #fff;
  font-weight: normal;
}

.rhino-cc-details-list {
  margin: 0;
  padding: 0;
}

.rhino-cc-detail {
  padding: 18px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.rhino-cc-detail:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.rhino-cc-detail-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rhino-cc-detail .rhino-cc-cat-label {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: bold;
  color: #fff;
}

.rhino-cc-detail p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: #e6e7e8;
  text-align: left;
  max-width: 46rem;
}

.rhino-cc-panel-actions {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 28px 0;
}

/* ---- Buttons ---- */
.rhino-cc-btn {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  margin: 0;
  padding: 12px 14px;
  text-align: center;
  min-height: 46px;
}

.rhino-cc-btn:focus {
  outline: none;
}

.rhino-cc-btn:focus-visible {
  outline: 2px solid #008dff;
  outline-offset: 2px;
}

.rhino-cc-btn-secondary {
  flex: 1 1 0;
  width: 100%;
  background: #fff;
  color: #1b1d1f;
  border: 1px solid #fff;
}

.rhino-cc-btn-secondary:hover,
.rhino-cc-btn-secondary:focus {
  background: #f2f4f6;
  border-color: #f2f4f6;
  color: #1b1d1f;
}

.rhino-cc-btn-primary {
  flex: 1 1 0;
  width: 100%;
  background: #008dff;
  color: #fff;
  border: 1px solid #008dff;
}

.rhino-cc-btn-primary:hover,
.rhino-cc-btn-primary:focus {
  background: #0076d6;
  border-color: #0076d6;
  color: #fff;
}

/* ---- Pill switches: blue on, grey off, grey disabled Necessary ---- */
.rhino-cc-switch {
  flex: 0 0 auto;
  position: relative;
  display: inline-block;
  width: 46px;
  height: 28px;
  margin: 0;
  cursor: pointer;
}

.rhino-cc-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rhino-cc-switch-ui {
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 28px;
  border-radius: 14px;
  background: #6b7178;
  transition: background 0.15s ease;
}

.rhino-cc-switch-ui:after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 3px rgba(27, 29, 31, 0.3);
  transition: left 0.15s ease;
}

.rhino-cc-switch input:checked + .rhino-cc-switch-ui {
  background: #008dff;
}

.rhino-cc-switch input:checked + .rhino-cc-switch-ui:after {
  left: 20px;
}

.rhino-cc-switch input:disabled + .rhino-cc-switch-ui,
.rhino-cc-switch.is-locked .rhino-cc-switch-ui {
  background: #c8ccd0;
  cursor: default;
}

.rhino-cc-switch input:disabled + .rhino-cc-switch-ui:after,
.rhino-cc-switch.is-locked .rhino-cc-switch-ui:after {
  left: 20px;
}

.rhino-cc-switch input:focus + .rhino-cc-switch-ui,
.rhino-cc-switch input:focus-visible + .rhino-cc-switch-ui {
  outline: 2px solid #008dff;
  outline-offset: 2px;
}

.rhino-cc-switch.is-locked {
  cursor: default;
}

/* ---- Privacy article typography (unchanged intent) ---- */
.rhino-privacy-doc {
  max-width: 800px;
  margin: 0 auto 40px;
  color: #0C1217;
  font-size: 15px;
  line-height: 1.7;
  text-align: justify;
}

.rhino-privacy-doc h2 {
  margin: 32px 0 12px;
  padding: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: bold;
  color: #000;
  text-align: left;
}

.rhino-privacy-doc h3 {
  margin: 20px 0 8px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: bold;
  color: #000;
  text-align: left;
}

.rhino-privacy-doc p,
.rhino-privacy-doc ul,
.rhino-privacy-doc ol {
  margin: 0 0 12px;
}

.rhino-privacy-doc ul,
.rhino-privacy-doc ol {
  padding-left: 22px;
}

.rhino-privacy-doc li {
  margin: 0 0 6px;
}

.rhino-privacy-doc a {
  color: #008dff;
  text-decoration: underline;
}

.rhino-privacy-updated {
  color: #555;
  font-size: 14px;
  margin: 0 0 20px;
  text-align: left;
}

.rhino-privacy-office {
  margin: 0 0 18px;
  padding: 12px 0 0;
  border-top: 1px solid #dfdfdf;
  text-align: left;
}

.rhino-privacy-office p {
  margin: 0 0 4px;
}

.rhino-privacy-office .rhino-privacy-office-name {
  font-weight: bold;
  margin-bottom: 6px;
}

.rhino-privacy-note {
  font-size: 13px;
  color: #555;
}

/* ---- Preview-only inquiry success simulator ---- */
.rhino-preview-sim {
  max-width: 800px;
  margin: 24px auto 8px;
  padding: 12px 16px;
  background: #f4f1e8;
  border: 1px dashed #8a6d3b;
  color: #4a4033;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.rhino-preview-sim p {
  margin: 0 0 8px;
}

.rhino-preview-sim button {
  display: inline-block;
  margin: 0 8px 0 0;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.3;
  color: #fff;
  background: #1b1d1f;
  border: 1px solid #1b1d1f;
  cursor: pointer;
  border-radius: 0;
}

.rhino-preview-sim button:hover,
.rhino-preview-sim button:focus {
  background: #008dff;
  border-color: #008dff;
  outline: none;
}

.rhino-preview-sim-status {
  margin-top: 8px;
  font-size: 13px;
}

@media (max-width: 899px) {
  .rhino-cc-bar {
    flex-direction: column;
    gap: 16px;
    padding: 18px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .rhino-cc-bar-actions {
    flex: 1 1 auto;
    width: 100%;
    flex-direction: row;
  }
  .rhino-cc-panel {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }
  .rhino-cc-tabpanel {
    padding: 20px 16px 8px;
  }
  .rhino-cc-panel-actions {
    margin: 16px 16px 0;
  }
}

@media (max-width: 599px) {
  .rhino-cc-title {
    font-size: 17px;
  }
  .rhino-cc-body {
    font-size: 15px;
  }
  .rhino-cc-bar-actions,
  .rhino-cc-panel-actions {
    flex-direction: column;
  }
  /* Keep Allow All at the top when the panel actions stack. */
  .rhino-cc-panel-actions {
    flex-direction: column-reverse;
  }
  .rhino-cc-btn {
    width: 100%;
  }
  .rhino-cc-consent-tiles {
    flex-direction: column;
    border-left: 0;
  }
  .rhino-cc-tile {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 14px 0;
    text-align: left;
  }
  .rhino-cc-tile:first-child {
    border-top: 0;
  }
  .rhino-cc-bar-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .rhino-cc-inline-toggle {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .rhino-cc-show-details {
    align-self: flex-start;
    padding-bottom: 0;
  }
}
