/* ==========================================================
   AVCC base
   ========================================================== */

.avcc { position: relative; }

/* Overlay hidden by default; JS toggles it and adds .avcc--open */
.avcc .avcc__overlay[hidden] { display: none !important; }

/* When open, show overlay as bottom sheet container */
.avcc.avcc--open .avcc__overlay {
    display: flex !important;
}

/* ==========================================================
   Bottom banner / bottom sheet
   ========================================================== */

.avcc .avcc__overlay {
    position: fixed !important;
    left: 50% !important;
    bottom: 6px !important;
    top: auto !important;
    transform:translateX(-50%);
    background: transparent !important;
    z-index: 999999 !important;
    align-items: flex-end !important;
    justify-content: center !important; 
    padding: 0 !important;
    margin: 0 !important;
    width: 1440px !important;
    max-width: 94% !important;
    transition: all 0.3s ease-in-out;
    visibility: hidden;
    opacity: 0;
}
.avcc.show  .avcc__overlay {
  visibility: visible;
  opacity: 1;
  transform:translate(-50%, 0);
}

.avcc .avcc__panel {
    width: 100% !important;
    max-width: 100% !important;
    background: rgba(250,250,250,.7) !important;
    color: #111 !important;
    transition: .2s ease-in-out;
    border-radius: 26px;
    backdrop-filter: blur(15px);
    padding: 16px 26px !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0 40px;
    box-shadow: 0 0 6px 5px rgba(0,0,0,0.03);
}

/* ==========================================================
   Header: flex row, responsive
   ========================================================== */

.avcc .avcc__header {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    flex-basis: calc(100% - 290px);
}

.avcc .avcc__title {
    margin: 0 !important;
    flex: 0 0 auto !important;
    color: #111 !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
}

.avcc .avcc__desc {
    margin: 0 !important;
    flex: 1 1 420px !important;
    min-width: 260px;
    font-size: 14px !important;
    line-height: 1.35 !important;
}

/* ==========================================================
   Body: fixed height 300px, manage scroll
   ========================================================== */

.avcc .avcc__body {
  flex-basis: 100%;
}

/* Default actions row (Allow all / Manage selection) */
.avcc .avcc__actions {
    flex-basis: 250px;
    justify-content: flex-end;
}

.avcc .avcc__actions[data-avcc-actions-default] {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

/* Manage panel: scrollable inside 300px body */
.avcc .avcc__manage:not([hidden]) {
    margin-top: 12px;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Categories layout */
.avcc .avcc__cat {
    display: flex !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 12px 0 !important;
    border-top: 1px solid rgba(255,255,255,.12) !important;
}
.avcc .avcc__cat div:first-child {
    flex-basis: calc(100% - 140px);
}

.avcc .avcc__cat-label {
  font-weight: 600 !important;
  }
.avcc .avcc__cat-desc  {
  font-size: 13px !important;
}

.avcc .avcc__radios {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  flex-basis: 124px;
}
.avcc .avcc__radio  {
  display: inline-flex !important;
  gap: 6px !important;
  align-items: center !important;
  font-size: 13px !important;
  cursor: pointer;
}

/* Manage action row: sticky at bottom of manage scroll */
.avcc .avcc__actions--manage {
    position: sticky !important;
    bottom: 0 !important;
    padding: 12px 0 4px !important;

    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    border-top: 1px solid rgba(255,255,255,.12) !important;
}

/* ==========================================================
   Buttons + link styling
   ========================================================== */
.avcc .avcc__link,
.avcc .avcc__btn {
    appearance: none !important;
    border-radius: 28px !important;
    padding: 10px 14px !important;

    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 1 !important;

    border: 1px solid rgba(0,0,0,0.2) !important;
    background: transparent !important;
    color: #000 !important;
    transition: all 0.3s ease-in-out;
    cursor: pointer !important;
}

.avcc .avcc__btn--primary {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
}




.avcc .avcc__btn:hover,
.avcc .avcc__btn:active,
.avcc .avcc__btn:focus,
.avcc .avcc__link:hover,
.avcc .avcc__link:active,
.avcc .avcc__link:focus {
    background:#000!important;
    color: #fff!important;
}




/* Policy link in manage action row */
/*
.avcc .avcc__link {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none !important;
    white-space: nowrap;
    opacity: .95;
}
*/
/* Mobile stacking */
@media (min-width: 1024px) {
  .avcc .avcc__overlay {
    bottom: 25px !important;
  }
}
@media (max-width: 1024px) {
  .avcc .avcc__panel {
    gap: 0 20px;
  }
  .avcc .avcc__header {
    flex-basis: calc(100% - 270px);
  }
}
@media (max-width: 767px) {
  .avcc:has(.avcc__manage:not([hidden])) .avcc__panel {
    height: 100dvh;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0;
  }

  .avcc:has(.avcc__manage:not([hidden])) .avcc__overlay {
    max-width: 100%!important;
    bottom: 0!important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .avcc:has(.avcc__manage:not([hidden])) .avcc__header  {
    padding-top: 60px;
  }
  body:has(.avcc__manage:not([hidden])) {
    overflow: hidden;
  }

  .avcc .avcc__panel {
    padding: 16px 18px !important;
  }

  .avcc .avcc__header {
    flex-basis: 100%;
    flex-direction: column !important;
  }
  .avcc .avcc__actions {
    flex-basis: 100%;
    margin-top: 16px;
  }

  .avcc .avcc__desc {
      min-width: 0;
      flex: 1 1 auto !important;
  }
  .avcc .avcc__manage:not([hidden]) {
    height: auto !important;
  }
}



/*
.avcc__header {
    flex-basis:80%;
    padding-right:35px;
}
.avcc[data-avcc-root] .avcc__body {
    flex-basis:300px;
}

.avcc--open .avcc__header {
    display:none;
}

.avcc[data-avcc-root] .avcc__body {
    flex-basis: 100%;
}

.avcc[data-avcc-root] .avcc__body > .avcc__actions {
    display:none !important;
}
*/
