/**
 * Cookie Notice bar — Digital Apple styling.
 * Replaces legacy rem-based rules; loads after plugin + custom-style.css.
 */

#cookie-notice {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: left;
  background-color: #faf8f5 !important;
  border-top: 1px solid #d8d5ce;
  box-shadow: 0 -4px 24px rgba(21, 21, 21, 0.08);
}

#cookie-notice .cookie-notice-container {
  position: relative;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 16px 56px 16px 40px !important;
  text-align: left;
}

#cookie-notice span#cn-notice-text,
#cookie-notice span#cn-notice-text span,
#cookie-notice span#cn-notice-text a {
  font-family: 'Satoshi', system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #151515 !important;
  margin: 0 !important;
}

#cookie-notice span#cn-notice-text span {
  font-weight: 600 !important;
}

#cookie-notice span#cn-notice-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#cookie-notice span#cn-notice-text a:hover {
  color: #383b40 !important;
}

#cookie-notice span#cn-notice-buttons {
  display: inline-flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  max-width: 100%;
  flex-shrink: 0;
}

#cookie-notice .cn-button,
#cookie-notice #cn-accept-cookie,
#cookie-notice #cn-refuse-cookie,
#cookie-notice #cn-more-info,
#cookie-notice #cn-revoke-cookie,
#cookie-notice button.cookie-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-family: 'Satoshi', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
  padding: 12px 22px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  cursor: pointer;
  white-space: nowrap;
  visibility: visible !important;
  opacity: 1 !important;
  box-shadow: none;
  transition:
    background 180ms cubic-bezier(0.16, 1, 0.3, 1),
    color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

#cookie-notice #cn-accept-cookie,
#cookie-notice button#cn-accept-cookie {
  background-color: #b8e986 !important;
  color: #151515 !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(21, 21, 21, 0.12);
}

#cookie-notice #cn-accept-cookie:hover,
#cookie-notice #cn-accept-cookie:focus {
  background-color: #c9f29a !important;
  color: #151515 !important;
  box-shadow: 0 6px 28px rgba(21, 21, 21, 0.16);
  transform: translateY(-1px);
}

#cookie-notice #cn-accept-cookie:active {
  transform: translateY(0);
}

#cookie-notice #cn-refuse-cookie,
#cookie-notice button#cn-refuse-cookie {
  background-color: transparent !important;
  color: #151515 !important;
  border: 1px solid #151515 !important;
}

#cookie-notice #cn-refuse-cookie:hover,
#cookie-notice #cn-refuse-cookie:focus {
  background-color: #edebe6 !important;
  color: #151515 !important;
  transform: translateY(-1px);
}

#cookie-notice #cn-refuse-cookie:active {
  transform: translateY(0);
}

#cookie-notice #cn-more-info,
#cookie-notice button#cn-more-info {
  background-color: transparent !important;
  color: #151515 !important;
  border: none !important;
  padding: 12px 16px !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  box-shadow: none !important;
}

#cookie-notice #cn-more-info:hover,
#cookie-notice #cn-more-info:focus {
  color: #383b40 !important;
}

#cookie-notice .cn-close-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  margin: -15px 0 0;
  width: 30px;
  height: 30px;
  opacity: 0.45;
  padding: 0;
  z-index: 3;
  border: none;
  background: none;
  cursor: pointer;
  pointer-events: auto;
}

#cookie-notice .cn-close-icon:before,
#cookie-notice .cn-close-icon:after {
  height: 14px;
  width: 2px;
  top: 8px;
  left: 14px;
  background-color: #151515;
  pointer-events: none;
}

#cookie-notice .cn-close-icon:hover,
#cookie-notice .cn-close-icon:focus {
  opacity: 1;
}

#cookie-notice .cookie-revoke-container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 12px 40px !important;
  border-top: 1px solid #d8d5ce;
}

/* Plugin hides via display:none — must beat flex !important above */
#cookie-notice.cookie-notice-hidden .cookie-notice-container,
#cookie-notice.cookie-revoke-hidden .cookie-revoke-container,
html.da-cookie-dismissed #cookie-notice {
  display: none !important;
}

#cookie-notice.cookie-notice-hidden,
#cookie-notice.cookie-revoke-hidden {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

@media (max-width: 767px) {
  #cookie-notice {
    font-size: 15px;
  }

  #cookie-notice .cookie-notice-container {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 48px 20px 20px !important;
    gap: 14px;
  }

  #cookie-notice span#cn-notice-text,
  #cookie-notice span#cn-notice-text span {
    font-size: 14px !important;
  }

  #cookie-notice span#cn-notice-buttons {
    width: 100% !important;
    justify-content: flex-start;
  }

  #cookie-notice .cn-button,
  #cookie-notice #cn-accept-cookie,
  #cookie-notice #cn-refuse-cookie,
  #cookie-notice #cn-more-info {
    min-width: 0;
    flex: 1 1 calc(50% - 5px);
  }

  #cookie-notice #cn-more-info {
    flex: 1 1 100%;
    justify-content: flex-start;
    padding-left: 0 !important;
  }
}
