/* DCASIM pricing: share the visual language of #dca-sim-wrapper, with no form CSS dependency. */
.dcasim-price {
  --price-ink: #09090b;
  --price-muted: #71717a;
  --price-line: #e4e4e7;
  --price-soft: #f4f4f5;
  --price-highlight: #fafafa;
  --price-accent: #4f46e5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Same as the form: the theme's normal text size; everything below is in
     em of it (the form's labels and buttons are 0.85em). */
  font-size: inherit;
  line-height: 1.45;
  font-weight: 400;
  color: var(--price-ink);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.dcasim-price *, .dcasim-price *::before, .dcasim-price *::after {box-sizing: border-box;}
.dcasim-price-scroll {
  /* Let the document scroll normally; do not create a nested vertical scrollbar. */
  max-height: none;
  overflow: visible;
  border: 1px solid var(--price-line);
  border-radius: 12px;
  background: #fff;
}
.dcasim-price-table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  background: #fff;
}
.dcasim-price-table col.dcasim-price-label-col {width: 36%;}
.dcasim-price-table col.dcasim-price-tier-col {width: 16%;}
.dcasim-price-table th, .dcasim-price-table td {
  border: 0;
  border-bottom: 1px solid var(--price-line);
  padding: 10px 7px;
  text-align: center;
  vertical-align: middle;
  font-size: 0.875em;
  line-height: 1.45;
  font-weight: 400;
  background: #fff;
  overflow-wrap: break-word;
}
.dcasim-price-table thead th {
  position: sticky;
  top: var(--dcasim-pricing-sticky-top, 0px);
  z-index: 5;
  padding: 10px 6px;
  background: #fafafa;
  font-weight: 600;
  box-shadow: inset 0 -1px var(--price-line);
}
/* On logged-in WordPress pages, keep the header below the fixed admin bar. */
body.admin-bar .dcasim-price-table thead th {
  top: var(--dcasim-pricing-sticky-top, var(--wp-admin--admin-bar--height, 32px));
}
@media(max-width:782px) {
  body.admin-bar .dcasim-price-table thead th {
    top: var(--dcasim-pricing-sticky-top, var(--wp-admin--admin-bar--height, 46px));
  }
}
.dcasim-price-table thead th:first-child {z-index: 9;}
.dcasim-price-table tr > th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  text-align: left;
  background: #fff;
  box-shadow: 1px 0 var(--price-line);
}
.dcasim-price-table thead tr > th:first-child {
  z-index: 10;
  background: #fafafa;
  font-weight: 600;
}
.dcasim-price-table tbody .dcasim-price-data > th {
  font-weight: 500;
  color: var(--price-ink);
}
.dcasim-price-table .dcasim-price-name {display:block;font-size:1em;line-height:1.35;font-weight:650;}
.dcasim-price-table thead small {display:block;font-size:0.8em;line-height:1.35;color:var(--price-muted);font-weight:400;margin-top:2px;}
.dcasim-price-table .dcasim-price-badge {display:inline-block;margin-top:7px;padding:2px 8px;border:1px solid #d4d4d8;border-radius:20px;color:#52525b;font-size:0.8em;font-weight:500;}
/* The section title spans the whole row, so the full row is the click target. */
.dcasim-price-table tbody .dcasim-price-group > th,
.dcasim-price-table tbody .dcasim-price-group > td {
  background: var(--price-soft);
  padding: 8px 11px;
  border-top: 1px solid var(--price-line);
  border-bottom: 1px solid var(--price-line);
}
.dcasim-price-table tbody .dcasim-price-group > th {z-index: 4; box-shadow: none; padding: 0;}
.dcasim-price-table tbody .dcasim-price-group .dcasim-price-toggle {padding: 11px 11px;}
.dcasim-price-table tbody .dcasim-price-group:hover > th {background: #ececef;}
.dcasim-price-toggle {
  display: inline-flex;
  align-items: center;
  width: 100%;
  gap: 7px;
  margin: 0;
  padding: 3px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--price-ink);
  font-family: inherit;
  font-size: 1em;
  line-height: 1.4;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.dcasim-price-toggle:hover {color: #4338ca;}
.dcasim-price-chevron {display:inline-block;flex:0 0 auto;font-size:0.85em;transition:transform .15s ease;}
.dcasim-price-toggle[aria-expanded=false] .dcasim-price-chevron {transform:rotate(-90deg);}
.dcasim-price-toggle:focus-visible, .dcasim-price-tip:focus-visible,
.dcasim-price-button:focus-visible, .dcasim-price-data th a:focus-visible {
  outline: 2px solid var(--price-accent);
  outline-offset: 2px;
}
.dcasim-price-data[hidden] {display:none!important;}
.dcasim-price-data th .dcasim-price-label {vertical-align:middle;}
.dcasim-price-data th a {text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px;color:inherit;}
.dcasim-price-data th a:hover {color:#4338ca;}
/* Same restrained 16px 'i' motif as the form. Only rendered for an admin-set tooltip. */
.dcasim-price-tip {
  display:inline-flex;
  vertical-align:middle;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  border:1px solid #a3a3a3;
  border-radius:50%;
  margin-left:7px;
  padding:0;
  color:#737373;
  font-size:11px;
  font-family:inherit;
  line-height:1;
  font-weight:500;
  font-style:normal;
  cursor:help;
  background:#fff;
}
.dcasim-price-tip:hover, .dcasim-price-tip:focus-visible {color:#27272a;border-color:#71717a;background:#fafafa;}
.dcasim-price-cost-row th, .dcasim-price-cost-row td {
  background:var(--price-highlight);
  border-top:1px solid var(--price-line);
  padding-top:12px;
  padding-bottom:9px;
}
.dcasim-price-cost-row > th:first-child {background:var(--price-highlight);font-weight:650;}
.dcasim-price-period {display:inline;font-size:0.8em;font-weight:400;color:var(--price-muted);white-space:nowrap;}
.dcasim-price-cost {display:block;font-size:1.3em;line-height:1.3;font-weight:700;letter-spacing:-.2px;white-space:nowrap;}
.dcasim-price-cta th, .dcasim-price-cta td {background:#fff;font-weight:500;}
.dcasim-price-button {
  display:inline-block;
  max-width:100%;
  border-radius:8px;
  padding:8px 6px;
  border:1px solid var(--price-accent);
  background:var(--price-accent);
  color:white!important;
  font-family:inherit;
  font-size:0.875em;
  line-height:1.35;
  font-weight:600;
  text-align:center;
  text-decoration:none!important;
  white-space:normal;
}
.dcasim-price-button:hover {background:#4338ca;border-color:#4338ca;}
.dcasim-price-button.is-disabled {background:#f4f4f5;border-color:#e4e4e7;color:#71717a!important;cursor:default;}
.dcasim-price-note {font-size:0.875em;color:var(--price-muted);margin-top:10px;}
@media(max-width:620px) {
  .dcasim-price-table th, .dcasim-price-table td {padding:9px 5px;font-size:0.85em;}
  .dcasim-price-table thead th {padding:10px 4px;}
  .dcasim-price-table .dcasim-price-cost {font-size:1.2em;}
  .dcasim-price-button {padding:7px 4px;}
}
/* At phone widths, fit all four tiers into the page instead of turning the
   wrapper into an overflow-x scrollport. An overflow-x:auto ancestor becomes
   overflow-y:auto too, which breaks viewport-sticky table headings. */
@media(max-width:540px) {
  .dcasim-price-scroll {overflow:visible; max-height:none;}
  .dcasim-price-table {width:100%; min-width:0;}
  .dcasim-price-table col.dcasim-price-label-col {width:32%;}
  .dcasim-price-table col.dcasim-price-tier-col {width:17%;}
  .dcasim-price-table th, .dcasim-price-table td {
    padding:8px 3px;
    font-size:0.8em;
    overflow-wrap:break-word;
  }
  .dcasim-price-table tr > th:first-child {padding-left:7px;}
  .dcasim-price-table thead th {padding:9px 2px;}
  .dcasim-price-table .dcasim-price-name {font-size:0.95em;line-height:1.3;letter-spacing:-.2px;}
  .dcasim-price-toggle {gap:4px;}
  .dcasim-price-table .dcasim-price-cost {font-size:1.15em;}
  .dcasim-price-period {white-space:normal;}
  .dcasim-price-button {font-size:0.85em;padding:6px 2px;}
}
/* Narrowest phones: a little more room for the four plan columns, so plan
   names such as "Freemium" stay on one line. */
@media(max-width:400px) {
  .dcasim-price-table col.dcasim-price-label-col {width:28%;}
  .dcasim-price-table col.dcasim-price-tier-col {width:18%;}
  .dcasim-price-table .dcasim-price-name {font-size:0.9em;letter-spacing:-.3px;}
}
@media(max-width:340px) {
  .dcasim-price-table .dcasim-price-name {font-size:0.8em;}
}
@media (prefers-reduced-motion:reduce) { .dcasim-price-chevron {transition:none;} }

/* "Allow subscribe" off: plain text instead of a button, and an invitation note. */
.dcasim-price-closed {display:inline-block;color:var(--price-muted);font-size:0.9em;line-height:1.35;font-weight:500;}
.dcasim-price-invite {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid #e0e7ff;
  border-radius: 10px;
  background: #f5f7ff;
  color: #3f3f46;
  font-size: 0.875em;
  line-height: 1.5;
}
.dcasim-price-invite strong {display:block;color:#4338ca;font-weight:650;margin-bottom:2px;}
@media(max-width:540px) {
  .dcasim-price-closed {font-size:0.9em;}
  .dcasim-price-invite {padding:10px 12px;}
}

/* No thick theme focus ring on the section rows after a click (the theme
   styles button:focus). Keyboard users get a light indigo ring inside the
   row instead. */
.dcasim-price .dcasim-price-toggle:focus {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
.dcasim-price .dcasim-price-toggle:focus-visible {
  outline: 2px solid #c7d2fe !important;
  outline-offset: -2px;
}
