/* Single course price card (templates/course/topc6.php). Loaded after single-23.css. */

section.sh-23-single .the-Tab-functional-side.hfpc {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  width: 360px;
  font-family: Inter, system-ui, sans-serif;
  color: #111827;
}

.hfpc-card {
  background: #fff;
  border: 1px solid #ece8e1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px -12px rgba(17, 24, 39, 0.12);
  display: flex;
  flex-direction: column;
}

.hfpc-body {
  padding: 28px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hfpc-card:not(:has(.hfpc-foot:not([hidden]))) .hfpc-body {
  padding-bottom: 28px;
}

.hfpc [hidden] {
  display: none !important;
}

/* Tabs */
.hfpc-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: #f4f1ec;
  border-radius: 12px;
}

.hfpc-tabs button {
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #4b5563;
  font: 500 14px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.hfpc-tabs button[aria-selected="true"] {
  background: #fff;
  color: #111827;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.1);
}

.hfpc-tabs button:focus-visible,
.hfpc-btn:focus-visible,
.hfpc-stepper button:focus-visible,
.hfpc-foot:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 2px;
}

.hfpc-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Price */
.hfpc-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hfpc-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.hfpc-now {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hfpc-was {
  font-size: 16px;
  color: #9ca3af;
}

.hfpc-vat {
  font-size: 13px;
  color: #6b7280;
}

.hfpc-save {
  margin-left: auto;
  align-self: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: #ecfdf3;
  font-size: 13px;
  font-weight: 700;
  color: #15803d;
}

.hfpc-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 600;
}

.hfpc-timer strong {
  margin-left: auto;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* Buttons */
.hfpc-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hfpc .hfpc-btn,
.hfpc-actions .course_button,
.hfpc-actions .freecoursebtn,
.hfpc-actions .member-course-add,
.hfpc .regulated-enquiry-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #f5a033;
  color: #fff;
  text-shadow: 0 1px 1px rgba(120, 60, 0, 0.35);
  text-decoration: none;
  font: 700 17px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px -8px rgba(245, 160, 51, 0.6);
  cursor: pointer;
}

.hfpc .hfpc-btn:hover,
.hfpc .hfpc-btn:focus {
  color: #fff;
  text-decoration: none;
  filter: brightness(0.96);
}

.hfpc .hfpc-btn--green,
.hfpc .regulated-enquiry-btn {
  height: 52px;
  background: #7ba33a;
  font-size: 16px;
  text-shadow: 0 1px 1px rgba(40, 60, 10, 0.35);
  box-shadow: 0 8px 18px -8px rgba(123, 163, 58, 0.6);
}

.hfpc .regulated-enquiry-btn:hover {
  opacity: 1;
  filter: brightness(0.96);
}

.hfpc .hfpc-btn.is-loading {
  pointer-events: none;
  opacity: 0.75;
  cursor: progress;
}

.hfpc .hfpc-badge {
  position: absolute;
  top: -8px;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px 1px 5px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #7ba33a;
  color: #3f6212;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: none;
}

.hfpc .hfpc-badge svg {
  color: #7ba33a;
}

.hfpc .hfpc-addon {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #3f6212;
  font-size: 14px;
  font-weight: 800;
  text-shadow: none;
}

/* The enquiry shortcode prints its own "or" line; the card doesn't need it. */
.hfpc-actions span.or {
  display: none;
}

.hfpc-actions .regulated-enquiry-wrapper {
  margin: 0;
}

