.theme-rp-search,
.theme-rp-search * {
  box-sizing: border-box;
}

.theme-rp-search {
  --search-paper: var(--e-global-color-rppaper);
  --search-soft: var(--e-global-color-rpsoft);
  --search-text: var(--e-global-color-text);
  --search-muted: var(--e-global-color-rpink2);
  --search-accent: var(--e-global-color-primary);
  --search-line: var(--e-global-color-rpline);
  /* --search-body: var(--e-global-typography-text-font-family, "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif); */
  /* --search-display: var(--e-global-typography-primary-font-family, "Newsreader", Georgia, serif); */
  color: var(--search-text);
  font-family: var(--e-global-typography-7beb67f-font-family), Sans-serif;
  ;
  display: contents;
}

.theme-rp-search .theme-rp-search-trigger {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.theme-rp-search-trigger svg,
.theme-rp-search-field svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-rp-search-panel {
  --search-paper: var(--e-global-color-rppaper);
  --search-soft: var(--e-global-color-rpsoft);
  --search-text: var(--e-global-color-text);
  --search-muted: var(--e-global-color-rpink2);
  --search-accent: var(--e-global-color-primary);
  --search-line: var(--e-global-color-rpline);
  --search-body: var(--e-global-typography-7beb67f-font-family), Sans-serif;
  ;
  --search-display: var(--e-global-typography-62e63cc-font-family), Sans-serif;
  ;
  --bs-offcanvas-width: min(920px, 48vw);
  --bs-offcanvas-height: 100vh;
  --bs-offcanvas-bg: var(--search-paper);
  --bs-offcanvas-color: var(--search-text);
  --bs-offcanvas-border-width: 0;
  --bs-offcanvas-border-color: transparent;
  --bs-offcanvas-box-shadow: -20px 0 80px rgba(0, 0, 0, .28);
  width: min(565px, 48vw);
  border: 0;
  background-color: var(--search-paper);
  color: var(--search-text);
  font-family: var(--e-global-typography-7beb67f-font-family), Sans-serif;
  ;
}

.theme-rp-search-panel.show:after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #1B100A80;
  backdrop-filter: blur(2px) !important;
  opacity: 1;
}

.theme-rp-search-trigger--mb {
  display: none;
}

body:has(.theme-rp-search-panel.show).offcanvas-backdrop::before {
  background-color: transparent !important;
  backdrop-filter: unset;
  z-index: 99;
}

body:has(.theme-rp-search-panel.show) .scroll-progress-container {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease 0s, visibility 0s linear 0s;
}

.theme-rp-search-detail,
.theme-rp-search-detail * {
  box-sizing: border-box;
}

.offcanvas-backdrop.theme-rp-search-backdrop.show {
  background-color: rgba(15, 9, 5, .76);
  opacity: 1;
  backdrop-filter: blur(6px);
}

.theme-rp-search-panel-inner {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 100vh;
  flex-direction: column;
  background-color: var(--e-global-color-rppaper);
}

.theme-rp-search-top {
  display: flex;
  min-height: 62px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 15px;
  border-bottom: 1px solid var(--search-line);
}

.theme-rp-search-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--search-soft);
  color: var(--search-text);
  font-size: .9rem;
  font-weight: 700;
}

/* body:has(.theme-rp-search-panel.show) {} */

.theme-rp-search-panel .theme-rp-search-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--search-line);
  border-radius: 50%;
  background: transparent;
  color: var(--search-text);
  cursor: pointer;
}

.theme-rp-search-panel .theme-rp-search-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.theme-rp-search-content,
.theme-rp-search-detail-content {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 22px 22px 32px;
  scrollbar-color: var(--e-global-color-rpink2) transparent;
  scrollbar-width: thin;
}

.theme-rp-search-field {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1.5px solid #3a2c22;
  border-radius: 999px;
  color: var(--search-text);
}

.theme-rp-search-field:focus-within {
  outline: 0px;
  border: 1.5px solid #ee9447;

}

.theme-rp-search-field svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.theme-rp-search-field input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--search-text);
  font: 400 1rem/1.3 var(--e-global-typography-7beb67f-font-family), Sans-serif;
  ;
  box-shadow: none;
}

.theme-rp-search-field input::placeholder {
  color: #a89586;
  opacity: 1;
}

.theme-rp-search-field input::-webkit-search-cancel-button {
  cursor: pointer;
}

.theme-rp-search-results {
  margin-top: 20px;
}

.theme-rp-search-panel .theme-rp-search-result {
  appearance: none;
  display: block;
  width: 100%;
  padding: 14px 4px 16px;
  border: 0;
  border-bottom: 1px solid var(--search-line);
  border-radius: 0;
  background: transparent;
  color: var(--search-text);
  font: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  box-shadow: none;
  cursor: pointer;
}

.theme-rp-search-panel .theme-rp-search-result:hover,
.theme-rp-search-panel .theme-rp-search-result:focus-visible {
  color: var(--search-text);
  background: rgba(255, 255, 255, .025);
  text-decoration: none;
}

.theme-rp-search-panel .theme-rp-search-result:focus-visible,
.theme-rp-search .theme-rp-search-trigger:focus-visible,
.theme-rp-search-panel .theme-rp-search-close:focus-visible {
  outline: 2px solid var(--search-accent);
  outline-offset: 3px;
}

