/*=================================================
  *  BREAKPOINTS
  =================================================== */
/*=======================================
* MEDIA MAX
*=======================================*/
/*=======================================
* MEDIA MIN
*=======================================*/
/*=======================================
* MEDIA ONLY
*=======================================*/
/*=======================================
* MEDIA RANGE
*=======================================*/
.rt-slidepanel {
  position: fixed;
  z-index: 9999;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}
.rt-slidepanel__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--wp--custom--color--overlay, rgba(0, 0, 0, 0.8));
  backdrop-filter: blur(10px) saturate(130%);
  opacity: 0;
  cursor: pointer;
}
.rt-slidepanel__inner {
  position: absolute;
  z-index: 10;
  background-color: var(--wp--preset--color--background);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.15);
  top: 0;
  right: 0;
  bottom: 0;
  width: calc(100% - 50px);
  height: 100%;
  transform: translateX(100%);
}
@media screen and (min-width: 576px) {
  .rt-slidepanel__inner {
    width: 400px;
  }
}
.rt-slidepanel {
  /**
   * States
   */
}
.rt-slidepanel.is-active {
  visibility: visible;
  pointer-events: auto;
}
.rt-slidepanel.is-active .rt-slidepanel__overlay {
  animation: rtFadeIn 0.4s ease forwards;
}
.rt-slidepanel.is-active .rt-slidepanel__inner {
  animation: rtSlideLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.rt-slidepanel.is-active.is-slidepanel-left .rt-slidepanel__inner {
  animation: rtSlideRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.rt-slidepanel.is-active.is-slidepanel-top .rt-slidepanel__inner {
  animation: rtSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.rt-slidepanel.is-active.is-slidepanel-bottom .rt-slidepanel__inner {
  animation: rtSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.rt-slidepanel.is-slidepanel-out {
  visibility: visible;
  pointer-events: none;
}
.rt-slidepanel.is-slidepanel-out .rt-slidepanel__overlay {
  animation: rtFadeOut 0.4s ease forwards;
}
.rt-slidepanel.is-slidepanel-out .rt-slidepanel__inner {
  animation: rtSlideOutRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.rt-slidepanel.is-slidepanel-out.is-slidepanel-left .rt-slidepanel__inner {
  animation: rtSlideOutLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.rt-slidepanel.is-slidepanel-out.is-slidepanel-top .rt-slidepanel__inner {
  animation: rtSlideOutUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.rt-slidepanel.is-slidepanel-out.is-slidepanel-bottom .rt-slidepanel__inner {
  animation: rtSlideOutDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.rt-slidepanel {
  /**
   * Directions Overrides
   */
}
.rt-slidepanel.is-slidepanel-left .rt-slidepanel__inner {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}
.rt-slidepanel.is-slidepanel-top .rt-slidepanel__inner {
  bottom: auto;
  top: 0;
  width: 100%;
  height: auto;
  max-height: 80vh;
  transform: translateY(-100%);
  border-bottom-left-radius: var(--wp--custom--border-radius--medium, 24px);
  border-bottom-right-radius: var(--wp--custom--border-radius--medium, 24px);
}
.rt-slidepanel.is-slidepanel-bottom .rt-slidepanel__inner {
  top: auto;
  bottom: 0;
  width: 100%;
  height: auto;
  max-height: 80vh;
  transform: translateY(100%);
  border-top-left-radius: var(--wp--custom--border-radius--medium, 24px);
  border-top-right-radius: var(--wp--custom--border-radius--medium, 24px);
}
.rt-slidepanel {
  /**
   * Content Structure
   */
}
.rt-slidepanel__wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.rt-slidepanel__header {
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--wp--preset--color--outline);
}
.rt-slidepanel__title {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.rt-slidepanel__body {
  padding: var(--wp--preset--spacing--40);
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--wp--preset--color--outline) transparent;
}
.rt-slidepanel__footer {
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  border-top: 1px solid var(--wp--preset--color--outline);
}
.rt-slidepanel__close {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 12px;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--wp--preset--color--heading);
}
.rt-slidepanel__close .rt-icon,
.rt-slidepanel__close svg,
.rt-slidepanel__close i {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}
.rt-slidepanel__close:hover .rt-icon,
.rt-slidepanel__close:hover svg,
.rt-slidepanel__close:hover i {
  transform: rotate(90deg);
}
.rt-slidepanel__close:active {
  transform: scale(0.9);
}

body.is-slidepanel-active {
  overflow: hidden;
}