@layer kit {
  :root:has(.shop > link[data-consent-notice-sheet="happyfriends-aviso"]) { --nc-consent-bar-h: 0px; }
  :root:has(.shop > link[data-consent-notice-sheet="happyfriends-aviso"]):has(.shop .consent-notice) {
    --nc-consent-bar-h: var(--nc-consent-bar-size, calc(56px + env(safe-area-inset-bottom)));
    scroll-padding-bottom: var(--nc-consent-bar-h) !important;
  }


  .shop:has(> link[data-consent-notice-sheet="happyfriends-aviso"]) .consent-notice {
    position: sticky !important;
    inset: auto 0 0 !important;
    transform: none !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0 4px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-height: calc(56px + env(safe-area-inset-bottom)) !important;
    padding: 5px max(6px, env(safe-area-inset-right), calc(50% - 580px)) calc(5px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left), calc(50% - 580px)) !important;
    border: 0 !important;
    border-top: 1px solid var(--line) !important;
    border-radius: 0 !important;
    background: var(--surface) !important;
    color: var(--ink) !important;
    overflow: visible !important;
  }
  .shop:has(> link[data-consent-notice-sheet="happyfriends-aviso"]) .consent-notice[data-focus-elsewhere]:not(:focus-within) { position: static !important; }

  .shop:has(> link[data-consent-notice-sheet="happyfriends-aviso"]):has([data-checkout-head]) .consent-notice { position: static !important; }
  .shop:has(> link[data-consent-notice-sheet="happyfriends-aviso"]) .consent-notice.is-closing { translate: none !important; }

  .shop:has(> link[data-consent-notice-sheet="happyfriends-aviso"]) .consent-notice > p {
    margin: 0 !important;
    padding: 0 !important;
    font: 400 .75rem/1.25 var(--nc-font-jost) !important;
    color: var(--ink) !important;
  }
  .shop:has(> link[data-consent-notice-sheet="happyfriends-aviso"]) .consent-notice > p:has(a) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 4px !important;
  }
  .shop:has(> link[data-consent-notice-sheet="happyfriends-aviso"]) .consent-notice > p a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 44px !important;
    min-width: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    font: inherit !important;
    color: var(--brand) !important;
    text-decoration: underline !important;
  }
  .shop:has(> link[data-consent-notice-sheet="happyfriends-aviso"]) .consent-notice > .consent-actions {
    grid-column: 2 !important;
    grid-auto-columns: auto !important;
  }
  .shop:has(> link[data-consent-notice-sheet="happyfriends-aviso"]) .consent-notice .btn {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 0 6px !important;
    border: 1px solid var(--deep) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    background: var(--surface) !important;
    color: var(--deep) !important;
    font: 600 .8125rem/1.15 var(--nc-font-jost) !important;
  }
  .shop:has(> link[data-consent-notice-sheet="happyfriends-aviso"]) .consent-notice :is(a, button):focus-visible {
    outline: 2px solid var(--brand) !important;
    outline-offset: 2px !important;
  }
  .shop:has(> link[data-consent-notice-sheet="happyfriends-aviso"]) .consent-notice > .consent-error { grid-column: 1 / -1 !important; }

  @media (min-width: 980px) {
    .shop:has(> link[data-consent-notice-sheet="happyfriends-aviso"]) .consent-notice { gap: 0 20px !important; }
    .shop:has(> link[data-consent-notice-sheet="happyfriends-aviso"]) .consent-notice > p { font-size: .9375rem !important; }
    .shop:has(> link[data-consent-notice-sheet="happyfriends-aviso"]) .consent-notice > p:has(a) { grid-template-columns: auto auto !important; justify-content: start !important; gap: 16px !important; }
    .shop:has(> link[data-consent-notice-sheet="happyfriends-aviso"]) .consent-notice .btn { padding-inline: 18px !important; font-size: .875rem !important; }
  }

  @media (max-width: 979px) {
    .shop:has(> link[data-consent-notice-sheet="happyfriends-aviso"]):has(.consent-notice) :is(main:has(.hf-producto) .bpdp-bar, .hf-pedido .hf-bag-bar) {
      bottom: calc(10px + var(--nc-consent-bar-h)) !important;
    }
    :root:has(.shop > link[data-consent-notice-sheet="happyfriends-aviso"]):has(.shop .consent-notice):has(.hf-producto):has(.bpdp-bar[data-shown]) {
      scroll-padding-bottom: calc(84px + var(--nc-consent-bar-h)) !important;
    }
    :root:has(.shop > link[data-consent-notice-sheet="happyfriends-aviso"]):has(.shop .consent-notice):has(.hf-pedido .hf-bag-bar) {
      scroll-padding-bottom: calc(96px + var(--nc-consent-bar-h)) !important;
    }
  }
}