.theme-rp-search-result-label {
  display: block;
  margin-bottom: 5px;
  color: var(--search-accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.theme-rp-search-result-title {
  display: block;
  color: var(--search-text);
  font-size: clamp(17px, .98rem + .2vw, 19px);
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.theme-rp-search-result-description {
  display: block;
  margin-top: 5px;
  color: var(--search-muted);
  font-size: .94rem;
  font-weight: 400;
  line-height: 1.55;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-rp-search-empty {
  margin: 24px 4px;
  color: var(--search-muted);
  font-size: .95rem;
  line-height: 1.6;
}

.theme-rp-search-email {
  color: var(--search-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}


.theme-rp-search-detail {
  z-index: 9999;
}

.theme-rp-search-detail .theme-rp-search-chip {
  gap: 9px;
  background: var(--search-soft);
  /* background: color-mix(in srgb, var(--search-category, var(--search-accent)) 18%, var(--search-paper)); */
  background-color: var(--search-category-wash);
  color: var(--search-text);
}

.theme-rp-search-detail .theme-rp-search-chip::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--search-category, var(--search-accent));
  content: "";
}

.theme-rp-search-detail-content {
  flex: 1 1 auto;
  padding: 28px 24px 34px;
}

.theme-rp-search-detail-content h2 {
  margin: 0 0 22px;
  color: var(--search-accent);
  font-family: var(--e-global-typography-62e63cc-font-family), Sans-serif;
  font-size: clamp(1.9rem, 1.55rem + 1.8vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: uppercase;
}

.theme-rp-search-when {
  margin: 0 0 22px;
  color: var(--search-category, var(--search-accent));
  font-size: clamp(17px, .98rem + .2vw, 19px);
  font-weight: 700;
  line-height: 1.45;
}

.theme-rp-search-when:empty {
  display: none;
}

.theme-rp-search-detail-copy {
  color: var(--search-text);
  font-size: clamp(17px, .98rem + .2vw, 19px);
  line-height: 1.6;

  p {
    margin-bottom: 15px;
  }
}

.theme-rp-search-detail-copy> :first-child {
  margin-top: 0;
  padding-top: 20px;
}

.theme-rp-search-detail-copy a {
  color: var(--search-category, var(--search-accent));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.theme-rp-search-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 22px 20px;
  border-top: 1px solid var(--search-line);
  background: var(--search-paper);
}

.theme-rp-search-detail .theme-rp-search-action {
  appearance: none;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--search-accent);
  border-radius: 999px;
  background: transparent;
  color: var(--search-accent);
  font: 700 .88rem/1.2 var(--e-global-typography-7beb67f-font-family), Sans-serif;
  ;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
}

.theme-rp-search-detail .theme-rp-search-action-primary {
  background: var(--e-global-color-secondary);
  color: var(--e-global-color-rpbtntext);
}

.theme-rp-search-detail .theme-rp-search-action:hover {
  background: rgba(240, 164, 107, .1);
  color: var(--search-accent);
}

.theme-rp-search-detail .theme-rp-search-action-primary:hover {
  background: var(--search-accent);
  color: var(--e-global-color-rpbtntext);
}

.theme-rp-search-status {
  flex: 0 0 auto;
  margin: 0;
  /* padding: 0 22px 12px; */
  /* color: var(--search-muted); */
  font-size: .8rem;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateY(-50%);
  background: var(--e-global-color-text);
  padding: 10px 29px;
  font-size: var(--e-global-typography-4c2b743-font-size);
  border-radius: 999px;
  color: var(--e-global-color-rppaper);
  font-weight: 700;
}

.theme-rp-search-status:empty {
  display: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 767px) {
  .theme-rp-search-panel {
    --bs-offcanvas-width: 100vw;
    width: 100vw;
  }

  .theme-rp-search-top {
    min-height: 58px;
    padding: 9px 16px;
  }

  .theme-rp-search-content,
  .theme-rp-search-detail-content {
    padding: 22px 18px 28px;
  }

  .theme-rp-search-field {
    min-height: 48px;
    padding-inline: 14px;
  }

  .theme-rp-search-field input {
    height: 46px;
    font-size: .94rem;
  }

  .theme-rp-search-panel .theme-rp-search-result {
    padding-block: 13px 15px;
  }

  .theme-rp-search-detail-content h2 {
    margin-bottom: 22px;
    font-size: clamp(34px, 9vw, 54px);
  }

  .theme-rp-search-actions {
    gap: 8px;
    padding: 12px 16px 18px;
  }

  .theme-rp-search-status {
    padding-inline: 16px;
  }

  .theme-rp-search-detail .theme-rp-search-action {
    flex: 1 1 auto;
    padding-inline: 13px;
    font-size: .82rem;
  }
}

.rp-vmore {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: var(--e-global-color-rpbtntext) !important;
  font-family: var(--e-global-typography-accent-font-family) !important;
  font-size: var(--e-global-typography-2abaffc-font-size) !important;
  text-transform: none !important;
  font-weight: 700 !important;
  padding: 10px 15px !important;
  letter-spacing: 0px !important;
  line-height: 1.05 !important;
  border: 1px solid var(--e-global-color-accent) !important;
  border-radius: 999px !important;
  transition: all 0.15s ease !important;
  background-color: var(--e-global-color-accent) !important;
  margin-top: 25px;

  &:hover {
    transform: translateY(-1px) !important;
  }
}