/**
 * Caracal Filters Modal Styles
 *
 * @package HelloElementorChildCaracal
 */

:root {
  --caracal-skew: -14deg;
  --caracal-line: rgba(0, 0, 0, 0.22);
}

/* =========================
   FILTER MODAL SHELL
========================= */
.caracal-filters-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.caracal-filters-modal.caracal-is-open {
  display: block;
}

.caracal-mobile-close{
  display: none;
}

.caracal-modal-shell {
  position: absolute;
  inset: 0;
  display: flex;
}

.caracal-modal-left {
  flex: 1 1 62%;
  position: relative;
  background: rgba(0, 0, 0, 0.36);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.caracal-modal-left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

/* Desktop close (tilted white) */
.caracal-close-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 60px;
  height: 46px;
  border: 0;
  background: #fff;
  cursor: pointer;
  padding-left: 5px;
  clip-path: polygon(19% 0, 100% 0, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.caracal-close-btn span {
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
  color: #000;
  font-family: var(--font-medium);
}

/* Right panel */
.caracal-modal-right {
  flex: 0 0 560px;
  max-width: 560px;
  background: #fff;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  position: relative;
  overflow: hidden;
  justify-content: flex-start;
}

/* Form fills panel and enables inner scroll */
.caracal-modal-right .caracal-filters-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* =========================
   MOBILE HEADER
========================= */
.caracal-mobile-brandbar {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.caracal-mobile-announce,
.caracal-mobile-brandbar {
  display: none;
}

.caracal-mobile-announce {
  background: #000;
  color: #fff;
  text-transform: uppercase;
  font-size: 13px;
  font-family: var(--font-medium);
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 10px 0;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.caracal-announce-track {
  display: inline-flex;
  animation: caracal-marquee 20s linear infinite;
}

.caracal-announce-track span {
  padding-right: 40px;
}

@keyframes caracal-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.caracal-brand-logo {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
}

.caracal-mobile-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  color: #000;
  padding: 0 4px;
  font-family: var(--font-regular);
  opacity: 0.95;
  display: none;
}

/* =========================
   FILTERS CONTENT
========================= */
.caracal-filters-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px 0 10px;
}

.caracal-filters-title {
  font-family: var(--font-boldit);
  font-style: italic;
  text-transform: uppercase;
  font-size: 35px;
  line-height: 1;
}

.caracal-content-pad {
  padding: 34px 32px 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.caracal-filters-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}

.caracal-acc {
  border-bottom: 1px solid var(--caracal-line);
  padding: 12px 0;
}

.caracal-acc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.caracal-acc-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.caracal-acc-label .caracal-small {
  font-size: 13px;
  color: #000;
  opacity: 0.9;
  text-transform: uppercase;
  font-family: var(--font-medium);
  letter-spacing: 0.4px;
  line-height: 1.1;
}

.caracal-acc-label .caracal-big {
  font-size: 15px;
  color: #000;
  text-transform: uppercase;
  font-family: var(--font-medium);
  font-weight: 500;
  letter-spacing: 0.35px;
}

/* plus / minus */
.caracal-acc-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-medium);
  font-size: 18px;
  line-height: 1;
  color: #000;
  opacity: 0.9;
}

.caracal-acc-body {
  display: none;
  padding-top: 12px;
}

.caracal-acc.caracal-open .caracal-acc-body {
  display: block;
}

.caracal-acc.caracal-open .caracal-acc-icon {
  font-size: 16px;
}

/* Sort by radios */
.caracal-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-size: 14px;
  color: #000;
  font-family: var(--font-regular);
  cursor: pointer;
}

/* Custom radios/checkboxes */
.caracal-opt input {
  width: 12px;
  height: 12px;
  accent-color: #000;
  cursor: pointer;
}

/* Size header row with "What's my size?" */
.caracal-size-head {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: space-between;
}

.caracal-size-help {
  font-size: 11px;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: var(--font-regular);
  opacity: 0.9;
  cursor: pointer;
}

.caracal-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-left: 15px;
  margin-right: 15px;
}

.caracal-chip {
  border: 1px solid rgba(0, 0, 0, 0.45);
  height: 32px;
  transform: skewX(var(--caracal-skew));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  padding: 0;
}

.caracal-chip span {
  transform: skewX(calc(var(--caracal-skew) * -1));
  font-size: 11px;
  font-family: var(--font-medium);
  text-transform: uppercase;
}

