/**
 * Mountain Flyer branding overrides for HOL Platform Tools.
 *
 * Copy this file next to hol-platform-tools-site-config.php in
 * wp-content/mu-plugins/. These variables are site-owned and should not be
 * edited inside the shared HOL Platform Tools plugin.
 */

/* Keep the selector shell light while giving subscription cards a dark treatment. */
.hol-platform-tools[data-publication="mountain_flyer"] .hol-subscription-selector__plan-card {
  --hol-platform-card-background: #222222;
  --hol-platform-card-border-color: #555555;
  --hol-platform-card-hover-border-color: #777777;
  --hol-platform-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
  --hol-platform-card-hover-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
  --hol-platform-card-text: #ffffff;
  --hol-platform-card-muted-text: #cccccc;
  --hol-platform-button-background: #ffa500;
  --hol-platform-button-hover-background: #ffb733;
  --hol-platform-button-hover-text: #000000;
  --hol-platform-button-focus-background: #ffa500;
  --hol-platform-button-focus-text: #000000;
  --hol-platform-button-focus-ring: #ffffff;
  --hol-platform-button-active-background: #ffb733;
  --hol-platform-button-active-text: #000000;
  --hol-platform-button-text: #000000;
  --hol-platform-button-disabled-background: #444444;
  --hol-platform-button-disabled-text: #cccccc;
  --hol-platform-badge-background: #ffa500;
  --hol-platform-badge-text: #000000;
}

/* Use an editorial text treatment for Mountain Flyer's Best Value label. */
.hol-platform-tools[data-publication="mountain_flyer"] .hol-subscription-selector__plan-card-badge {
  padding: 0;
  border-radius: 0;
  background-color: transparent;
  color: #ffa500;
}

/* Override Kadence paragraph margins for the compact card hierarchy. */
.single-content .hol-platform-tools[data-publication="mountain_flyer"] .hol-subscription-selector__plan-card-details .hol-subscription-selector__plan-card-price {
  margin: 0 0 12px;
}

.single-content .hol-platform-tools[data-publication="mountain_flyer"] .hol-subscription-selector__plan-card-details .hol-subscription-selector__plan-card-renewal {
  margin: 0 0 16px;
}

/* Keep the account shell light while giving its action panels the same dark treatment. */
.hol-platform-tools.hol-subscription-account-access .hol-subscription-account-access__panel {
  --hol-platform-account-panel-background: #222222;
  --hol-platform-account-panel-border-color: #555555;
  --hol-platform-account-panel-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
  --hol-platform-account-panel-heading-text: #ffffff;
  --hol-platform-account-panel-text: #cccccc;
  --hol-platform-region-background: transparent;
  --hol-platform-region-text: #ffffff;
  --hol-platform-region-border-color: #cccccc;
  --hol-platform-region-hover-background: #444444;
  --hol-platform-region-hover-text: #ffffff;
  --hol-platform-region-hover-border-color: #ffffff;
  --hol-platform-region-focus-background: #444444;
  --hol-platform-region-focus-text: #ffffff;
  --hol-platform-region-focus-ring: #ffffff;
  --hol-platform-focus: #ffa500;
  --hol-platform-button-background: #ffa500;
  --hol-platform-button-hover-background: #ffb733;
  --hol-platform-button-hover-text: #000000;
  --hol-platform-button-focus-background: #ffa500;
  --hol-platform-button-focus-text: #000000;
  --hol-platform-button-focus-ring: #ffffff;
  --hol-platform-button-active-background: #ffb733;
  --hol-platform-button-active-text: #000000;
  --hol-platform-button-text: #000000;
}

.hol-platform-tools.hol-subscription-account-access .hol-subscription-account-access__button:not(.hol-subscription-account-access__button--primary) {
  min-height: 46px;
  padding: 7.2px 18px;
  border: 1px solid #cccccc;
  border-radius: 3px;
  background-color: var(--hol-platform-region-background);
  color: var(--hol-platform-region-text);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  text-decoration: none;
}

.hol-platform-tools.hol-subscription-account-access .hol-subscription-account-access__button:not(.hol-subscription-account-access__button--primary):hover {
  border-color: var(--hol-platform-region-hover-border-color);
  background-color: var(--hol-platform-region-hover-background);
  color: var(--hol-platform-region-hover-text);
}

.hol-platform-tools.hol-subscription-account-access .hol-subscription-account-access__button:not(.hol-subscription-account-access__button--primary):focus-visible {
  border-color: var(--hol-platform-region-focus-ring);
  background-color: var(--hol-platform-region-focus-background);
  color: var(--hol-platform-region-focus-text);
  outline: 3px solid var(--hol-platform-focus);
  outline-offset: 2px;
}

