/* ============================================================
   Prescribe Smart — Site Redesign v2 (2026-11-25)
   Presentation layer only. Loaded last from layouts/default
   so these rules win over the legacy stylesheets.
   Palette: navy #003366 primary, green #2e7d32 accent.
   ============================================================ */

:root {
    --ps-navy: #003366;
    --ps-navy-dark: #002347;
    --ps-navy-light: #0a4d8f;
    --ps-green: #2e7d32;
    --ps-green-dark: #256629;
    --ps-ink: #1c2b3a;
    --ps-muted: #5b6b7c;
    --ps-line: #d9e2ec;
    --ps-bg: #f4f7fa;
    --ps-tint: #eef4fb;
    --ps-card: #ffffff;
    --ps-radius: 12px;
    --ps-shadow: 0 2px 10px rgba(0, 51, 102, 0.08);
}

body.ps-v2 {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    color: var(--ps-ink);
    background: var(--ps-bg);
}

body.ps-v2 h1,
body.ps-v2 h2,
body.ps-v2 h3,
body.ps-v2 h4 {
    font-family: 'Raleway', 'Open Sans', sans-serif;
    color: var(--ps-navy);
}

body.ps-v2 a { color: var(--ps-navy-light); }
body.ps-v2 a:hover, body.ps-v2 a:focus { color: var(--ps-green); }

/* ---------- Top bar / header chrome ---------- */
body.ps-v2 .top-header-wrapper {
    background: #ffffff;
    box-shadow: 0 1px 8px rgba(0, 51, 102, 0.12);
    padding: 10px 0;
}
body.ps-v2 .top-header-wrapper.f-nav {
    background: #ffffff;
}
body.ps-v2 .ps-wordmark {
    font-family: 'Raleway', sans-serif;
    font-size: 27px;
    font-weight: 700;
    color: var(--ps-navy) !important;
    text-decoration: none !important;
    line-height: 48px;
    letter-spacing: -0.5px;
    white-space: nowrap;
}
body.ps-v2 .ps-wordmark .ps-smart { color: var(--ps-green); }
body.ps-v2 .navbar-default {
    background: transparent;
    border: none;
    margin-bottom: 0;
}
body.ps-v2 .main-menu .navbar-nav > li > a {
    color: var(--ps-navy) !important;
    font-weight: 600;
    font-size: 15px;
}
body.ps-v2 .main-menu .navbar-nav > li > a:hover { color: var(--ps-green) !important; }
body.ps-v2 .ps-signin-btn {
    border: 2px solid var(--ps-navy);
    border-radius: 8px;
    padding: 6px 16px !important;
    margin-top: 6px;
}
body.ps-v2 .ps-signin-btn:hover {
    background: var(--ps-navy);
    color: #ffffff !important;
}
body.ps-v2 .badge-notify { background: var(--ps-green); }
body.ps-v2 .after-login-menu .login-menu li a { color: var(--ps-navy); }
body.ps-v2 .navbar-toggle .icon-bar { background-color: var(--ps-navy); }

/* ---------- Hero (home + search screens) ---------- */
body.ps-v2 .mainbgimg {
    background: linear-gradient(135deg, var(--ps-navy-dark) 0%, var(--ps-navy) 55%, var(--ps-navy-light) 100%) !important;
    background-size: cover;
    padding: 56px 0 64px;
}
body.ps-v2 .mainbgimg h1 {
    color: #ffffff;
    font-weight: 700;
}
body.ps-v2 .mainbgimg .highlight-content {
    color: #d7e6f5;
    font-size: 17px;
}
body.ps-v2 .ps-hero-headline {
    color: #ffffff !important;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    margin: 10px 0 14px;
}
body.ps-v2 .ps-hero-sub {
    color: #d7e6f5;
    font-size: 16px;
    max-width: 520px;
}

/* Login card inside hero */
body.ps-v2 .loginform {
    background: #ffffff;
    border-radius: var(--ps-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    padding: 34px 32px 22px;
}
body.ps-v2 .loginform .login-box-title h3 { color: var(--ps-navy); margin-top: 0; }
body.ps-v2 .loginform .input-group-addon {
    background: var(--ps-navy);
    border-color: var(--ps-navy);
    color: #ffffff;
}
body.ps-v2 .loginform .fa { color: #ffffff; }
body.ps-v2 .form-control {
    border: 1px solid var(--ps-line);
    border-radius: 0 6px 6px 0;
    height: 48px;
}
body.ps-v2 .login, body.ps-v2 .btn.login {
    background: var(--ps-green);
    border: 1px solid var(--ps-green);
    color: #ffffff;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.4px;
}
body.ps-v2 .login:hover, body.ps-v2 .btn.login:hover { background: var(--ps-green-dark); }
body.ps-v2 .start-search-wrapper .search-btn {
    display: inline-block;
    background: var(--ps-green);
    color: #ffffff !important;
    font-size: 19px;
    font-weight: 700;
    padding: 16px 30px;
    border-radius: 10px;
    box-shadow: var(--ps-shadow);
    text-decoration: none !important;
}
body.ps-v2 .start-search-wrapper .search-btn:hover { background: var(--ps-green-dark); }

/* Stats + popular strip under hero */
body.ps-v2 .ps-stats-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--ps-line);
    padding: 18px 0 8px;
}
body.ps-v2 .ps-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 34px;
    justify-content: center;
    text-align: center;
}
body.ps-v2 .ps-stat { min-width: 130px; }
body.ps-v2 .ps-stat .ps-stat-num {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--ps-navy);
}
body.ps-v2 .ps-stat .ps-stat-label { color: var(--ps-muted); font-size: 13px; }
body.ps-v2 .ps-popular {
    text-align: center;
    padding: 10px 0 14px;
    color: var(--ps-muted);
    font-size: 14px;
}
body.ps-v2 .ps-popular a {
    display: inline-block;
    background: var(--ps-bg);
    border: 1px solid var(--ps-line);
    border-radius: 20px;
    padding: 4px 14px;
    margin: 2px 3px;
    color: var(--ps-navy);
    font-weight: 600;
    text-decoration: none;
}
body.ps-v2 .ps-popular a:hover { border-color: var(--ps-green); color: var(--ps-green); }

/* ---------- Feature cards (landing) ---------- */
body.ps-v2 .subsecbg { background: var(--ps-bg); }
body.ps-v2 .information-blocks {
    background: var(--ps-card);
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow);
    padding: 26px 20px;
    margin: 14px 0;
    height: 100%;
    text-align: left;
}
body.ps-v2 .information-blocks .img-block img {
    max-height: 52px;
    width: auto;
    margin-bottom: 12px;
}
body.ps-v2 .information-blocks h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 6px 0 8px;
}
body.ps-v2 .information-blocks p { color: var(--ps-muted); font-size: 14.5px; line-height: 1.55; }
body.ps-v2 .app-banner img { border-radius: var(--ps-radius); box-shadow: var(--ps-shadow); }
body.ps-v2 .download-button ul { list-style: none; padding: 0; text-align: center; }
body.ps-v2 .download-button li { display: inline-block; margin: 8px; }

/* ---------- Search screen ---------- */
body.ps-v2 .search-wrapper .search-form {
    background: #ffffff;
    border-radius: var(--ps-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    padding: 30px 34px 26px;
    max-width: 760px;
    margin: 0 auto;
}
body.ps-v2 .search-form .login-box-title h1 {
    color: var(--ps-navy) !important;
    font-size: 26px;
    font-weight: 700;
}
body.ps-v2 .search-form p { color: var(--ps-muted); }
body.ps-v2 .search-form .changeprovince { color: var(--ps-muted) !important; }
body.ps-v2 .ps-search-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 14px 0 16px;
    flex-wrap: wrap;
}
body.ps-v2 .ps-search-tab {
    border: 1.5px solid var(--ps-line);
    background: #ffffff;
    color: var(--ps-navy);
    border-radius: 24px;
    padding: 7px 20px;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.4px;
    cursor: pointer;
}
body.ps-v2 .ps-search-tab.active {
    background: var(--ps-navy);
    border-color: var(--ps-navy);
    color: #ffffff;
}
body.ps-v2 .has-search .form-control {
    border: 2px solid var(--ps-navy);
    border-radius: 10px !important;
    height: 56px;
    font-size: 16.5px;
    padding-left: 46px;
}
body.ps-v2 .has-search .form-control-feedback {
    color: var(--ps-navy);
    font-size: 19px;
    line-height: 56px;
    width: 46px;
    height: 56px;
}
body.ps-v2 .ui-autocomplete {
    border-radius: 10px;
    border: 1px solid var(--ps-line);
    box-shadow: 0 8px 24px rgba(0, 51, 102, 0.16);
    padding: 6px 0;
    max-height: 320px;
    overflow-y: auto;
}
body.ps-v2 .ui-autocomplete .ui-menu-item-wrapper {
    padding: 9px 16px;
    font-size: 15px;
    color: var(--ps-ink);
}
body.ps-v2 .ui-autocomplete .ui-state-active {
    background: var(--ps-navy);
    border-color: var(--ps-navy);
    color: #ffffff;
}

