/* Preston Pharmacy blood test widget - extracted from preston-pharmacy-widget.html */
  .old-blood-test-icons {
    display: none;
  }

  #pcs-preston-pharmacy-widget,
  .pcs-ppw-modal-overlay {
    --pcs-ppw-navy: #1a1265;
    --pcs-ppw-pink: #c025b5;
    --pcs-ppw-light: #f6f9f9;
    --pcs-ppw-white: #ffffff;
    --pcs-ppw-text-dark: #1a1265;
    --pcs-ppw-text-muted: #555;
    --pcs-ppw-shadow: 0 12px 30px rgba(26, 18, 101, 0.08);
    --pcs-ppw-tile-outline: var(--pcs-ppw-navy);
  }

  #pcs-preston-pharmacy-widget * {
    box-sizing: border-box;
  }

  #pcs-preston-pharmacy-widget {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    color: var(--pcs-ppw-text-dark);
    background: var(--pcs-ppw-light);
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    align-items: stretch;
  }

  #pcs-preston-pharmacy-widget button,
  #pcs-preston-pharmacy-widget input,
  #pcs-preston-pharmacy-widget a,
  .pcs-ppw-modal-overlay button {
    font: inherit;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-card {
    background: var(--pcs-ppw-white);
    border-radius: 20px;
    box-shadow: var(--pcs-ppw-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--pcs-ppw-tile-outline);
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 18, 101, 0.12);
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-card-top {
    background: var(--pcs-ppw-navy);
    color: white;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom-left-radius: 24px;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-card-body h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--pcs-ppw-navy);
    transition: color 0.2s ease;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-card:hover h3 {
    color: var(--pcs-ppw-pink);
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-widget-title {
    margin: 0;
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    color: var(--pcs-ppw-navy);
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-desc {
    font-size: 14px;
    color: var(--pcs-ppw-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-meta {
    font-size: 13px;
    margin-bottom: 8px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-code,
  .pcs-ppw-modal-content .pcs-ppw-code {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-code {
    margin-bottom: 16px;
  }

  .pcs-ppw-modal-content .pcs-ppw-code {
    margin: -4px 0 18px;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-code-label,
  .pcs-ppw-modal-content .pcs-ppw-code-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(26, 18, 101, 0.6);
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-code-value,
  .pcs-ppw-modal-content .pcs-ppw-code-value {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(26, 18, 101, 0.05);
    color: var(--pcs-ppw-navy);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .pcs-ppw-modal-content .pcs-ppw-code-value {
    font-size: 13px;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-price {
    font-size: 28px;
    font-weight: 800;
    margin: 16px 0;
    color: var(--pcs-ppw-navy);
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-cta,
  #pcs-preston-pharmacy-widget .pcs-ppw-details-btn {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s ease;
    cursor: pointer;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-cta {
    background: var(--pcs-ppw-navy);
    color: white;
    border: 2px solid var(--pcs-ppw-navy);
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-cta:hover {
    background: var(--pcs-ppw-pink);
    border-color: var(--pcs-ppw-pink);
    transform: scale(1.02);
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-cta.pcs-ppw-cta-disabled {
    background: #d9d9e6;
    border-color: #d9d9e6;
    color: #6f6f8a;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-details-btn {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    color: var(--pcs-ppw-navy);
    border: 2px solid #e0e0e0;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-details-btn:hover {
    border-color: var(--pcs-ppw-pink);
    color: var(--pcs-ppw-pink);
    background: rgba(192, 37, 181, 0.04);
  }

  /* Modal Styles */
  .pcs-ppw-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 18, 101, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    /* High z-index for WP */
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .pcs-ppw-modal-overlay.pcs-ppw-active {
    display: flex;
    opacity: 1;
  }

  .pcs-ppw-modal-content {
    background: var(--pcs-ppw-white);
    width: 95%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    box-shadow: 0 30px 60px rgba(26, 18, 101, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .pcs-ppw-modal-overlay.pcs-ppw-active .pcs-ppw-modal-content {
    transform: translateY(0);
  }

  .pcs-ppw-close-modal {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 50%;
    background: var(--pcs-ppw-light);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--pcs-ppw-navy);
    transition: all 0.2s ease;
  }

  .pcs-ppw-close-modal:hover {
    background: var(--pcs-ppw-pink);
    color: white;
  }

  .pcs-ppw-modal-content h2 {
    color: var(--pcs-ppw-navy);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    margin-top: 0;
  }

  .pcs-ppw-modal-content .pcs-ppw-modal-desc {
    color: var(--pcs-ppw-text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .pcs-ppw-modal-content .pcs-ppw-biomarker-section {
    background: var(--pcs-ppw-light);
    padding: 24px;
    border-radius: 16px;
    margin-top: 24px;
  }

  .pcs-ppw-modal-content h4 {
    color: var(--pcs-ppw-navy);
    margin-bottom: 12px;
    font-weight: 700;
    margin-top: 0;
  }

  .pcs-ppw-modal-content ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0;
  }

  .pcs-ppw-modal-content li {
    font-size: 14px;
    color: var(--pcs-ppw-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .pcs-ppw-modal-content li::before {
    content: "\2022";
    color: var(--pcs-ppw-pink);
    font-weight: bold;
  }

  /* Search & Tabs */
  #pcs-preston-pharmacy-widget .pcs-ppw-controls {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-search-help {
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--pcs-ppw-navy);
    opacity: 0.8;
    margin-top: 12px;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-search-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    margin: 0;
    padding: 18px 24px 18px 54px !important;
    border-radius: 16px !important;
    border: 2px solid rgba(26, 18, 101, 0.1) !important;
    background: var(--pcs-ppw-white) !important;
    box-shadow: var(--pcs-ppw-shadow) !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    color: var(--pcs-ppw-navy) !important;
    transition: all 0.3s ease;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-search-input::placeholder {
    color: rgba(26, 18, 101, 0.35);
    opacity: 1;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-search-input:focus {
    outline: none;
    border-color: var(--pcs-ppw-navy);
    box-shadow: 0 0 0 4px rgba(26, 18, 101, 0.1);
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    line-height: 0;
    color: var(--pcs-ppw-navy);
    opacity: 0.5;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-search-icon svg {
    display: block;
    width: 16px;
    height: 16px;
    pointer-events: none;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-tab {
    padding: 12px 24px;
    border-radius: 50px;
    background: var(--pcs-ppw-white);
    color: var(--pcs-ppw-navy);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(26, 18, 101, 0.04);
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-tab:hover {
    background: rgba(192, 37, 181, 0.05);
    color: var(--pcs-ppw-pink);
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-tab.pcs-ppw-active {
    background: var(--pcs-ppw-navy);
    color: white;
    border-color: var(--pcs-ppw-navy);
  }

  /* Category Instruction and Nav */
  #pcs-preston-pharmacy-widget .pcs-ppw-category-instruction {
    text-align: center;
    font-size: 14px;
    color: var(--pcs-ppw-text-muted);
    margin-bottom: 8px;
    font-weight: 600;
    opacity: 0.8;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-tabs-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
  }

  #pcs-preston-pharmacy-widget #pcs-ppw-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 60px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    width: 100%;
    margin: 0 auto;
  }

  #pcs-preston-pharmacy-widget #pcs-ppw-tabs::-webkit-scrollbar {
    display: none;
  }


  #pcs-preston-pharmacy-widget .pcs-ppw-nav-btn {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: var(--pcs-ppw-navy);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(26, 18, 101, 0.12);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    font-size: 14px;
    transition: all 0.2s ease;
    user-select: none;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-nav-btn svg {
    display: block;
    width: 20px;
    height: 20px;
    pointer-events: none;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-nav-btn:hover {
    background: var(--pcs-ppw-pink);
    transform: translateY(-50%) scale(1.1);
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-nav-btn-left {
    left: 0;
  }

  #pcs-preston-pharmacy-widget .pcs-ppw-nav-btn-right {
    right: 0;
  }

  /* Category Header */
  .pcs-ppw-category-header {
    margin-bottom: 32px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: pcsPpwFadeIn 0.4s ease-out;
  }

  .pcs-ppw-category-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--pcs-ppw-navy);
    margin: 0 0 12px 0;
  }

  .pcs-ppw-category-header p {
    font-size: 16px;
    color: var(--pcs-ppw-text-muted);
    line-height: 1.6;
    margin: 0;
  }

  @keyframes pcsPpwFadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (max-width: 600px) {
    #pcs-preston-pharmacy-widget {
      padding: 20px 15px;
    }

    #pcs-preston-pharmacy-widget .pcs-ppw-tabs {
      justify-content: flex-start;
    }

    .pcs-ppw-modal-content ul {
      grid-template-columns: 1fr;
    }

    .pcs-ppw-modal-content {
      padding: 30px 20px;
    }
  }

  /* Biomarker Accrodion */
  .pcs-ppw-panel-group {
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
  }

  .pcs-ppw-panel-group h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--pcs-ppw-text-dark);
  }

  .pcs-ppw-bm {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 16px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--pcs-ppw-navy);
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(26, 18, 101, 0.05);
  }

  .pcs-ppw-bm:last-child {
    border-bottom: none;
  }

  .pcs-ppw-bm:hover {
    background: rgba(26, 18, 101, 0.02);
    border-radius: 8px;
  }

  .pcs-ppw-bm-title {
    flex: 1;
    padding-right: 16px;
  }

  .pcs-ppw-bm-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(192, 37, 181, 0.05);
    color: var(--pcs-ppw-pink);
    flex-shrink: 0;
    transition: all 0.2s ease;
  }

  .pcs-ppw-bm.pcs-ppw-open .pcs-ppw-bm-icon-wrapper {
    background: var(--pcs-ppw-pink);
    color: var(--pcs-ppw-white);
  }

  .pcs-ppw-bm-icon {
    transition: transform 0.3s ease;
  }

  .pcs-ppw-bm.pcs-ppw-open .pcs-ppw-bm-icon {
    transform: rotate(180deg);
  }

  .pcs-ppw-bm-detail {
    display: none;
    font-size: 13px;
    color: var(--pcs-ppw-text-muted);
    padding: 0 8px 16px 8px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(26, 18, 101, 0.05);
  }