/* Keep the non-renewing disclosure neutral outside the dark subscription cards. */
.hol-platform-tools[data-publication="mountain_flyer"] .hol-subscription-selector__nonrenew-toggle {
  --hol-platform-nonrenew-background: #ffffff;
  --hol-platform-nonrenew-text: #222222;
  --hol-platform-nonrenew-border-color: #d9d9d9;
  --hol-platform-nonrenew-hover-background: #f6f6f6;
  --hol-platform-nonrenew-hover-text: #222222;
  --hol-platform-nonrenew-hover-border-color: #8a8a8a;
  --hol-platform-nonrenew-focus-background: #ffffff;
  --hol-platform-nonrenew-focus-text: #222222;
  --hol-platform-nonrenew-focus-ring: #222222;
  --hol-platform-nonrenew-active-background: #f6f6f6;
  --hol-platform-nonrenew-active-text: #222222;
}

/* Keep pointer focus neutral; keyboard focus remains visibly outlined. */
.hol-platform-tools[data-publication="mountain_flyer"] .hol-subscription-selector__nonrenew-toggle:focus:not(:focus-visible) {
  border-color: var(--hol-platform-nonrenew-border-color);
  background-color: var(--hol-platform-nonrenew-background);
  color: var(--hol-platform-nonrenew-text);
  outline: none;
}

.hol-platform-tools[data-publication="mountain_flyer"] .hol-subscription-selector__nonrenew-toggle:focus:not(:focus-visible):hover {
  border-color: var(--hol-platform-nonrenew-hover-border-color);
  background-color: var(--hol-platform-nonrenew-hover-background);
  color: var(--hol-platform-nonrenew-hover-text);
}

.hol-platform-tools[data-publication="mountain_flyer"] .hol-subscription-selector__nonrenew-toggle[aria-expanded="true"]:focus:not(:focus-visible) {
  background-color: var(--hol-platform-nonrenew-active-background);
  color: var(--hol-platform-nonrenew-active-text);
}

.hol-platform-tools[data-publication="mountain_flyer"] .hol-subscription-selector__nonrenew-toggle:focus-visible {
  background-color: var(--hol-platform-nonrenew-focus-background);
  color: var(--hol-platform-nonrenew-focus-text);
  outline: 3px solid var(--hol-platform-nonrenew-focus-ring);
  outline-offset: 2px;
}

/* ========================================================================
   Pelcro UI Overrides
   ======================================================================== */

#pelcro-app.pelcro-root {
  color: #111111;
  font-family: inherit;
}

#pelcro-app.pelcro-root .pelcro-modal-panel {
  background-color: #ffffff;
  border-radius: 4px;
  color: #111111;
  font-family: inherit;
}

#pelcro-app.pelcro-root .pelcro-modal-header,
#pelcro-app.pelcro-root .pelcro-modal-body,
#pelcro-app.pelcro-root .pelcro-modal-footer {
  color: #111111;
  font-family: inherit;
}

#pelcro-app.pelcro-root .pelcro-title {
  color: #000000;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 700;
}

#pelcro-app.pelcro-root .pelcro-button-solid:not(:disabled):not([disabled]):not([aria-disabled="true"]),
#pelcro-app.pelcro-root .pelcro-button-outline:not(:disabled):not([disabled]):not([aria-disabled="true"]),
#pelcro-app.pelcro-root .pelcro-social-btn:not(:disabled):not([disabled]):not([aria-disabled="true"]) {
  border-radius: 4px;
  font-family: inherit;
}

#pelcro-app.pelcro-root .pelcro-button-solid:not(:disabled):not([disabled]):not([aria-disabled="true"]) {
  background-color: #ffa500;
  color: #000000;
}

#pelcro-app.pelcro-root .pelcro-button-solid:not(:disabled):not([disabled]):not([aria-disabled="true"]):hover {
  background-color: #ffb733;
  color: #000000;
}

#pelcro-app.pelcro-root .pelcro-button-outline:not(:disabled):not([disabled]):not([aria-disabled="true"]) {
  background-color: #ffffff;
  border-color: #000000;
  color: #000000;
}

#pelcro-app.pelcro-root .pelcro-button-outline:not(:disabled):not([disabled]):not([aria-disabled="true"]):hover,
#pelcro-app.pelcro-root .pelcro-social-btn:not(:disabled):not([disabled]):not([aria-disabled="true"]):hover {
  background-color: #f5f5f5;
  border-color: #000000;
  color: #000000;
}

#pelcro-app.pelcro-root .pelcro-input-field {
  border-radius: 4px;
  color: #111111;
  font-family: inherit;
}

#pelcro-app.pelcro-root .pelcro-input-label {
  color: #111111;
  font-family: inherit;
  font-size: 0.875rem;
}

#pelcro-app.pelcro-root .pelcro-link {
  color: #111111;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

#pelcro-app.pelcro-root .pelcro-button-solid:not(:disabled):not([disabled]):not([aria-disabled="true"]):focus-visible,
#pelcro-app.pelcro-root .pelcro-button-outline:not(:disabled):not([disabled]):not([aria-disabled="true"]):focus-visible,
#pelcro-app.pelcro-root .pelcro-social-btn:not(:disabled):not([disabled]):not([aria-disabled="true"]):focus-visible,
#pelcro-app.pelcro-root .pelcro-input-field:focus-visible,
#pelcro-app.pelcro-root .pelcro-link:focus-visible {
  outline: 3px solid #ffa500;
  outline-offset: 2px;
}