.caracal-chip.caracal-is-active {
  background: #000;
  border-color: #000;
  color: #fff;
}

.caracal-chip.caracal-is-active span {
  color: #fff;
}

/* =========================
   BOTTOM ACTION BUTTONS
========================= */
.caracal-actions {
  padding: 20px 25px 24px;
  display: flex !important;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: auto;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 100;
}

.caracal-btn-outline {
  height: 44px;
  flex: 1;
  min-width: 0;
  transform: skewX(var(--caracal-skew));
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-medium);
  text-transform: uppercase;
  border: 1.5px solid #000;
  background: #fff;
  color: #000;
  padding: 0;
  transition: opacity 0.2s;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 101;
}

.caracal-btn-outline:hover {
  opacity: 0.8;
}

.caracal-btn-outline span {
  transform: skewX(calc(var(--caracal-skew) * -1));
  display: inline-block;
}

.caracal-btn-solid {
  height: 44px;
  flex: 1;
  min-width: 0;
  transform: skewX(var(--caracal-skew));
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-medium);
  text-transform: uppercase;
  border: 1.5px solid #000;
  background: #000;
  color: #fff;
  padding: 0;
  transition: opacity 0.2s;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 101;
}

.caracal-btn-solid:hover {
  opacity: 0.9;
}

.caracal-btn-solid span {
  transform: skewX(calc(var(--caracal-skew) * -1));
  display: inline-block;
}

/* Filter button trigger - Simple text style */
.caracal-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-medium);
  font-size: 12px;
  color: #000;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  padding: 0;
}

.caracal-filter-trigger:hover {
  opacity: 0.8;
}

/* Filter button trigger - Solid button style (like original open-btn) */
.caracal-filter-trigger-btn {
  margin-top: 22px;
  width: 220px;
  height: 44px;
  border: 0;
  background: #000;
  color: #fff;
  cursor: pointer;
  transform: skewX(var(--caracal-skew));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.caracal-filter-trigger-btn span {
  transform: skewX(calc(var(--caracal-skew) * -1));
  font-family: var(--font-medium);
  font-size: 12px;
  text-transform: uppercase;
}

/* =========================
   FIND MY SIZE (INNER MODAL)
   - opens on top of Filters modal
========================= */
/* =========================
   FIND YOUR SIZE (MATCH DESIGN)
========================= */
.caracal-size-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10050; /* above filters modal */
}

.caracal-size-modal.caracal-is-open {
  display: block;
}

.caracal-size-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Center white panel (desktop) */
.caracal-size-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(660px, calc(100% - 80px));
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 22px 60px rgba(0,0,0,0.28);
  overflow: visible;
  padding: 54px 64px 56px;
}

/* Desktop clipped close tab on LEFT (like screenshot) */
/* Desktop clipped close tab on LEFT (align to top of white panel) */
.caracal-size-close-tab{
  position: absolute;
  left: -79px;
  top: 0px;
  width: 64px;
  height: 46px;
  background: #fff;
  border: 0;
  cursor: pointer;

  /* ✅ right edge straight, only left has the notch */
  clip-path: polygon(
    0 0,      /* top-left */
    100% 0,   /* top-right (straight) */
    100% 100%,/* bottom-right (straight) */
    22% 100%, /* bottom inner */
    0 70%     /* notch point */
  );

  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}
.caracal-size-close-tab::before{
  content:"";
  position:absolute;
  inset:0;
  background:#fff; /* ✅ clip color */
  clip-path: inherit; /* uses same clip-path */
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}

.caracal-size-close-tab span{
  font-size: 22px;
  line-height: 1;
  color: #000;
  font-family: var(--font-medium);
}

/* Title (big, centered) */
.caracal-size-title {
  margin: 0 0 28px;
  text-align: center;
  font-family: var(--font-boldit);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-size: 34px;
  line-height: 1;
  color: #000;
}

/* Table typography like screenshot */
.caracal-size-table-wrap {
  width: 100%;
}

.caracal-size-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.caracal-size-table thead th {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
  font-family: var(--font-medium);
  font-weight: 600;
  padding: 10px 8px 12px;
}

.caracal-size-table tbody td {
  text-align: center;
  font-size: 13px;
  color: rgba(0,0,0,0.85);
  font-family: var(--font-regular);
  padding: 14px 8px;
}

