/* Single post extras — Easy Table of Contents themed for F2M */

/* Container: turn the plugin's floated box into a full-width themed card */
#ez-toc-container {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1.75rem !important;
  padding: 1.25rem 1.5rem !important;
  background: var(--bg-body, #1d1c21) !important;
  border: 1px solid var(--border-color, #484848);
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.14);
  color: var(--text-body, #ffffff);
  direction: rtl;
  text-align: right;
  font-size: 14px;
  line-height: 1.9;
}
body.light-mode #ez-toc-container {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* Title row with accent bar */
#ez-toc-container .ez-toc-title-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(var(--primary-color-rgb, 150, 242, 7), 0.25);
}
#ez-toc-container .ez-toc-title {
  position: relative;
  margin: 0;
  padding-right: 0.9rem;
  font-size: 16px;
  font-weight: 900;
  color: var(--text-body, #ffffff);
}
#ez-toc-container .ez-toc-title::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.15em;
  border-radius: 4px;
  background: var(--primary-color, #96f207);
}

/* Collapse / toggle controls */
#ez-toc-container .ez-toc-title-toggle {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
}
#ez-toc-container a.ez-toc-toggle,
#ez-toc-container .ez-toc-toggle,
#ez-toc-container .ez-toc-title-toggle .ez-toc-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--primary-color, #96f207);
  background: rgba(var(--primary-color-rgb, 150, 242, 7), 0.1);
  border: 1px solid rgba(var(--primary-color-rgb, 150, 242, 7), 0.28);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
#ez-toc-container a.ez-toc-toggle:hover,
#ez-toc-container .ez-toc-toggle:hover {
  background: rgba(var(--primary-color-rgb, 150, 242, 7), 0.2);
}
#ez-toc-container a.ez-toc-toggle svg path {
  fill: currentColor;
}

/* Lists */
#ez-toc-container nav ul,
#ez-toc-container .ez-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
#ez-toc-container nav > ul {
  padding-right: 0;
}
#ez-toc-container nav ul ul {
  padding-right: 1.15rem;
  margin-top: 0.2rem;
  border-right: 1px dashed rgba(var(--primary-color-rgb, 150, 242, 7), 0.2);
}
#ez-toc-container li {
  margin: 0.3rem 0;
  line-height: 1.9;
}

/* Links */
#ez-toc-container a.ez-toc-link,
#ez-toc-container nav a {
  color: var(--text-muted, #979797);
  text-decoration: none;
  transition: color 0.15s ease;
}
#ez-toc-container a.ez-toc-link:hover,
#ez-toc-container a.ez-toc-link:focus,
#ez-toc-container a.ez-toc-link.active,
#ez-toc-container nav a:hover,
#ez-toc-container nav a:focus {
  color: var(--primary-color, #96f207);
}

/* Level-1 headings a touch bolder */
#ez-toc-container .ez-toc-list-level-1 > li > a {
  color: var(--text-body, #ffffff);
  font-weight: 700;
}
#ez-toc-container .ez-toc-list-level-1 > li > a:hover {
  color: var(--primary-color, #96f207);
}

/* Product buy-button price — clean old/new amounts (no screen-reader clutter) */
.product-add-btn__price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  white-space: nowrap;
}
.product-add-btn__price .product-add-btn__price-old,
.product-add-btn__price del {
  text-decoration: line-through;
  opacity: 0.65;
  font-size: 0.82em;
  font-weight: 500;
}
.product-add-btn__price .product-add-btn__price-now,
.product-add-btn__price ins {
  text-decoration: none;
  font-weight: 800;
}
.product-add-btn__price .woocommerce-Price-currencySymbol {
  font-size: 0.85em;
  font-weight: 500;
  margin-inline-start: 0.15em;
}

/* Post-purchase notice (after single digital checkout redirect) */
.ruberah-purchase-notice {
  color: #000;
  background: #f0f0f0;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  font-weight: 600;
}
body:not(.light-mode) .ruberah-purchase-notice {
  color: #000;
  background: #e8e8e8;
  border-color: #c8c8c8;
}