/* Team */
.hfpc-team-calc {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hfpc-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hfpc-unit {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hfpc-unit-price {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

.hfpc-unit-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}

.hfpc-unit-meta b {
  font-size: 13px;
  font-weight: 600;
}

.hfpc-unit-meta small {
  font-size: 12px;
  color: #6b7280;
}

.hfpc-unit-meta del {
  color: #9ca3af;
}

.hfpc-stepper {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  border: 1.5px solid #e5dfd6;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.hfpc-stepper button {
  width: 36px;
  height: 44px;
  border: 0;
  background: #fff;
  color: #e08a1e;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}

.hfpc .hfpc-stepper input {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid #f1ede7;
  border-right: 1px solid #f1ede7;
  border-radius: 0;
  text-align: center;
  font: 800 17px/44px Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #111827;
  background: #fff;
  -moz-appearance: textfield;
  appearance: textfield;
}

.hfpc-stepper input::-webkit-outer-spin-button,
.hfpc-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.hfpc-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1ede7;
  font-size: 14px;
  color: #4b5563;
}

.hfpc-total-label {
  font-size: 13px;
  font-weight: 600;
}

.hfpc-total strong {
  margin-left: 4px;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.hfpc .hfpc-offline {
  margin: -4px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #15803d;
}

/* Trust + logos */
.hfpc-trust {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: -4px;
}

.hfpc-perks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-size: 12px;
}

.hfpc-perks > span {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.hfpc-perks strong {
  color: #111827;
}

.hfpc .hfpc-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hfpc .hfpc-logos--one {
  grid-template-columns: 1fr;
}

.hfpc .hfpc-logos li {
  height: 48px;
  margin: 0;
  padding: 6px 10px;
  box-sizing: border-box;
  border: 1px solid #ece8e1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hfpc .hfpc-logos img {
  display: block;
  max-width: 100%;
  max-height: 32px;
  width: auto;
  height: auto;
}

/* Footer link */
.hfpc .hfpc-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 24px 24px 0;
  padding: 18px 0 22px;
  border-top: 1px solid #ece8e1;
  font-size: 13px;
  color: #4b5563;
  text-decoration: none;
  text-align: center;
}

.hfpc .hfpc-foot strong {
  color: #9a3412;
  font-weight: 700;
}

.hfpc .hfpc-foot svg {
  flex-shrink: 0;
  color: #9a3412;
}

.hfpc .hfpc-foot:hover strong {
  text-decoration: underline;
}

.hfpc-extra {
  margin-top: 20px;
}

/* Mobile sticky buy bar */
.hfpc-sticky {
  display: none;
}

@media (max-width: 767px) {
  .hfpc-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #ece8e1;
    box-shadow: 0 -6px 20px -12px rgba(17, 24, 39, 0.18);
    font-family: Inter, system-ui, sans-serif;
    color: #111827;
  }

  body:has(.hfpc-sticky) {
    padding-bottom: 84px;
  }

  .hfpc-sticky-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
  }

  .hfpc-sticky-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
  }

  .hfpc-sticky-price strong {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .hfpc-sticky-price del {
    font-size: 13px;
    color: #9ca3af;
  }

  .hfpc-sticky-price span {
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
  }

  .hfpc-sticky-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #b91c1c;
    font-variant-numeric: tabular-nums;
  }

  .hfpc-sticky-timer i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
  }

  .hfpc-sticky-timer strong {
    font-size: 16px;
    font-weight: 800;
  }

  .hfpc-sticky .hfpc-btn {
    flex: 0 0 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: 12px;
    background: #f5a033;
    color: #fff;
    text-shadow: 0 1px 1px rgba(120, 60, 0, 0.35);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 18px -8px rgba(245, 160, 51, 0.6);
  }

  .hfpc-sticky .hfpc-btn.is-loading {
    pointer-events: none;
    opacity: 0.75;
  }
}

/* Tablet (768–1023px): sidebar goes full width under the header, card in two columns */
@media (min-width: 768px) and (max-width: 1023px) {
  .row.for-col-order-change-mbl-sh-23-single > .col-sm-8,
  section.sh-double-colored-23 .row > .col-sm-8 {
    width: 100%;
  }

  section.sh-double-colored-23 .row > .col-sm-4 {
    display: none;
  }

  .row.for-col-order-change-mbl-sh-23-single > .col-md-4.col-sm-4.sticky-column {
    position: static;
    width: 100%;
  }

  section.sh-23-single .the-Tab-functional-side.hfpc {
    width: 100% !important;
    max-width: 720px;
    margin: 0 auto;
  }

  .hfpc-body {
    padding: 28px 32px 0;
  }

  .hfpc-tabs {
    width: 320px;
  }

  .hfpc-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: center;
  }

  .hfpc-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: center;
    margin-top: 0;
    padding-top: 20px;
    border-top: 1px solid #f1ede7;
  }

  .hfpc-perks {
    justify-content: flex-start;
  }

  .hfpc .hfpc-foot {
    margin: 20px 0 0;
    padding: 16px 32px 18px;
    background: #faf8f5;
  }
}

/* Narrow desktop column (1024–1300px): let the card fill its column */
@media (min-width: 1024px) and (max-width: 1300px) {
  section.sh-23-single .the-Tab-functional-side.hfpc {
    width: 100% !important;
  }

  .hfpc-body {
    padding: 24px 18px 0;
  }

  .hfpc-now {
    font-size: 38px;
  }
}

@media (max-width: 767px) {
  section.sh-23-single .the-Tab-functional-side.hfpc {
    width: 100% !important;
  }

  .hfpc-body {
    padding: 20px 16px 0;
  }
}