/* no borders (clean look) */
.caracal-size-table th,
.caracal-size-table td {
  border: 0;
}

/* Mobile header (logo + X) like screenshot */
.caracal-size-mobile-top {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
}

.caracal-size-mobile-x {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: #000;
  padding: 2px 4px;
  font-family: var(--font-regular);
}

/* Desktop shows combined table, hides mobile split */
.caracal-size-desktop { display: block; }
.caracal-size-mobile  { display: none; }

/* =========================
   MOBILE = full height sheet
========================= */
@media (max-width: 900px) {
  .caracal-size-panel {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100vh;
    padding: 0;
    box-shadow: none;
    overflow: auto;
  }
  .caracal-size-table thead th {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
  font-family: var(--font-medium);
  font-weight: 600;
  padding: 10px 8px 12px;
}
.caracal-size-table tbody td{
    font-size: 11px;
}


  .caracal-size-overlay {
    background: rgba(255,255,255,1);   /* looks like a sheet, not a centered box */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .caracal-size-close-tab {
    display: none; /* desktop tab hidden */
  }

  .caracal-size-mobile-top {
    display: flex;
    margin-bottom: 30px;
  }

  .caracal-size-title {
    text-align: left;
    font-size: 22px;
    margin: 10px 18px 18px;
  }

  .caracal-size-table-wrap {
    padding: 0 18px 18px;
  }

  .caracal-size-table thead th,
  .caracal-size-table tbody td {
    text-align: center; /* mobile screenshot is left-aligned */
  }

  .caracal-size-desktop { display: none; }
  .caracal-size-mobile  { display: block; }
}





/* Desktop close (tilted white tab like screenshot) */
#caracalLeftBackdrop .caracal-close-btn{
  position: absolute;
  top: 22px;
  right: 22px;

  width: 78px;
  height: 46px;

  border: 0;
  padding: 0;
  cursor: pointer;

  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  z-index: 9999;

  /* ✅ same shape: LEFT angled, RIGHT straight */
  clip-path: polygon(26px 0, 100% 0, 100% 100%, 0 100%);

  display: grid;
  place-items: center;
}

/* make sure X is visible & centered */
#caracalLeftBackdrop .caracal-close-btn span{
  display: block;
  font-size: 30px;
  line-height: 1;
  color: #000;
  font-family: var(--font-medium);
  transform: translateY(-1px);
  margin-left: 10px;
}

/* optional hover */
#caracalLeftBackdrop .caracal-close-btn:hover{
  opacity: 0.9;
}

/* hide desktop close on mobile if you use mobile close already */
@media (max-width: 768px){
  #caracalLeftBackdrop .caracal-close-btn{ display:none; }
}








.caracal-size-close-tab{

    left: -83px;
    top: 0;
    width: 78px;
    height: 46px;
    background: #fff;
    border: 0;
    cursor: pointer;
    clip-path: polygon(13% 0, 79% 0, 100% 100%, 0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    z-index: 10;
}

.caracal-size-close-tab span{
  position: relative;
  z-index: 2; /* make sure X is above everything */
  font-size: 28px;
  line-height: 1;
  color: #000;
   transform: skewX(14deg);
}






/* ✅ Mobile header: logo left, X right (full width) */
@media (max-width: 900px){

  /* hide the left blurred side on mobile */
  .caracal-modal-left{ display:none; }

  /* make right panel full width */
  .caracal-modal-right{
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
    height: 100vh;
  }

  /* show the top brand bar */
  .caracal-mobile-brandbar{
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 9999;
  }

  /* show the X button on the right */
  .caracal-mobile-close{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 30px;
    line-height: 1;
    color: #000;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
        margin-right: 20px;
  }

  /* keep logo neat */
  .caracal-mobile-brandbar .caracal-brand-logo{
    height: 30px;
    width: auto;
    object-fit: contain;
  }

  /* hide desktop close tab when mobile header is shown */
  #caracalLeftBackdrop .caracal-close-btn{ display:none !important; }
}




/* ✅ Default: hide mobile brand bar everywhere */
.caracal-mobile-brandbar{
  display: none !important;
}

/* ✅ Only show it on mobile */
@media (max-width: 900px){
  .caracal-mobile-brandbar{
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 9999;
  }

  .caracal-mobile-close{
    display: inline-flex !important;
  }
}

