/**
 * rates-resolver.css — Critical styles for product rate placeholders.
 *
 * These styles ensure rate spans are hidden by default on page load to
 * prevent a flash of raw placeholder text (e.g. {{productId.property}})
 * before the JavaScript resolver has a chance to run.
 *
 * The JS resolver adds modifier classes to control final visibility:
 *   --resolved            : Value fetched successfully (shown)
 *   --unavailable         : Value not in API, publish mode (hidden)
 *   --unavailable-author  : Value not in API, author edit/preview (red error)
 *   --error               : API fetch failed, publish mode (hidden)
 *   --error-author        : API fetch failed, author edit/preview (red error)
 *   --edit-label          : Author edit mode (styled label)
 *
 * All rules use !important to override AEM editor styles that may have
 * higher specificity on content elements within the authoring iframe.
 */

/* Hide all rate spans by default to prevent flash of raw {{...}} placeholder text.
 * Uses font-size:0 + color:transparent + line-height:0 for a zero-footprint,
 * zero-visual-impact inline element until JS resolves the value. */
span.c-product-rate {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  overflow: hidden !important;
  letter-spacing: -1px !important;
}

/* Successfully resolved — show the value inline. */
span.c-product-rate.c-product-rate--resolved {
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  overflow: visible !important;
  letter-spacing: normal !important;
}

/* Author edit mode — styled label so authors can identify the rate reference. */
span.c-product-rate.c-product-rate--edit-label {
  font-size: 11px !important;
  line-height: inherit !important;
  color: #0054b4 !important;
  overflow: visible !important;
  letter-spacing: normal !important;
  display: inline !important;
  background: #e8f4fd !important;
  border: 1px dashed #0054b4 !important;
  border-radius: 3px !important;
  padding: 1px 4px !important;
  font-family: monospace !important;
}

/* Author edit/preview — red error indicator when value is unavailable. */
span.c-product-rate.c-product-rate--unavailable-author,
span.c-product-rate.c-product-rate--error-author {
  font-size: inherit !important;
  line-height: inherit !important;
  overflow: visible !important;
  letter-spacing: normal !important;
  display: inline !important;
  color: #cc0000 !important;
  font-weight: bold !important;
  font-style: italic !important;
  border-bottom: 2px dashed #cc0000 !important;
  padding: 2px 4px !important;
  background: #fff0f0 !important;
  border-radius: 3px !important;
}

/* Publish mode — value unavailable or error: completely hidden. */
span.c-product-rate.c-product-rate--unavailable,
span.c-product-rate.c-product-rate--error {
  display: none !important;
}
/* ------------------------------------------------------------------ */
/* Footnote runtime (footnote-resolver.js)                            */
/* ------------------------------------------------------------------ */

/* Runtime placeholder stays in the DOM only as authored metadata. */
.c-footnote-container {
  display: none !important;
}

/* Footnote marker rendered at the authored position. */
.footnote__number {
  display: inline !important;
  vertical-align: super;
  font-size: 0.75em;
  line-height: 1;
  text-decoration: none;
}

.footnote__number:focus,
.footnote__number:hover {
  text-decoration: underline;
}

/* Footnote disclosures render as a bottom-of-page block just above the footer. */
.c-footnotes-runtime {
  display: block;
  margin: 2rem auto 1.5rem;
}

.c-footnotes-runtime__accordion {
  border: 1px solid #cfd6de;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: 0 10px 24px rgba(15, 36, 64, 0.08);
  overflow: hidden;
  padding: 64px;
}

.c-footnotes-runtime__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.c-footnotes-runtime__summary::-webkit-details-marker {
  display: none;
}

.c-footnotes-runtime__summary-copy {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.c-footnotes-runtime__eyebrow {
  color: #6b7785;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.c-footnotes-runtime__title {
  color: #111827;
  font-size: 1.5rem;
  line-height: 1.25;
}

.c-footnotes-runtime__toggle {
  align-items: center;
  background: #f3f6fa;
  border: 1px solid #d6dde6;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 48px;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  width: 48px;
}

.c-footnotes-runtime__toggle-icon {
  border-bottom: 2px solid #0f3d75;
  border-right: 2px solid #0f3d75;
  display: block;
  height: 10px;
  margin-top: -4px;
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin-top 0.2s ease;
  width: 10px;
}

.c-footnotes-runtime__accordion[open] .c-footnotes-runtime__toggle-icon {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.c-footnotes-runtime__summary:hover .c-footnotes-runtime__toggle,
.c-footnotes-runtime__summary:focus .c-footnotes-runtime__toggle {
  background: #eaf1f8;
  border-color: #b8c7d8;
}

.c-footnotes-runtime__panel {
  padding: 2rem 0 0;
  border-top: 1px solid #d7dce1;
  margin-top: 2rem;
}

.c-footnotes-runtime[hidden] {
  display: none !important;
}

.c-footnotes-runtime__entry + .c-footnotes-runtime__entry {
  border-top: 1px solid #e3e8ee;
  margin-top: 1rem;
  padding-top: 1rem;
}

.c-footnotes-runtime .footnote__disclosure {
  display: block;
  color: #1f2937;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* "Back to content" link rendered at the end of a footnote disclosure. */
.footnote__disclosure .footnote__back {
  display: inline;
  margin-left: 0.35em;
  font-size: 0.85em;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}