/* ---------- Inner pages: banner ---------- */
body.ps-v2 .inner-page { background: var(--ps-bg); }
body.ps-v2 .inner-page-banner {
    background: linear-gradient(135deg, var(--ps-navy-dark) 0%, var(--ps-navy) 60%, var(--ps-navy-light) 100%) !important;
    padding: 34px 0;
}
body.ps-v2 .inner-banner-content p { color: #cfe0f1; font-size: 15.5px; }
body.ps-v2 .inner-banner-content p .green,
body.ps-v2 .inner-banner-content .green { color: #8fd694 !important; }
body.ps-v2 .inner-banner-content h1 {
    color: #ffffff !important;
    font-weight: 700;
    margin: 4px 0 0;
}
body.ps-v2 .inner-page-content { padding-bottom: 34px; }

/* ---------- Result cards ---------- */
body.ps-v2 .product-wrapper { background: transparent; }
body.ps-v2 .product-main-block {
    background: var(--ps-card);
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow);
    margin: 0 0 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    height: auto;
    overflow: visible;
}
body.ps-v2 .product-main-block .inline-block {
    display: block;
    height: auto;
    vertical-align: middle;
}
body.ps-v2 .product-main-block .product-name { flex: 1 1 300px; min-width: 220px; }
body.ps-v2 .product-main-block .product-mark { flex: 0 1 auto; padding: 4px 18px; }
body.ps-v2 .product-main-block .product-btn { flex: 0 0 auto; margin-left: auto; }
body.ps-v2 .product-category-name {
    color: var(--ps-muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0 0 2px;
}
body.ps-v2 .product-main-name {
    color: var(--ps-ink);
    font-size: 16.5px;
    font-weight: 600;
    margin: 0;
}
body.ps-v2 .ps-type-badge {
    display: inline-block;
    background: #eef3f8;
    color: var(--ps-navy);
    border-radius: 12px;
    padding: 1px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: none;
    margin-left: 6px;
    vertical-align: middle;
}

/* Coverage badges */
body.ps-v2 .product-mark .product-main-name {
    display: inline-block;
    border-radius: 16px;
    padding: 3px 13px;
    font-size: 13.5px;
    font-weight: 700;
    background: #eef3f8;
    color: var(--ps-navy);
}
body.ps-v2 .product-mark .product-main-name.green {
    background: #e3f1e4;
    color: var(--ps-green) !important;
}
body.ps-v2 .product-mark .product-main-name.red {
    background: #fbe7e7;
    color: #b02a2a !important;
}
body.ps-v2 .product-check-ico .icon-image { height: 26px; width: auto; margin-right: 4px; }

/* Buttons on inner pages */
body.ps-v2 .inner-button,
body.ps-v2 .green-btn {
    background: var(--ps-navy) !important;
    border: 1px solid var(--ps-navy) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 700;
    padding: 9px 20px;
    box-shadow: none;
}
body.ps-v2 .inner-button:hover,
body.ps-v2 .green-btn:hover {
    background: var(--ps-green) !important;
    border-color: var(--ps-green) !important;
    color: #ffffff !important;
}

/* Drug group headings on class results */
body.ps-v2 .drug_group_box {
    background: var(--ps-navy);
    border-radius: 8px;
    padding: 9px 16px;
    margin: 18px 0 12px;
}
body.ps-v2 .drug_group_title {
    color: #ffffff;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 16px;
}

/* Alternatives sidebar (drug name results) */
body.ps-v2 .list-group-item.active {
    background-color: var(--ps-navy) !important;
    border-color: var(--ps-navy) !important;
    color: #ffffff !important;
    border-radius: 8px 8px 0 0;
}
body.ps-v2 .list-group-item-alternative { color: var(--ps-navy); font-weight: 600; }
body.ps-v2 .list-group-item-alternative:hover { color: var(--ps-green) !important; background: #eef5ee; }
body.ps-v2 .list-warper .header-a { background-color: var(--ps-navy) !important; color: #ffffff !important; }
body.ps-v2 .list-group::-webkit-scrollbar-thumb { background: var(--ps-navy) !important; }

/* Class page title band */
body.ps-v2 .full-width-title h1 { color: var(--ps-navy); font-weight: 700; }
body.ps-v2 .full-width-title p { color: var(--ps-muted); }

/* Clinical information / summary HTML blocks */
body.ps-v2 .drugDetail {
    background: var(--ps-card);
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow);
    padding: 22px 26px;
}

/* ---------- Drug details page ---------- */
body.ps-v2 .tablet-list-wrapper { padding: 30px 0 8px; }
body.ps-v2 ul.tablet-list li { width: auto; float: none; display: inline-block; }
body.ps-v2 .tablet-block-border {
    background: var(--ps-card);
    border: 1px solid var(--ps-line) !important;
    border-radius: 10px;
    box-shadow: var(--ps-shadow);
    margin: 0 8px 10px 0;
    padding: 12px 18px;
    text-align: center;
}
body.ps-v2 .tablet-quantity { color: var(--ps-muted); font-weight: 600; font-size: 13.5px; }
body.ps-v2 .price-range-btn,
body.ps-v2 .price-btn {
    background: var(--ps-navy);
    color: #ffffff;
    border-radius: 8px;
    padding: 6px 14px;
    display: inline-block;
    margin-top: 6px;
}
body.ps-v2 .price-range { color: #ffffff; font-size: 15.5px; font-weight: 700; }
body.ps-v2 .detail-content {
    background: var(--ps-card);
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow);
    padding: 22px 26px;
    margin-bottom: 18px;
}
body.ps-v2 .detail-content h2, body.ps-v2 .detail-content h3 { color: var(--ps-navy); }
body.ps-v2 .detailsTbl th {
    background: var(--ps-navy);
    color: #ffffff;
    border-color: var(--ps-navy);
}
body.ps-v2 .price-note .note { color: var(--ps-muted); font-size: 13.5px; }

/* ---------- No-results page ---------- */
body.ps-v2 .error-tag {
    background: var(--ps-card);
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow);
    padding: 34px 26px;
    text-align: center;
}
body.ps-v2 .error-tag .big-font {
    font-family: 'Raleway', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--ps-navy);
}
body.ps-v2 .error-tag .small-font { color: var(--ps-muted); font-size: 15.5px; }
body.ps-v2 .ps-noresults-tips {
    max-width: 520px;
    margin: 16px auto 4px;
    text-align: left;
    color: var(--ps-muted);
    font-size: 14.5px;
    line-height: 1.6;
}
body.ps-v2 .ps-noresults-actions { margin-top: 20px; }
body.ps-v2 .ps-noresults-actions .btn { margin: 4px; }

/* ---------- Footer ---------- */
body.ps-v2 .footer-wrapper {
    background: var(--ps-navy-dark);
    padding: 26px 0;
}
body.ps-v2 .footer-menu li a {
    color: #cfe0f1 !important;
    font-weight: 600;
}
body.ps-v2 .footer-menu li a:hover { color: #ffffff !important; }
body.ps-v2 .copyright-block p { color: #9db8d2; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    body.ps-v2 .mainbgimg { padding: 34px 0 40px; }
    body.ps-v2 .ps-hero-headline { font-size: 24px; }
    body.ps-v2 .ps-wordmark { font-size: 23px; line-height: 40px; }
    body.ps-v2 .loginform { padding: 24px 20px 16px; margin-top: 22px; }
    body.ps-v2 .search-wrapper .search-form { padding: 22px 18px; }
    body.ps-v2 .product-main-block { padding: 12px 14px; }
    body.ps-v2 .product-main-block .product-mark { padding: 6px 0; }
    body.ps-v2 .product-main-block .product-btn { margin-left: 0; margin-top: 8px; }
    body.ps-v2 .drugDetail, body.ps-v2 .detail-content { padding: 16px; }
    body.ps-v2 .ps-stat { min-width: 40%; }
}

/* ============================================================
   Main page v2 (2026-11-25) — minimal white landing, route /
   Centre block, pill search, compact sign-in card, plain
   feature row. Appended after the v1 rules; these win where
   they overlap for the classes below.
   ============================================================ */

body.ps-v2 .ps-home-hero {
    background: #ffffff;
    padding: 58px 0 46px;
    text-align: center;
}
body.ps-v2 .ps-home-centre { max-width: 680px; margin: 0 auto; }
body.ps-v2 .ps-home-headline {
    font-family: 'Raleway', 'Open Sans', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: var(--ps-navy);
    line-height: 1.2;
    margin: 0 0 12px;
}
body.ps-v2 .ps-home-sub {
    color: var(--ps-muted);
    font-size: 16.5px;
    line-height: 1.55;
    max-width: 600px;
    margin: 0 auto;
}
body.ps-v2 .ps-home-search {
    display: flex;
    align-items: center;
    max-width: 560px;
    margin: 26px auto 0;
    background: #ffffff;
    border: 2px solid var(--ps-navy);
    border-radius: 999px;
    padding: 6px 6px 6px 18px;
}
body.ps-v2 .ps-home-search-icon { color: var(--ps-navy); font-size: 16px; margin-right: 10px; }
body.ps-v2 .ps-home-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    font-size: 15.5px;
    color: var(--ps-ink);
    height: 40px;
    padding: 0;
}
body.ps-v2 .ps-home-search-btn {
    flex: 0 0 auto;
    background: var(--ps-green);
    border: 1px solid var(--ps-green);
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 999px;
    padding: 9px 22px;
    cursor: pointer;
}
body.ps-v2 .ps-home-search-btn:hover { background: var(--ps-green-dark); border-color: var(--ps-green-dark); }
body.ps-v2 .ps-home-popular {
    margin: 14px 0 0;
    color: var(--ps-muted);
    font-size: 13.5px;
}
body.ps-v2 .ps-home-popular a { color: var(--ps-navy); font-weight: 600; text-decoration: none; }
body.ps-v2 .ps-home-popular a:hover { color: var(--ps-green); }

/* Compact sign-in card under the centre block */
body.ps-v2 .ps-home-login {
    max-width: 430px;
    margin: 38px auto 0;
    text-align: left;
}
body.ps-v2 .ps-home-hero .loginform {
    border: 1px solid var(--ps-line);
    box-shadow: 0 2px 14px rgba(0, 51, 102, 0.10);
    padding: 26px 28px 16px;
    margin-top: 0;
}
body.ps-v2 .ps-home-login .start-search-wrapper { text-align: center; }

/* Home search: keep a clear gap between the wording and the Search button */
body.ps-v2 .ps-home-search { gap: 10px; }
body.ps-v2 .ps-home-search-input { text-overflow: ellipsis; }

/* Sign-in boxes in navy (Fady Nov 25: too much white) */
body.ps-v2 .ps-home-hero .loginform {
    background: var(--ps-navy);
    border-color: var(--ps-navy);
}
body.ps-v2 .ps-home-hero .loginform .login-box-title h3 { color: #ffffff !important; }
body.ps-v2 .ps-home-hero .loginform .login-box-title hr { border-color: rgba(255, 255, 255, 0.45); }
body.ps-v2 .ps-home-hero .loginform .input-group-addon {
    background: var(--ps-green);
    border-color: var(--ps-green);
    color: #ffffff;
}
body.ps-v2 .ps-home-hero .loginform .forgot { color: #c9d6e4; }
body.ps-v2 .ps-home-hero .loginform .forgot a { color: #ffffff; text-decoration: underline; }
body.ps-v2 .ps-login-card {
    background: var(--ps-navy);
    border-color: var(--ps-navy);
}
body.ps-v2 .ps-login-card h1 { color: #ffffff; }
body.ps-v2 .ps-login-sub { color: #c9d6e4; }
body.ps-v2 .ps-login-forgot a { color: #ffffff; text-decoration: underline; }
body.ps-v2 .ps-login-btn { background: var(--ps-green); }
body.ps-v2 .ps-login-btn:hover { background: var(--ps-green-dark); }
body.ps-v2 .ps-login-register { color: #c9d6e4; }
body.ps-v2 .ps-login-register a { color: #ffffff; text-decoration: underline; }

/* Plain feature row + bottom strip */
body.ps-v2 .ps-home-features { background: #ffffff; padding: 6px 0 0; }
body.ps-v2 .ps-feature { text-align: center; padding: 16px 10px 4px; }
body.ps-v2 .ps-feature h4 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ps-navy);
    margin: 0 0 4px;
}
body.ps-v2 .ps-feature p { color: var(--ps-muted); font-size: 13px; margin: 0; }
body.ps-v2 .ps-home-strip {
    border-top: 1px solid var(--ps-line);
    margin-top: 20px;
    padding: 14px 0 18px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 18px;
    color: var(--ps-muted);
    font-size: 13px;
}

@media (max-width: 767px) {
    body.ps-v2 .ps-home-hero { padding: 38px 0 34px; }
    body.ps-v2 .ps-home-headline { font-size: 28px; }
    body.ps-v2 .ps-home-sub { font-size: 15px; }
    body.ps-v2 .ps-home-search { padding-left: 14px; }
    body.ps-v2 .ps-home-search-btn { padding: 9px 16px; }
    body.ps-v2 .ps-home-strip { justify-content: center; text-align: center; }
}

/* Main page: guest sign-in note under popular searches */
body.ps-v2 .ps-home-signin-note { margin-top: 10px; font-size: 13.5px; color: #55657a; }
body.ps-v2 .ps-home-signin-note a { color: #003366; font-weight: 600; text-decoration: underline; }

/* Main page: signed-in Start Searching button (overrides legacy mystyle.css) */
body.ps-v2 .ps-home-login .start-search-wrapper { text-align: center; padding: 6px 0 2px; }
body.ps-v2 .ps-home-login .start-search-wrapper a.search-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: #003366; color: #fff !important; text-decoration: none;
    padding: 13px 30px; font-size: 16px; font-weight: 700;
    text-transform: none; letter-spacing: 0; line-height: 1;
    border-radius: 999px; height: auto; margin-top: 0;
}
body.ps-v2 .ps-home-login .start-search-wrapper a.search-btn i {
    width: auto; height: auto; margin: 0; position: static;
    background: transparent !important; border-radius: 0;
    font-size: 15px; line-height: 1;
}
body.ps-v2 .ps-home-login .start-search-wrapper a.search-btn:hover { background: #2e7d32; color: #fff !important; }

/* ---------- Drug page polish v3 (drug name results) ---------- */
body.ps-v2 .inner-page-banner { padding: 20px 0 22px; }
body.ps-v2 .inner-banner-content p {
    font-style: normal; font-size: 12px; font-weight: 700;
    letter-spacing: 1.6px; text-transform: uppercase;
    color: #a9c3e2; margin: 0 0 6px;
}
body.ps-v2 .inner-banner-content h1 { font-size: 30px; line-height: 1.15; margin: 0; }
body.ps-v2 .inner-banner-content h1 .fa-heart { font-size: 23px; }

/* product rows: tighter, aligned columns */
body.ps-v2 .drugname-search-result .product-main-block {
    padding: 13px 18px; margin: 0 0 9px; gap: 8px 14px;
    border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 51, 102, 0.05);
}
body.ps-v2 .drugname-search-result .product-category-name {
    font-size: 10.5px; letter-spacing: 1.1px; color: #93a3b8; margin: 0 0 1px;
}
body.ps-v2 .drugname-search-result .product-main-name { font-size: 16px; line-height: 1.3; }
body.ps-v2 .drugname-search-result .product-mark { padding: 2px 10px; }
body.ps-v2 .drugname-search-result .product-mark .product-main-name {
    display: inline-block; padding: 5px 13px; border-radius: 999px;
    font-size: 13px; font-weight: 700; background: #e8eff7; color: var(--ps-navy);
}
body.ps-v2 .drugname-search-result .product-mark .product-main-name.green { background: #e4f2e4; color: #2e7d32; }
body.ps-v2 .drugname-search-result .product-mark .product-main-name.red { background: #fbe9e7; color: #b3261e; }
body.ps-v2 .drugname-search-result .product-btn .inner-button {
    border-radius: 999px !important; padding: 8px 18px; font-size: 13px;
    text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap;
}

/* Clinical Information jump button: sits cleanly above the cards */
body.ps-v2 .inner-main-content-block > .text-center { margin: 0 0 14px; }
body.ps-v2 .inner-main-content-block > .text-center .inner-button {
    border-radius: 999px !important; padding: 9px 22px; font-size: 13.5px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

/* Alternatives sidebar: one clean card, no inner boxes, no scrollbar */
body.ps-v2 .drug_name_inner_page_content .col-lg-3 .list-group {
    max-height: none !important; overflow: visible !important;
    background: #ffffff; border: 1px solid var(--ps-line);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 51, 102, 0.05);
}
body.ps-v2 .drug_name_inner_page_content .col-lg-3 .list-group-item.active {
    background-color: var(--ps-navy) !important; color: #ffffff !important;
    font-size: 14.5px !important; font-weight: 700 !important;
    text-align: left !important; padding: 13px 16px !important;
    border: none; border-radius: 0; margin: 0;
}
body.ps-v2 .drug_name_inner_page_content .alternative-cat { margin: 0; padding: 0; }
body.ps-v2 .drug_name_inner_page_content .list-group-item-alternative {
    display: block; padding: 11px 16px; font-size: 14px; font-weight: 600;
    color: var(--ps-ink); border: none; border-top: 1px solid #eef2f7;
    background: #ffffff; border-radius: 0;
}
body.ps-v2 .drug_name_inner_page_content .list-group-item-alternative i {
    color: var(--ps-green); font-size: 12px; padding-right: 8px !important;
}
body.ps-v2 .drug_name_inner_page_content .list-group-item-alternative:hover {
    background: #f4f8fc; color: var(--ps-navy) !important;
}

/* Clinical summary card */
body.ps-v2 #clinicinformation .drugDetail {
    border: 1px solid var(--ps-line); border-radius: 12px;
    padding: 22px 26px; box-shadow: 0 1px 2px rgba(0, 51, 102, 0.05);
}
@media (max-width: 767px) {
    body.ps-v2 .inner-banner-content h1 { font-size: 25px; }
    body.ps-v2 #clinicinformation .drugDetail { padding: 16px; }
}

/* ---------- Inner banner: slim (was fixed 230px, bottom-aligned) ---------- */
body.ps-v2 .inner-page-banner { height: auto; min-height: 0; padding: 18px 0 20px; }
body.ps-v2 .inner-page-banner .table-cell { vertical-align: middle; }
body.ps-v2 .inner-banner-content { padding-bottom: 0; }
body.ps-v2 .inner-banner-content p .green { text-transform: uppercase; }

/* ---------- Generic pill, back buttons, compact price tiles ---------- */
body.ps-v2 .ps-generic-pill {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .6px;
    text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
    vertical-align: middle; margin-left: 8px; background: #e8eff7; color: var(--ps-navy);
    font-style: normal;
}
body.ps-v2 .inner-banner-content .ps-generic-pill {
    background: rgba(255,255,255,.16); color: #ffffff; border: 1px solid rgba(255,255,255,.45);
}
body.ps-v2 .ps-back-row { padding-top: 16px; }
body.ps-v2 .inner-main-content-block .ps-back-row { padding-top: 0; padding-bottom: 12px; }
body.ps-v2 .ps-back-btn {
    display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600;
    color: var(--ps-navy) !important; background: #ffffff; border: 1px solid var(--ps-line);
    border-radius: 999px; padding: 7px 14px; text-decoration: none !important;
}
body.ps-v2 .ps-back-btn:hover { border-color: var(--ps-navy); }
body.ps-v2 ul.tablet-list li { height: auto; }
body.ps-v2 .tablet-block { display: block; padding: 0; }
body.ps-v2 .tablet-block-border { height: auto; }

/* ---------- Result card spacing fix ---------- */
body.ps-v2 .product-main-block .table-block { display: block; height: auto; width: auto; }
body.ps-v2 .product-main-block .table-cell { display: block; }
body.ps-v2 .product-main-block .product-mark { flex: 0 0 auto; padding: 4px 10px; }
body.ps-v2 .product-main-block .product-mark .product-main-name { white-space: nowrap; }
body.ps-v2 .product-main-block .product-mark p { margin: 0; }
body.ps-v2 .product-main-block .product-name .product-main-name { margin: 0; }

/* ---------- Home feature cards ---------- */
body.ps-v2 .ps-home-features { padding: 14px 0 6px; }
body.ps-v2 .ps-feature {
    background: #f4f8fc; border: 1px solid var(--ps-line); border-radius: 14px;
    padding: 18px 14px 14px; margin-bottom: 12px; text-align: center;
}
body.ps-v2 .ps-feature-icon {
    width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 50%;
    background: var(--ps-navy); color: #ffffff; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}

/* ---------- Search page: simple ---------- */
body.ps-v2 .mainbgimg:has(.search-wrapper) {
    background: #f7fafc !important; background-image: none !important; padding: 40px 0 48px;
}
body.ps-v2 .search-wrapper .search-form {
    box-shadow: none; border: 1px solid var(--ps-line); max-width: 680px; padding: 26px 30px 22px;
}
body.ps-v2 .search-form .login-box-title h1 { font-size: 24px; }
body.ps-v2 .search-form .title-underline hr { display: none; }
body.ps-v2 .search-form .changeprovince { font-size: 13.5px; margin-bottom: 6px; }

/* ---------- Class pages: compact legend, titles, groups ---------- */
body.ps-v2 ul.top-icons-listing {
    display: flex; gap: 30px; align-items: center; flex-wrap: wrap; padding: 14px 0 4px; overflow: visible;
}
body.ps-v2 ul.top-icons-listing li {
    width: auto; float: none; display: flex; align-items: center; gap: 9px; padding: 0; text-align: left;
}
body.ps-v2 .top-icon-img img.icon-image { width: 22px; height: 22px; }
body.ps-v2 .top-icon-text { padding-top: 0; }
body.ps-v2 .top-icon-text p {
    margin: 0; display: inline; font-size: 13px; line-height: 1.35; color: var(--ps-muted);
}
body.ps-v2 .full-width-title { background: transparent; padding: 0; color: var(--ps-ink); }
body.ps-v2 .full-width-title .full-width-title {
    padding: 16px 0 6px; margin-top: 10px; border-top: 1px solid var(--ps-line);
}
body.ps-v2 .full-width-title h1 {
    color: var(--ps-navy) !important; font-size: 19px !important; text-align: left; margin: 0 0 2px !important;
}
body.ps-v2 .full-width-title p { color: var(--ps-muted) !important; font-size: 13px; margin: 0 !important; }
body.ps-v2 .drug_group_box { margin: 20px 0 8px; }
body.ps-v2 .drug_group_title {
    color: var(--ps-navy); font-size: 13px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase;
}
body.ps-v2 .product-check-ico .icon-image { width: 22px; height: 22px; }
body.ps-v2 .btn.inner-button.green-btn {
    background: var(--ps-navy); border-color: var(--ps-navy); color: #ffffff;
    border-radius: 999px; padding: 8px 20px; font-weight: 600;
}
body.ps-v2 .btn.inner-button.green-btn:hover { background: var(--ps-green-dark); border-color: var(--ps-green-dark); }

/* ---------- Home app band ---------- */
body.ps-v2 .ps-app-band {
    margin-top: 16px; background: var(--ps-navy); border-radius: 14px; padding: 16px 20px;
    display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
}
body.ps-v2 .ps-app-band-text { color: #ffffff; font-weight: 600; font-size: 15.5px; }
body.ps-v2 .ps-app-band a { display: inline-block; margin: 0 4px; }
body.ps-v2 .ps-app-band img { height: 40px; width: auto; }
body.ps-v2 .subsecbg h3 { color: var(--ps-navy); }

/* ---------- Gap tightening (legacy 80px wrapper margin) ---------- */
body.ps-v2 .inner-main-content-wrapper { margin: 18px 0 26px; }
body.ps-v2 .search-results { margin-top: 14px; }
body.ps-v2 .inner-page-content > .text-center { padding-bottom: 2px !important; }

/* ---------- Search page background (soft image, compact) ---------- */
body.ps-v2 .mainbgimg.ps-search-bg {
    background: url(../images/ps-search-bg.jpg) center / cover no-repeat !important;
    min-height: 0; padding: 46px 0 54px;
}
body.ps-v2 .ps-search-bg .search-wrapper { height: auto; min-height: 0; }
body.ps-v2 .ps-search-bg .table-block { display: block; height: auto; }
body.ps-v2 .ps-search-bg .table-cell { display: block; }
body.ps-v2 .ps-search-bg .search-form { box-shadow: 0 12px 32px rgba(0, 51, 102, .14); }

/* ---------- Drug Summary jump bar ---------- */
body.ps-v2 .ps-summary-nav {
    position: sticky; top: 8px; z-index: 20; display: flex; gap: 8px; flex-wrap: wrap;
    background: rgba(255,255,255,.96); border: 1px solid var(--ps-line); border-radius: 12px;
    padding: 10px 12px; margin: 0 0 14px; box-shadow: var(--ps-shadow);
}
body.ps-v2 .ps-summary-chip {
    border: 1px solid var(--ps-line); background: #f4f8fc; color: var(--ps-navy);
    font-size: 13px; font-weight: 600; border-radius: 999px; padding: 6px 13px; cursor: pointer;
}
body.ps-v2 .ps-summary-chip:hover { background: var(--ps-navy); color: #ffffff; border-color: var(--ps-navy); }
body.ps-v2 .drugDetail p[id^="ps-sec-"] { scroll-margin-top: 96px; }

/* ---------- Compounding catalog ---------- */
body.ps-v2 .ps-compounding-menu a {
    font-weight: 700; color: var(--ps-navy) !important; font-size: 14.5px;
    padding: 6px 4px; display: inline-block;
}
body.ps-v2 .ps-compound-intro { color: var(--ps-muted); font-size: 14.5px; margin: 0 0 8px; }
body.ps-v2 .ps-compound-section {
    font-size: 16px; font-weight: 700; color: var(--ps-navy); margin: 22px 0 10px;
    padding-bottom: 5px; border-bottom: 2px solid var(--ps-navy);
}
body.ps-v2 .ps-compound-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
body.ps-v2 .ps-compound-card {
    display: flex; flex-direction: column; gap: 5px; background: var(--ps-card);
    border: 1px solid var(--ps-line); border-radius: var(--ps-radius); padding: 14px 16px;
    text-decoration: none !important; box-shadow: var(--ps-shadow);
}
body.ps-v2 .ps-compound-card:hover { border-color: var(--ps-navy); }
body.ps-v2 .ps-compound-name { font-weight: 700; color: var(--ps-navy); font-size: 15px; line-height: 1.3; }
body.ps-v2 .ps-compound-use { color: var(--ps-muted); font-size: 13px; line-height: 1.4; }
body.ps-v2 .ps-compound-meta { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ps-muted); }
body.ps-v2 .ps-compound-price { font-weight: 700; color: var(--ps-navy); white-space: nowrap; }
body.ps-v2 .ps-compound-detail-use { font-size: 16px; color: var(--ps-ink); }
body.ps-v2 .ps-compound-facts { display: flex; gap: 26px; flex-wrap: wrap; margin: 14px 0; }
body.ps-v2 .ps-compound-facts div { display: flex; flex-direction: column; gap: 2px; }
body.ps-v2 .ps-compound-facts strong { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--ps-muted); }
body.ps-v2 .ps-compound-facts span { font-size: 15px; font-weight: 600; color: var(--ps-navy); }
body.ps-v2 .ps-compound-note { color: var(--ps-muted); font-size: 13.5px; }
body.ps-v2 .ps-compound-soon {
    background: #f4f8fc; border: 1px solid var(--ps-line); border-radius: 10px;
    padding: 12px 14px; font-size: 14px; color: var(--ps-navy); font-weight: 600;
}

/* ---------- Compounding: about block + collapsible sections ---------- */
body.ps-v2 .ps-compound-about {
    background: #f4f8fc; border: 1px solid var(--ps-line); border-radius: var(--ps-radius);
    padding: 16px 18px; margin: 0 0 18px; font-size: 14.5px; color: var(--ps-ink); line-height: 1.55;
}
body.ps-v2 .ps-compound-about p { margin: 0 0 8px; }
body.ps-v2 .ps-compound-about ul { margin: 0; padding-left: 18px; }
body.ps-v2 .ps-compound-about li { margin: 3px 0; }
body.ps-v2 .ps-compound-group { margin: 0 0 12px; }
body.ps-v2 .ps-compound-toggle {
    width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
    background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: 10px;
    padding: 12px 16px; font-size: 16px; font-weight: 700; color: var(--ps-navy); cursor: pointer;
}
body.ps-v2 .ps-compound-toggle:hover { border-color: var(--ps-navy); }
body.ps-v2 .ps-compound-toggle .ps-compound-count {
    background: #eef4fb; color: var(--ps-navy); font-size: 12px; font-weight: 700;
    border-radius: 999px; padding: 2px 9px;
}
body.ps-v2 .ps-compound-toggle i { margin-left: auto; font-size: 13px; transition: transform .18s ease; }
body.ps-v2 .ps-compound-toggle.is-open i { transform: rotate(180deg); }
body.ps-v2 .ps-compound-body { padding: 12px 2px 4px; }
body.ps-v2 .ps-compound-section { display: none; }

/* ---------- Compounding: app-style steps + about card ---------- */
body.ps-v2 .ps-compound-intro-line { font-size: 15.5px; color: var(--ps-ink); margin: 0 0 14px; }
body.ps-v2 .ps-steps-card {
    background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow); padding: 16px 18px; margin: 0 0 20px;
}
body.ps-v2 .ps-steps-card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--ps-navy); }
body.ps-v2 .ps-step-row { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
body.ps-v2 .ps-step-row i { color: #5aa73c; font-size: 19px; margin-top: 1px; }
body.ps-v2 .ps-step-row p { margin: 0; font-size: 14.5px; color: var(--ps-ink); }
body.ps-v2 .ps-browse-heading { font-size: 17px; font-weight: 700; color: var(--ps-navy); margin: 0 0 12px; }
body.ps-v2 .ps-about-body { font-size: 14.5px; color: var(--ps-ink); line-height: 1.6; max-width: 760px; }
body.ps-v2 .ps-about-body p { margin: 0 0 10px; }
body.ps-v2 .ps-about-privacy { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; color: var(--ps-navy); }
body.ps-v2 .ps-about-privacy i { margin-top: 3px; }

/* ---------- Compounding: write your own ---------- */
body.ps-v2 .ps-custom-compound {
    display: flex; flex-direction: column; gap: 3px; background: var(--ps-navy); color: #ffffff !important;
    border-radius: var(--ps-radius); padding: 16px 18px; margin: 4px 0 14px; text-decoration: none !important;
}
body.ps-v2 .ps-custom-compound:hover { background: #004a80; }
body.ps-v2 .ps-custom-title { font-size: 16.5px; font-weight: 700; }
body.ps-v2 .ps-custom-sub { font-size: 13.5px; color: #cfe0f2; }

/* ---------- Home: browse compounds under Start Searching ---------- */
body.ps-v2 .ps-browse-compounds {
    display: inline-block; margin-top: 12px; padding: 11px 22px; border-radius: 999px;
    border: 1.5px solid var(--ps-navy); color: var(--ps-navy) !important; font-weight: 600;
    font-size: 15px; text-decoration: none !important; background: #ffffff;
}
body.ps-v2 .ps-browse-compounds:hover { background: var(--ps-navy); color: #ffffff !important; }
body.ps-v2 .start-search-wrapper { display: flex; flex-direction: column; align-items: center; }

/* ---------- Compound detail + order flow ---------- */
body.ps-v2 .ps-detail-card {
    background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow); padding: 18px; margin: 0 0 16px; max-width: 820px;
}
body.ps-v2 .ps-detail-use { font-size: 15.5px; margin: 0 0 12px; }
body.ps-v2 .ps-detail-rows { display: flex; flex-direction: column; }
body.ps-v2 .ps-detail-row {
    display: flex; justify-content: space-between; gap: 16px; padding: 8px 0;
    border-bottom: 1px solid var(--ps-line); font-size: 14.5px;
}
body.ps-v2 .ps-detail-row:last-child { border-bottom: none; }
body.ps-v2 .ps-detail-row span { color: var(--ps-muted); flex: 0 0 110px; }
body.ps-v2 .ps-detail-row strong { text-align: right; font-weight: 600; }
body.ps-v2 .ps-detail-price { color: var(--ps-navy); font-size: 16px; }
body.ps-v2 .ps-detail-note { font-size: 13px; color: var(--ps-muted); margin: 10px 0 0; }
body.ps-v2 .ps-detail-h { font-size: 14px; font-weight: 700; color: var(--ps-navy); margin: 16px 0 6px; }
body.ps-v2 .ps-about-title { font-size: 18px; font-weight: 700; color: var(--ps-navy); margin: 0 0 6px; }
body.ps-v2 .ps-order-btn {
    display: inline-block; margin-top: 16px; background: var(--ps-navy); color: #ffffff !important;
    padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
    text-decoration: none !important; border: none; cursor: pointer;
}
body.ps-v2 .ps-order-btn:hover { background: #004a80; }
body.ps-v2 .ps-order-form { max-width: 820px; }
body.ps-v2 .ps-form-card {
    background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow); padding: 18px; margin: 0 0 16px;
}
body.ps-v2 .ps-form-card h3 { margin: 0 0 12px; font-size: 16.5px; font-weight: 700; color: var(--ps-navy); }
body.ps-v2 .ps-field { display: block; margin: 0 0 14px; }
body.ps-v2 .ps-field > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--ps-navy); margin-bottom: 5px; }
body.ps-v2 .ps-field input[type="text"], body.ps-v2 .ps-field input[type="tel"],
body.ps-v2 .ps-field input[type="email"], body.ps-v2 .ps-field input[type="date"],
body.ps-v2 .ps-field textarea, body.ps-v2 .ps-select {
    width: 100%; border: 1px solid var(--ps-line); border-radius: 10px; padding: 10px 12px;
    font-size: 14.5px; background: #ffffff; color: var(--ps-ink); box-sizing: border-box;
}
body.ps-v2 .ps-field-note { font-size: 13.5px; color: var(--ps-muted); margin: 0 0 12px; }
body.ps-v2 .ps-muted { color: var(--ps-muted); font-weight: 400; }
body.ps-v2 .ps-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
body.ps-v2 .ps-chip-col { display: flex; flex-direction: column; gap: 8px; }
body.ps-v2 .ps-chip, body.ps-v2 .ps-chip-wide {
    display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--ps-line);
    border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; background: #fff; margin: 0;
}
body.ps-v2 .ps-chip-wide { border-radius: 12px; }
body.ps-v2 .ps-chip:has(input:checked), body.ps-v2 .ps-chip-wide:has(input:checked) {
    border-color: var(--ps-navy); background: var(--ps-tint); font-weight: 600;
}
body.ps-v2 .ps-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin: 12px 0; cursor: pointer; }
body.ps-v2 .ps-check input { margin-top: 3px; }
body.ps-v2 .ps-terms { font-size: 14px; line-height: 1.55; background: var(--ps-tint); border-radius: 10px; padding: 12px 16px; margin-bottom: 6px; }
body.ps-v2 .ps-terms ul { margin: 6px 0; padding-left: 18px; }
body.ps-v2 .ps-compound-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
body.ps-v2 .ps-compound-links a {
    border: 1px solid var(--ps-line); background: #fff; border-radius: 999px; padding: 8px 16px;
    font-size: 14px; font-weight: 600; color: var(--ps-navy) !important; text-decoration: none !important;
}
body.ps-v2 .ps-compound-links a:hover { background: var(--ps-tint); }
body.ps-v2 .ps-detail-name { font-size: 21px; font-weight: 700; color: var(--ps-navy); margin: 0 0 4px; }

/* ---------- Order form option cards ---------- */
body.ps-v2 .ps-opt {
    display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--ps-line);
    border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #ffffff; margin: 0;
    font-weight: 400;
}
body.ps-v2 .ps-opt input { flex: 0 0 auto; margin-top: 3px; }
body.ps-v2 .ps-opt-main { flex: 1 1 auto; display: block; font-size: 14.5px; line-height: 1.45; }
body.ps-v2 .ps-opt-main strong { display: block; font-weight: 700; color: var(--ps-ink); }
body.ps-v2 .ps-opt-desc { display: block; color: var(--ps-muted); font-weight: 400; margin-top: 2px; }
body.ps-v2 .ps-opt-price { flex: 0 0 auto; font-weight: 700; color: var(--ps-navy); font-size: 14.5px; padding-top: 1px; }
body.ps-v2 .ps-opt:has(input:checked) { border-color: var(--ps-navy); background: var(--ps-tint); }
body.ps-v2 .ps-compounding-banner .banner-text h5 { font-size: 36px; }

/* ---------- Compounding: centre the How It Works block ---------- */
body.ps-v2 .ps-steps-card { text-align: center; }
body.ps-v2 .ps-step-row { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; text-align: left; }

/* ---------- Compounding search ---------- */
body.ps-v2 .ps-compound-search {
    display: flex; align-items: center; gap: 10px; background: #ffffff;
    border: 1px solid var(--ps-line); border-radius: 999px; padding: 12px 18px;
    box-shadow: var(--ps-shadow); margin: 0 0 18px; max-width: 640px;
}
body.ps-v2 .ps-compound-search i { color: var(--ps-muted); }
body.ps-v2 .ps-compound-search input {
    border: none; outline: none; flex: 1; font-size: 15px; background: transparent; color: var(--ps-ink);
}
body.ps-v2 .ps-no-results { font-size: 15px; margin: 6px 0 18px; }
body.ps-v2 .ps-steps-body { padding: 14px 18px 16px; }
body.ps-v2 .ps-steps-group .ps-step-row { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; text-align: left; }

/* ---------- Compounding: steps left again + My boxes ---------- */
body.ps-v2 .ps-steps-group .ps-step-row { width: auto; margin-left: 0; margin-right: 0; }
body.ps-v2 .ps-my-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
@media (max-width: 560px) { body.ps-v2 .ps-my-grid { grid-template-columns: 1fr; } }
body.ps-v2 .ps-my-card {
    display: flex; align-items: center; gap: 12px; background: var(--ps-card);
    border: 1px solid var(--ps-line); border-radius: var(--ps-radius); box-shadow: var(--ps-shadow);
    padding: 14px 16px; text-decoration: none !important; color: var(--ps-ink) !important;
}
body.ps-v2 .ps-my-card:hover { background: var(--ps-tint); }
body.ps-v2 .ps-my-card > i:first-child { font-size: 22px; color: var(--ps-navy); }
body.ps-v2 .ps-my-main { flex: 1; display: flex; flex-direction: column; }
body.ps-v2 .ps-my-main strong { font-size: 15.5px; color: var(--ps-navy); }
body.ps-v2 .ps-my-main span { font-size: 13px; color: var(--ps-muted); }
body.ps-v2 .ps-my-arrow { color: var(--ps-muted); font-size: 13px; }

/* ---------- Compounding banner: solid navy, readable title ---------- */
body.ps-v2 .ps-compounding-banner { background: var(--ps-navy); }
body.ps-v2 .ps-compounding-banner .banner-text h5 { color: #ffffff; font-weight: 700; letter-spacing: .01em; }

/* ---------- Compound cards: info button + About sheet ---------- */
body.ps-v2 .ps-compound-card { position: relative; }
body.ps-v2 .ps-card-link { display: flex; flex-direction: column; gap: 5px; flex: 1; text-decoration: none !important; color: inherit; }
body.ps-v2 .ps-has-info .ps-compound-name { padding-right: 32px; }
body.ps-v2 .ps-info-btn {
    position: absolute; top: 10px; right: 10px; width: 27px; height: 27px; border-radius: 50%;
    background: #5aa73c; color: #ffffff; border: none; font-size: 13px; line-height: 1;
    display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2;
}
body.ps-v2 .ps-info-btn:hover { background: #4c8f31; }
body.ps-v2 .ps-modal {
    position: fixed; inset: 0; background: rgba(0, 32, 64, .45); z-index: 2000;
    align-items: flex-start; justify-content: center; padding: 30px 14px;
}
body.ps-v2 .ps-modal-sheet {
    background: #ffffff; border-radius: 16px; max-width: 640px; width: 100%;
    max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
body.ps-v2 .ps-modal-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
    padding: 16px 20px 10px; border-bottom: 1px solid var(--ps-line);
}
body.ps-v2 .ps-modal-head h3 { margin: 0; font-size: 19px; font-weight: 700; color: var(--ps-navy); }
body.ps-v2 .ps-modal-close { background: none; border: none; font-size: 26px; line-height: 1; color: var(--ps-muted); cursor: pointer; }
body.ps-v2 .ps-modal-body { padding: 14px 20px; overflow-y: auto; font-size: 14.5px; line-height: 1.55; }
body.ps-v2 .ps-modal-body h4 { font-size: 14px; font-weight: 700; color: var(--ps-navy); margin: 14px 0 5px; }
body.ps-v2 .ps-modal-body h4:first-child { margin-top: 0; }
body.ps-v2 .ps-modal-body p { margin: 0 0 8px; }
body.ps-v2 .ps-modal-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 20px 16px; border-top: 1px solid var(--ps-line);
}
body.ps-v2 .ps-modal-price { font-size: 17px; font-weight: 700; color: var(--ps-navy); }
body.ps-v2 .ps-modal-foot .ps-order-btn { margin-top: 0; }
body.ps-v2 .ps-refs { margin: 4px 0 10px; padding-left: 18px; font-size: 13.5px; color: var(--ps-muted); }
body.ps-v2 .ps-refs li { margin-bottom: 4px; }
body.ps-v2 .ps-info-legend { font-size: 13px; color: var(--ps-muted); margin: 0 0 14px; display: flex; align-items: center; gap: 7px; }
body.ps-v2 .ps-info-dot {
    width: 19px; height: 19px; border-radius: 50%; background: #5aa73c; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; font-style: italic;
}

/* ---------- Home feature cards: tighter gaps ---------- */
body.ps-v2 .ps-feature {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 5px; padding: 16px 14px 14px;
}
body.ps-v2 .ps-feature-icon { margin: 0 auto 4px; }
body.ps-v2 .ps-feature h4 { margin: 0; }
body.ps-v2 .ps-feature p { margin: 0; }

/* ---------- Standalone sign-in page ---------- */
body.ps-v2 .ps-login-page { background: #ffffff; padding: 52px 0 64px; }
body.ps-v2 .ps-login-card {
    max-width: 440px; margin: 0 auto; background: var(--ps-card);
    border: 1px solid var(--ps-line); border-radius: 16px; box-shadow: var(--ps-shadow);
    padding: 28px 30px 24px; text-align: center;
}
body.ps-v2 .ps-login-card h1 { font-size: 24px; font-weight: 700; color: var(--ps-navy); margin: 0 0 6px; }
body.ps-v2 .ps-login-sub { color: var(--ps-muted); font-size: 14.5px; margin: 0 0 18px; }
body.ps-v2 .ps-login-input {
    width: 100%; border: 1px solid var(--ps-line); border-radius: 10px;
    padding: 12px 14px; font-size: 15px; margin-bottom: 12px; background: #ffffff; color: var(--ps-ink);
}
body.ps-v2 .ps-login-input:focus { border-color: var(--ps-navy); outline: none; }
body.ps-v2 .ps-login-forgot { text-align: left; margin: 0 0 16px; font-size: 14px; }
body.ps-v2 .ps-login-btn {
    width: 100%; background: var(--ps-navy); color: #ffffff; border: none; border-radius: 999px;
    padding: 12px 20px; font-size: 16px; font-weight: 700; cursor: pointer;
}
body.ps-v2 .ps-login-btn:hover { background: var(--ps-navy-dark); }
body.ps-v2 .ps-login-register { margin: 16px 0 0; font-size: 14px; color: var(--ps-muted); }
body.ps-v2 .ps-login-card .alert { text-align: left; }

/* ---------- Feature cards: beat the theme's !important h4 margins ---------- */
body.ps-v2 .ps-feature h4 { margin: 2px 0 0 !important; font-size: 16px !important; line-height: 1.3 !important; }
body.ps-v2 .ps-feature p { line-height: 1.45 !important; }

/* ---------- Drug page: price note like the app ---------- */
body.ps-v2 .price-note { margin-top: 10px; text-align: left; }
body.ps-v2 .price-note p.note {
    font-style: normal; color: #666666; font-size: 13.5px; line-height: 1.55 !important;
    margin: 0 !important; text-align: left;
}
body.ps-v2 .ps-other-info {
    font-size: 16px !important; line-height: 1.3 !important; color: var(--ps-navy) !important;
    font-weight: 700 !important; margin: 6px 0 4px !important; text-align: left;
}

/* ---------- Drug page: LU codes, cleaner table ---------- */
body.ps-v2 .detail-code h2 {
    font-size: 19px !important; line-height: 1.35 !important; color: var(--ps-navy) !important;
    margin: 0 0 6px !important; padding: 0 0 8px !important; border-bottom: 2px solid var(--ps-navy);
}
body.ps-v2 .detail-code .detailsTbl { border: none; margin-bottom: 6px; }
body.ps-v2 .detail-code .detailsTbl th {
    border: none; border-bottom: 1px solid var(--ps-line); background: transparent;
    color: var(--ps-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px;
}
body.ps-v2 .detail-code .detailsTbl td {
    border: none; border-bottom: 1px solid var(--ps-line); padding: 13px 10px;
    font-size: 14.5px; line-height: 1.55; vertical-align: top;
}
body.ps-v2 .detail-code .detailsTbl tr:last-child td { border-bottom: none; }
body.ps-v2 .ps-lu-pill {
    display: inline-block; background: var(--ps-navy); color: #ffffff; font-weight: 700;
    font-size: 13.5px; border-radius: 999px; padding: 3px 12px; white-space: nowrap;
}
body.ps-v2 .detail-code .code_checkbox { width: 17px; height: 17px; margin-top: 3px; }
body.ps-v2 .ps-steps-sub { color: var(--ps-muted); font-size: 14.5px; line-height: 1.5; margin: 0 0 12px !important; }

/* ---------- Class page group headers: light band, readable title ---------- */
body.ps-v2 .drug_group_box { background: var(--ps-tint); margin: 16px 0 10px; }

/* ---------- Class pages: compounded options (like the app) ---------- */
body.ps-v2 .ps-class-compounds { margin-top: 26px; }
body.ps-v2 .ps-class-compounds-title {
    font-size: 15px !important; line-height: 1.3 !important; color: var(--ps-navy) !important;
    font-weight: 700 !important; letter-spacing: .7px; text-transform: uppercase; margin: 0 0 12px !important;
}
body.ps-v2 .ps-compounded-pill {
    display: inline-block; background: #5aa73c; color: #ffffff; font-size: 10.5px; font-weight: 700;
    letter-spacing: .5px; text-transform: uppercase; border-radius: 999px; padding: 2px 8px;
    vertical-align: 2px; margin-left: 6px; white-space: nowrap;
}

/* ---------- Class pages: collapsible groups + compact drug rows ---------- */
body.ps-v2 .drug_group_box { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
body.ps-v2 .ps-group-chev { color: var(--ps-navy); font-size: 13px; transition: transform .2s ease; }
body.ps-v2 .drug_group_box.ps-open .ps-group-chev { transform: rotate(180deg); }
body.ps-v2 .ps-class-list .product-main-block { padding: 8px 14px; margin: 0 0 8px; box-shadow: none; }
body.ps-v2 .ps-class-list .product-category-name { display: none; }
body.ps-v2 .ps-class-list .product-main-name { font-size: 15.5px; line-height: 1.3; }
body.ps-v2 .ps-class-list .product-mark { padding: 0 14px; }
body.ps-v2 .ps-class-list .product-check-ico .icon-image { width: 20px; height: 20px; }
body.ps-v2 .ps-class-list .product-btn .btn { padding: 7px 16px !important; font-size: 13.5px !important; }

/* ---------- Class pages: narrower list, chevron beside the title ---------- */
body.ps-v2 .ps-class-list { max-width: 920px; margin-left: auto; margin-right: auto; }
body.ps-v2 .ps-class-compounds { max-width: 920px; margin-left: auto; margin-right: auto; }
body.ps-v2 .drug_group_box { justify-content: flex-start; }
body.ps-v2 .drug_group_box .drug_group_title { text-decoration: none; }
body.ps-v2 .ps-group-chev { margin-left: 10px; }
body.ps-v2 .ps-brand-line { margin: 1px 0 0 !important; font-size: 14px; line-height: 1.35; color: #33506e; }
body.ps-v2 .inner-main-content-wrapper.ps-class-wrapper { margin-top: 4px; }
body.ps-v2 .ps-no-drugs { color: var(--ps-muted); font-size: 15px; padding: 10px 0; margin: 0 !important; }
body.ps-v2 .ps-order-note {
    max-width: 920px; margin: 0 auto 10px !important; color: var(--ps-muted);
    font-size: 13px; line-height: 1.4 !important;
}

/* ---------- Class pages: legend + price-order note on one line ---------- */
body.ps-v2 .ps-legend-row {
    display: flex; align-items: center; gap: 10px 34px; flex-wrap: wrap;
    max-width: 920px; margin: 0 auto; padding: 0 15px;
}
body.ps-v2 .ps-legend-row .top-icons-wrapper { flex: 0 1 auto; }
body.ps-v2 .ps-legend-row .top-icons-wrapper .container { width: auto; max-width: none; padding: 0; margin: 0; }
body.ps-v2 .ps-legend-row ul.top-icons-listing { padding: 10px 0; }
body.ps-v2 .ps-order-note-inline { margin: 0 !important; color: var(--ps-muted); font-size: 13.5px; line-height: 1.4 !important; }

/* ---------- Legend row: never squeeze the legend items ---------- */
body.ps-v2 .ps-legend-row { max-width: 1140px; gap: 8px 22px; }
body.ps-v2 .ps-legend-row .top-icons-wrapper { flex: 0 0 auto; }
body.ps-v2 .ps-legend-row ul.top-icons-listing { flex-wrap: nowrap; gap: 22px; }

/* ---------- Compounding: subsection bands (like the app) ---------- */
body.ps-v2 .ps-subsection-band {
    background: var(--ps-navy); color: #ffffff; font-size: 13px; font-weight: 700;
    letter-spacing: .6px; text-transform: uppercase; border-radius: 8px;
    padding: 7px 14px; margin: 14px 0 10px;
}
body.ps-v2 .ps-subsection-band:first-child { margin-top: 2px; }

/* ---------- Verify form: profession dropdown, bigger ---------- */
body.ps-v2 .ps-field select.ps-select {
    font-size: 16px; padding: 12px 12px; min-height: 50px; border-radius: 10px;
}

/* ---------- Compounding index: narrower browse column ---------- */
body.ps-v2 #compoundSections, body.ps-v2 #compoundResults { max-width: 920px; margin-left: auto; margin-right: auto; }

/* ---------- Compound page: order + about buttons row ---------- */
body.ps-v2 .ps-detail-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
body.ps-v2 .ps-detail-btns .ps-order-btn { margin-top: 0; }
body.ps-v2 .ps-about-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
    border: 1.5px solid var(--ps-navy); color: var(--ps-navy); font-weight: 600; font-size: 15px;
    text-decoration: none; background: #ffffff;
}
body.ps-v2 .ps-about-btn:hover { background: var(--ps-tint); text-decoration: none; }
body.ps-v2 #aboutCompound { scroll-margin-top: 90px; }

/* ---------- Sent page: what-happens-next box ---------- */
body.ps-v2 .ps-next-box {
    background: var(--ps-tint); border-radius: 12px; padding: 14px 18px;
    text-align: left; max-width: 560px; margin: 0 auto;
}
body.ps-v2 .ps-next-title { margin: 0 0 8px; font-size: 15.5px; }
body.ps-v2 .ps-next-box p { margin: 0 0 6px; font-size: 14.5px; }
body.ps-v2 .ps-next-box p:last-child { margin-bottom: 0; }

/* ---------- My orders: progress tracker ---------- */
body.ps-v2 .ps-tracker { display: flex; align-items: flex-start; margin: 16px 4px 4px; }
body.ps-v2 .ps-track-step { display: flex; flex-direction: column; align-items: center; width: 70px; flex: 0 0 auto; }
body.ps-v2 .ps-track-dot {
    width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ps-line);
    background: #ffffff; color: #ffffff; font-size: 12px; line-height: 19px; text-align: center;
}
body.ps-v2 .ps-track-dot.done { background: var(--ps-green, #1e9e4c); border-color: var(--ps-green, #1e9e4c); }
body.ps-v2 .ps-track-label { font-size: 12px; color: var(--ps-muted); margin-top: 5px; }
body.ps-v2 .ps-track-line { flex: 1; height: 2px; background: var(--ps-line); margin-top: 11px; }
body.ps-v2 .ps-track-line.done { background: var(--ps-green, #1e9e4c); }
body.ps-v2 .ps-status-sentence { margin: 8px 4px 0; font-size: 14px; color: var(--ps-ink); }

/* ---------- My orders: collapsed cards, pills, search ---------- */
body.ps-v2 .ps-orders-col { max-width: 920px; margin: 0 auto; }
body.ps-v2 .ps-order-card {
    background: #ffffff; border: 1px solid var(--ps-line); border-radius: 14px;
    padding: 14px 18px; margin-bottom: 12px;
}
body.ps-v2 .ps-order-head { display: flex; align-items: center; gap: 10px; cursor: pointer; }
body.ps-v2 .ps-order-no { font-weight: 700; color: var(--ps-navy); font-size: 15.5px; }
body.ps-v2 .ps-order-date { color: var(--ps-muted); font-size: 13.5px; }
body.ps-v2 .ps-status-pill {
    margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .4px;
    padding: 4px 10px; border-radius: 999px; text-transform: uppercase; white-space: nowrap;
}
body.ps-v2 .ps-pill-sent { background: #eef1f4; color: #5b7a99; }
body.ps-v2 .ps-pill-received { background: var(--ps-tint); color: var(--ps-navy); }
body.ps-v2 .ps-pill-working { background: #fdf3e0; color: #9a6b12; }
body.ps-v2 .ps-pill-shipped { background: #e6f4ea; color: #256629; }
body.ps-v2 .ps-pill-cancelled { background: #fdecec; color: #a12626; }
body.ps-v2 .ps-pill-transferred { background: #f0eaf7; color: #5b4a86; }
body.ps-v2 .ps-order-chev { color: var(--ps-muted); font-size: 13px; transition: transform .15s; }
body.ps-v2 .ps-order-card.ps-open .ps-order-chev { transform: rotate(180deg); }
body.ps-v2 .ps-order-compound { margin: 8px 0 0; font-weight: 600; font-size: 15px; }
body.ps-v2 .ps-order-sub { margin: 2px 0 0; color: var(--ps-muted); font-size: 13.5px; }
body.ps-v2 .ps-order-details { margin-top: 12px; border-top: 1px solid var(--ps-line); padding-top: 10px; }

/* ---------- Sent page: record button; history: action buttons ---------- */
body.ps-v2 .ps-record-btn {
    display: block; max-width: 560px; margin: 14px auto 0; padding: 12px 20px; border-radius: 999px;
    border: 1.5px solid var(--ps-navy); color: var(--ps-navy); font-weight: 600; font-size: 15px;
    text-decoration: none; background: #ffffff; text-align: center;
}
body.ps-v2 .ps-record-btn:hover { background: var(--ps-tint); text-decoration: none; }
body.ps-v2 .ps-order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
body.ps-v2 .ps-again-btn {
    padding: 10px 18px; border-radius: 999px; background: var(--ps-navy); color: #ffffff !important;
    font-weight: 600; font-size: 14px; text-decoration: none !important;
}
body.ps-v2 .ps-record-link {
    padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--ps-navy);
    color: var(--ps-navy); font-weight: 600; font-size: 14px; text-decoration: none; background: #ffffff;
}

/* ---------- Prescription record document ---------- */
body.ps-v2 .ps-record-doc {
    background: #ffffff; border: 1px solid var(--ps-line); border-radius: 14px;
    padding: 28px 30px; max-width: 920px; margin: 14px auto 0;
}
body.ps-v2 .ps-record-brand { margin: 0; font-size: 12px; letter-spacing: 2px; color: var(--ps-muted); font-weight: 700; }
body.ps-v2 .ps-record-title { margin: 4px 0 2px; font-size: 22px; }
body.ps-v2 .ps-record-meta { margin: 0 0 14px; color: var(--ps-muted); font-size: 14px; }
body.ps-v2 .ps-record-section {
    margin: 20px 0 8px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--ps-navy);
}
body.ps-v2 .ps-record-rx { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--ps-navy); }
body.ps-v2 .ps-record-sign { margin: 18px 0 0; font-size: 14.5px; }
body.ps-v2 .ps-record-foot { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--ps-line); color: var(--ps-muted); font-size: 12.5px; }
@media print {
    body.ps-v2 header, body.ps-v2 footer, body.ps-v2 .inner-page-banner,
    body.ps-v2 .ps-no-print, body.ps-v2 .ps-back-btn { display: none !important; }
    body.ps-v2 .ps-record-doc { border: none; max-width: none; margin: 0; }
}

/* ---------- Home: About text ---------- */
body.ps-v2 .ps-about-text { max-width: 780px; margin: 0 auto; float: none; }
body.ps-v2 .sec4 .ps-about-text p { font-size: 16.5px; line-height: 1.65; margin: 0 0 14px !important; text-align: center; }

/* ---------- Home: endorsement block ---------- */
body.ps-v2 #contact1 { padding: 34px 0 40px; }
body.ps-v2 #contact1 h3 {
    font-size: 13px !important; line-height: 1.4 !important; letter-spacing: 2px;
    text-transform: uppercase; color: var(--ps-muted) !important; margin: 0 0 16px !important;
    font-weight: 700; text-align: center;
}
body.ps-v2 #contact1 .form_wrapper {
    background: #ffffff; border: 1px solid var(--ps-line); border-radius: 14px;
    max-width: 420px; margin: 0 auto; padding: 22px 30px;
}
body.ps-v2 #contact1 .endorsed-img { max-height: 72px; width: auto; margin: 0 auto; display: block; }

/* ---------- Drug details: price tiles (compact, app style) ---------- */
body.ps-v2 ul.tablet-list { display: flex; flex-wrap: wrap; gap: 10px; }
body.ps-v2 ul.tablet-list li { display: block; }
body.ps-v2 .tablet-block-border { margin: 0; padding: 12px 14px; }
body.ps-v2 .tablet-block { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
body.ps-v2 .tablet-quantity { text-align: center; }
body.ps-v2 .tablet-price { margin: 0; }
body.ps-v2 .price-btn {
    display: block; width: 100%; background: #f4f8fc; border-radius: 8px;
    padding: 8px 14px; text-align: center; height: auto; line-height: 1.3;
}
body.ps-v2 .price-btn .price-range { font-size: 17px; font-weight: 700; color: var(--ps-navy); }
body.ps-v2 #download { scroll-margin-top: 110px; }
body.ps-v2 .ps-app-band { padding: 16px 20px !important; }

/* ---------- Class page: Compounded Options collapsible ---------- */
body.ps-v2 .ps-compounds-toggle {
    display: flex; align-items: center; gap: 10px; width: 100%;
    background: none; border: none; padding: 4px 0 10px; cursor: pointer; text-align: left;
}
body.ps-v2 .ps-compounds-toggle .ps-class-compounds-title {
    font-size: 17.5px !important; margin: 0 !important;
}
body.ps-v2 .ps-compounds-toggle .ps-group-chev { color: var(--ps-navy); font-size: 13px; transition: transform .15s ease; }
body.ps-v2 .ps-compounds-toggle.ps-open .ps-group-chev { transform: rotate(180deg); }
body.ps-v2 .ps-compounds-body { padding-top: 2px; }
body.ps-v2 .ps-order-note-inline .fa, body.ps-v2 .sidebar-line .fa { color: var(--ps-navy); font-size: 12px; margin-right: 2px; }

/* ---------- Legend: one item per row ---------- */
body.ps-v2 .ps-legend-row { flex-direction: column; align-items: flex-start; gap: 2px; }
body.ps-v2 .ps-legend-row ul.top-icons-listing {
    display: flex; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 7px; padding: 4px 0 8px;
}
body.ps-v2 ul.top-icons-listing {
    display: flex; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 7px;
}

/* ---------- Group titles match Compounded Options size; compounds stand out by colour ---------- */
body.ps-v2 .drug_group_title { font-size: 17.5px !important; line-height: 1.3 !important; }
body.ps-v2 .ps-compounds-toggle {
    background: #edf5ee; border-radius: 8px; padding: 10px 14px; margin-bottom: 10px;
}
body.ps-v2 .ps-compounds-toggle .ps-class-compounds-title { color: var(--ps-green-dark) !important; }
body.ps-v2 .ps-compounds-toggle .ps-group-chev { color: var(--ps-green-dark); }

/* ---------- Home: five feature boxes ---------- */
@media (min-width: 992px) {
    body.ps-v2 .ps-features-row { display: flex; flex-wrap: nowrap; }
    body.ps-v2 .ps-features-row > div { flex: 1 1 0; max-width: none; }
}

/* ---------- Shortages section (search page) ---------- */
body.ps-v2 .ps-shortages-wrap { background: #ffffff; padding: 26px 0 34px; }
body.ps-v2 .ps-shortages-card {
    max-width: 760px; margin: 0 auto; background: #fffaf0; border: 1px solid #e8d48f;
    border-radius: 12px; padding: 18px 22px 10px;
}
body.ps-v2 .ps-shortages-title {
    font-size: 17px !important; line-height: 1.3 !important; color: #7a5c00 !important;
    font-weight: 700 !important; margin: 0 0 8px !important;
}
body.ps-v2 .ps-shortages-title .fa { color: #b98a00; margin-right: 6px; }
body.ps-v2 .ps-shortage-row {
    display: flex; align-items: baseline; gap: 10px; padding: 10px 2px;
    border-top: 1px solid #efe0ae; text-decoration: none !important;
}
body.ps-v2 .ps-shortage-name { font-weight: 700; color: var(--ps-navy); font-size: 15px; white-space: nowrap; }
body.ps-v2 .ps-shortage-status { color: #6b5510; font-size: 13.5px; flex: 1; }
body.ps-v2 .ps-shortage-chev { color: #b98a00; font-size: 11px; }

/* ---------- Drug page: backorder management (amber, like the app) ---------- */
body.ps-v2 .ps-guide-wrap { margin-top: 22px; }
body.ps-v2 .ps-guide-heading {
    font-size: 12.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
    color: #8a6d1a; margin: 0 0 8px !important;
}
body.ps-v2 .ps-guide-card { background: #fffaf0; border: 1px solid #e8d48f; border-radius: 12px; padding: 14px 18px; }
body.ps-v2 .ps-guide-toggle {
    display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: none;
    padding: 0; cursor: pointer; text-align: left;
}
body.ps-v2 .ps-guide-title { flex: 1; font-size: 16px; font-weight: 700; color: #7a5c00; }
body.ps-v2 .ps-guide-chev { color: #8a6d1a; font-size: 13px; transition: transform .15s ease; }
body.ps-v2 .ps-guide-toggle.ps-open .ps-guide-chev { transform: rotate(180deg); }
body.ps-v2 .ps-guide-peek {
    color: #6b5510; font-size: 14px; margin: 6px 0 0 !important; line-height: 1.45 !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.ps-v2 .ps-guide-body { padding-top: 8px; }
body.ps-v2 .ps-guide-status { font-weight: 700; color: #7a5c00; font-size: 14px; margin: 0 0 8px !important; }
body.ps-v2 .ps-guide-para { color: #4d3f10; font-size: 14.5px; line-height: 1.55 !important; margin: 0 0 10px !important; }
body.ps-v2 .ps-guide-para a { color: var(--ps-navy); font-weight: 700; text-decoration: underline; }
body.ps-v2 .ps-shortage-alert {
    background: #fffaf0; border: 1px solid #e8d48f; border-radius: 10px; padding: 12px 16px;
    color: #6b5510; font-size: 14.5px;
}
body.ps-v2 .ps-shortage-alert .fa { color: #b98a00; margin-right: 4px; }

/* ---------- Prescription sheet (mirrors the pharmacy console Rx) ---------- */
body.ps-v2 .ps-rx-topbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: 820px; margin: 0 auto 14px; }
body.ps-v2 .ps-rx-print-btn {
    background: var(--ps-green); color: #fff; border: none; border-radius: 8px;
    padding: 9px 22px; font-weight: 700; font-size: 15px; cursor: pointer;
}
body.ps-v2 .ps-rx-note { color: var(--ps-muted); font-size: 13.5px; flex: 1; min-width: 220px; }
body.ps-v2 .ps-rx-doc {
    font-family: Georgia, "Times New Roman", serif; color: #000; background: #fff;
    max-width: 820px; margin: 0 auto; padding: 28px 34px 44px;
    border: 1px solid var(--ps-line); border-radius: 6px;
}
body.ps-v2 .ps-rx-head { border-bottom: 2px solid #000; padding-bottom: 10px; margin-bottom: 12px; }
body.ps-v2 .ps-rx-name { font-size: 27px; font-weight: 700; line-height: 1.2; }
body.ps-v2 .ps-rx-sub { font-size: 15px; line-height: 1.45; }
body.ps-v2 .ps-rx-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15.5px; margin-bottom: 10px; }
body.ps-v2 .ps-rx-patient { border: 1px solid #000; padding: 10px 14px; font-size: 15px; line-height: 1.5; margin-bottom: 22px; }
body.ps-v2 .ps-rx-symbol { font-size: 30px; font-weight: 700; margin-right: 10px; }
body.ps-v2 .ps-rx-drug { font-size: 20px; font-weight: 700; }
body.ps-v2 .ps-rx-line { font-size: 16px; line-height: 1.5; margin-left: 44px; }
body.ps-v2 .ps-rx-sig { margin-top: 56px; }
body.ps-v2 .ps-rx-signame { font-family: "Snell Roundhand", "Brush Script MT", cursive; font-style: italic; font-size: 24px; }
body.ps-v2 .ps-rx-sigline { border-top: 1px solid #000; padding-top: 5px; font-size: 14.5px; max-width: 430px; }
@media print {
    body.ps-v2 .ps-rx-doc { border: none; max-width: none; margin: 0; padding: 0; }
}

/* ---------- Shortages: button under the search bar + page ---------- */
body.ps-v2 .ps-shortages-btn {
    display: inline-flex; align-items: center; gap: 9px;
    background: #fffaf0; border: 1px solid #e8d48f; color: #7a5c00 !important;
    border-radius: 999px; padding: 11px 22px; font-weight: 700; font-size: 15px;
    text-decoration: none !important;
}
body.ps-v2 .ps-shortages-btn:hover { border-color: #b98a00; }
body.ps-v2 .ps-shortages-btn .fa { color: #b98a00; }
body.ps-v2 .ps-shortages-count {
    background: #b98a00; color: #fff; border-radius: 999px; font-size: 12.5px;
    padding: 1px 9px; font-weight: 700;
}
body.ps-v2 .ps-shortages-page { max-width: 920px; padding-top: 8px; }
body.ps-v2 .ps-shortages-page .ps-shortage-row:first-child { border-top: none; }
body.ps-v2 .ps-shortages-note { max-width: 920px; margin: 12px auto 0; color: var(--ps-muted); font-size: 13.5px; }
body.ps-v2 .ps-shortages-banner .banner-text h2 {
    color: #ffffff !important; font-size: 30px !important; line-height: 1.25 !important;
    font-weight: 700 !important; margin: 0 !important;
}

/* ---------- Search page: option A clean white ---------- */
body.ps-v2 .mainbgimg.ps-search-bg { background: #ffffff !important; padding: 40px 0 30px; }
body.ps-v2 .ps-search-bg .search-form { box-shadow: none; border: none; background: transparent; padding-top: 6px; }
body.ps-v2 .search-form .login-box-title h1.ps-search-heading {
    font-family: 'Raleway', 'Open Sans', sans-serif; font-size: 34px; font-weight: 800;
    text-transform: none; letter-spacing: 0; color: var(--ps-navy) !important;
}
body.ps-v2 .ps-search-bg #searchbox { border-radius: 999px; border: 1.5px solid var(--ps-navy); padding-left: 20px; height: 50px; }
body.ps-v2 .ps-phones { text-align: center; padding: 6px 12px 0; }
body.ps-v2 .ps-phones img { max-width: 780px; width: 100%; height: auto; }

/* Brand lime from the logo (#BCD62E) for the header + login accents
   (Fady Nov 25: the dark green did not match the logo). Lime fills
   carry navy text, the pairing the logo itself uses. Placed last so
   it wins over the earlier green rules. */
body.ps-v2 { --ps-lime: #BCD62E; --ps-lime-dark: #A9C226; }
body.ps-v2 .ps-wordmark .ps-smart { color: var(--ps-lime); }
body.ps-v2 .badge-notify { background: var(--ps-lime); color: var(--ps-navy); }
body.ps-v2 .ps-home-search-btn {
    background: var(--ps-lime);
    border-color: var(--ps-lime);
    color: var(--ps-navy);
}
body.ps-v2 .ps-home-search-btn:hover { background: var(--ps-lime-dark); border-color: var(--ps-lime-dark); color: var(--ps-navy); }
body.ps-v2 .login, body.ps-v2 .btn.login {
    background: var(--ps-lime);
    border-color: var(--ps-lime);
    color: var(--ps-navy);
}
body.ps-v2 .login:hover, body.ps-v2 .btn.login:hover { background: var(--ps-lime-dark); border-color: var(--ps-lime-dark); color: var(--ps-navy); }
body.ps-v2 .ps-home-hero .loginform .input-group-addon {
    background: var(--ps-lime);
    border-color: var(--ps-lime);
    color: var(--ps-navy);
}
body.ps-v2 .ps-login-card { background: var(--ps-navy); border-color: var(--ps-navy); }
body.ps-v2 .ps-login-card h1 { color: #ffffff; }
body.ps-v2 .ps-login-sub { color: #c9d6e4; }
body.ps-v2 .ps-login-forgot a { color: #ffffff; text-decoration: underline; }
body.ps-v2 .ps-login-btn { background: var(--ps-lime); color: var(--ps-navy); }
body.ps-v2 .ps-login-btn:hover { background: var(--ps-lime-dark); color: var(--ps-navy); }
body.ps-v2 .ps-login-register { color: #c9d6e4; }
body.ps-v2 .ps-login-register a { color: #ffffff; text-decoration: underline; }

/* Compound name field grows for long names (Fady Nov 25) */
body.ps-v2 .ps-field textarea.ps-name-area { min-height: 62px; line-height: 1.45; resize: vertical; }

/* Compounding banner subtitle (Fady Nov 25) */
body.ps-v2 .ps-compounding-banner .ps-compounding-sub { color: #c9d6e4 !important; font-size: 16px; margin: 4px 0 0 !important; line-height: 1.4 !important; }

/* Shortages rows: let long drug names wrap instead of overflowing,
   and give the status room (Fady Nov 26 — desktop view on phone
   squeezed the status into a sliver and cut long names off). */
body.ps-v2 .ps-shortage-row { align-items: flex-start; }
body.ps-v2 .ps-shortage-name { white-space: normal; min-width: 0; flex: 1 1 auto; line-height: 1.35; }
body.ps-v2 .ps-shortage-status { flex: 0 1 36%; min-width: 150px; line-height: 1.4; }
body.ps-v2 .ps-shortage-chev { margin-top: 5px; }
@media (max-width: 700px) {
    body.ps-v2 .ps-shortage-row { flex-wrap: wrap; }
    body.ps-v2 .ps-shortage-name { flex: 1 1 calc(100% - 24px); }
    body.ps-v2 .ps-shortage-status { flex: 1 1 100%; order: 3; min-width: 0; margin-top: 2px; }
}

/* ---------- Alternatives panel: tinted + pinned (Fady, Nov 26) ---------- */
body.ps-v2 .drug_name_inner_page_content .col-lg-3 .list-group {
    background: #eef4fb; border: 1.5px solid var(--ps-navy);
    border-radius: 12px;
}
body.ps-v2 .drug_name_inner_page_content .list-group-item-alternative {
    background: transparent; border-top: 1px solid #d9e2ec;
}
body.ps-v2 .drug_name_inner_page_content .list-group-item-alternative:hover {
    background: #e2ecf7; color: var(--ps-navy) !important;
}
@media (min-width: 992px) {
    body.ps-v2 .drug_name_inner_page_content .col-lg-3 {
        position: sticky; top: 96px; align-self: flex-start;
    }
}
body.ps-v2 #psAlternatives { scroll-margin-top: 96px; }
body.ps-v2 .ps-alt-chip { display: none; }
@media (max-width: 991px) {
    body.ps-v2 .ps-alt-chip { display: inline-flex; }
}

/* ---------- Price tiles: kill the legacy 90px label min-height ---------- */
body.ps-v2 .tablet-quantity { min-height: 0; margin-bottom: 0; }
body.ps-v2 ul.tablet-list { align-items: flex-start; }

/* Alternatives header: round its top corners to match the panel */
body.ps-v2 .drug_name_inner_page_content .col-lg-3 .list-group-item.active {
    border-top-left-radius: 10px; border-top-right-radius: 10px;
}

/* LU description: summary and Full text as separate spaced paragraphs */
body.ps-v2 .ps-lu-part { margin: 0 0 10px !important; line-height: 1.55; }
body.ps-v2 .ps-lu-part:last-child { margin-bottom: 0 !important; }

/* Search page: recently searched pills */
body.ps-v2 .ps-recent-wrap { padding: 2px 0 14px; }
body.ps-v2 .ps-recent { margin: 0 !important; line-height: 2; }
body.ps-v2 .ps-recent-label { color: var(--ps-muted); font-weight: 600; margin-right: 4px; }
body.ps-v2 .ps-recent a {
    display: inline-block; margin: 3px 4px; padding: 5px 13px;
    background: #ffffff; border: 1px solid var(--ps-line); border-radius: 999px;
    color: var(--ps-navy); font-weight: 600; font-size: 13.5px; text-decoration: none !important;
}
body.ps-v2 .ps-recent a:hover { border-color: var(--ps-navy); background: #f4f8fc; }
body.ps-v2 .ps-recent-clear-form { display: inline-block; margin-left: 6px; }
body.ps-v2 .ps-recent-clear {
    background: none; border: none; padding: 2px 4px; cursor: pointer;
    color: var(--ps-muted); font-size: 13px; font-weight: 600; text-decoration: underline;
}
body.ps-v2 .ps-recent-clear:hover { color: var(--ps-navy); }

/* Sign-in boxes Option B — white & clean (Fady Nov 26; replaces the Nov 25 navy boxes) */
body.ps-v2 .ps-home-hero .loginform {
    background: #ffffff;
    border: 1.5px solid var(--ps-line);
    box-shadow: 0 6px 18px rgba(0, 51, 102, 0.08);
}
body.ps-v2 .ps-home-hero .loginform .login-box-title h3 { color: var(--ps-navy) !important; }
body.ps-v2 .ps-home-hero .loginform .login-box-title hr {
    border: none; border-top: 3px solid #bcd62e;
    width: 52px; margin: 10px auto 4px; height: 0;
}
body.ps-v2 .ps-home-hero .loginform .input-group-addon {
    background: var(--ps-tint);
    border-color: var(--ps-line);
    color: var(--ps-navy);
}
body.ps-v2 .ps-home-hero .loginform .fa { color: var(--ps-navy); }
body.ps-v2 .ps-home-hero .loginform .btn.login {
    background: var(--ps-navy);
    border-color: var(--ps-navy);
    color: #ffffff;
}
body.ps-v2 .ps-home-hero .loginform .btn.login:hover { background: var(--ps-navy-dark); border-color: var(--ps-navy-dark); }
body.ps-v2 .ps-home-hero .loginform .forgot { color: #44566e; }
body.ps-v2 .ps-home-hero .loginform .forgot a { color: var(--ps-navy); text-decoration: underline; }
body.ps-v2 .ps-login-card {
    background: #ffffff;
    border: 1.5px solid var(--ps-line);
}
body.ps-v2 .ps-login-card h1 { color: var(--ps-navy); }
body.ps-v2 .ps-login-sub { color: #44566e; }
body.ps-v2 .ps-login-forgot a { color: var(--ps-navy); text-decoration: underline; }
body.ps-v2 .ps-login-btn { background: var(--ps-navy); }
body.ps-v2 .ps-login-btn:hover { background: var(--ps-navy-dark); }
body.ps-v2 .ps-login-register { color: #44566e; }
body.ps-v2 .ps-login-register a { color: var(--ps-navy); text-decoration: underline; }

/* ---------- Legend: price-order note lines up with the legend rows (Fady Nov 26) ---------- */
body.ps-v2 .ps-order-note-inline .fa, body.ps-v2 .sidebar-line .fa {
    display: inline-block; width: 22px; text-align: center;
    margin-right: 9px; font-size: 13px; vertical-align: middle;
}

/* ---------- Header user menu: white text on navy, readable (Fady Nov 26) ---------- */
body.ps-v2 ul.user-dropdown {
    background: var(--ps-navy); border-radius: 10px; overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 35, 71, .28); padding: 4px 0;
}
body.ps-v2 ul.user-dropdown li a {
    color: #ffffff !important; font-size: 14.5px; padding: 10px 14px;
}
body.ps-v2 ul.user-dropdown li a i { color: #ffffff; }
body.ps-v2 ul.user-dropdown li a:hover, body.ps-v2 ul.user-dropdown li a:focus {
    background: rgba(255, 255, 255, .13); color: #ffffff !important;
}
body.ps-v2 ul.dropdown-menu li:first-child { border-bottom: 1px solid rgba(255, 255, 255, .25); }
body.ps-v2 li.user-details.open:after { color: var(--ps-navy); text-shadow: none; }

/* ---------- Class 1004: minor ailment forms sidebar (Fady Nov 26) ---------- */
body.ps-v2 .ps-forms-card {
    background: #ffffff; border: 1px solid var(--ps-line); border-radius: 12px;
    padding: 16px 18px; box-shadow: 0 2px 10px rgba(0, 35, 71, .06);
    margin: 0 auto 18px; max-width: 920px;
}
body.ps-v2 .ps-forms-title { color: var(--ps-navy); font-size: 16px; font-weight: 700; margin: 0 0 4px !important; }
body.ps-v2 .ps-forms-note { color: var(--ps-muted); font-size: 12.5px; line-height: 1.45 !important; margin: 0 0 8px !important; }
body.ps-v2 .ps-forms-list { list-style: none; margin: 0; padding: 0; }
body.ps-v2 .ps-forms-list li a {
    display: flex; align-items: baseline; gap: 8px; padding: 6px 4px;
    font-size: 13.5px; color: var(--ps-navy); border-bottom: 1px solid #eef2f6;
}
body.ps-v2 .ps-forms-list li:last-child a { border-bottom: 0; }
body.ps-v2 .ps-forms-list li a:hover { background: var(--ps-tint); color: var(--ps-navy); }
body.ps-v2 .ps-forms-list .fa { color: #b03a2e; font-size: 13px; }
@media (min-width: 1200px) {
    body.ps-v2 .ps-class-layout { display: flex; gap: 26px; align-items: flex-start; max-width: 1440px; margin: 0 auto; padding: 0 15px; }
    body.ps-v2 .ps-class-main { flex: 1 1 auto; min-width: 0; }
    body.ps-v2 .ps-class-layout .container { width: auto; max-width: none; }
    body.ps-v2 .ps-class-layout .ps-legend-row { max-width: none; margin: 0; padding-left: 0; padding-right: 0; }
    body.ps-v2 .ps-class-layout .ps-class-list, body.ps-v2 .ps-class-layout .ps-class-compounds { max-width: none; margin-left: 0; margin-right: 0; }
    body.ps-v2 .ps-forms-sidebar { flex: 0 0 302px; position: sticky; top: 14px; padding-top: 10px; }
    body.ps-v2 .ps-forms-card { margin: 0; max-width: none; }
    body.ps-v2 .ps-forms-list { max-height: 560px; overflow-y: auto; }
}

/* ---------- Alternatives header: balance the two lines (Fady Nov 26) ---------- */
body.ps-v2 .drug_name_inner_page_content .col-lg-3 .list-group-item.active {
    font-size: 15px !important; line-height: 1.3 !important;
    padding: 12px 16px !important; text-wrap: balance;
}
