/* =========================================================
   Shehzad Pharmacy - Policy (terms&conditions.php) & Returns (returnpolicy.php)

   These pages keep their ORIGINAL design. Only the site header and footer
   (from includes/) use the Home theme. To stop Bootstrap / tooplate-main.css
   from changing the original look, everything inside #sp-legacy is reset to
   browser defaults first; each page then applies its own original CSS
   (prefixed with #sp-legacy) in its <style> block.
   ========================================================= */

/* 1. Isolate the original page content from the theme CSS */
#sp-legacy * { all: revert; }

/* 2. Restore Font Awesome 6 icons used by the original pages (fas / fab / far) */
#sp-legacy .fas, #sp-legacy .fab, #sp-legacy .far {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
}
#sp-legacy .fas { font-family: "Font Awesome 6 Free"; font-weight: 900; }
#sp-legacy .far { font-family: "Font Awesome 6 Free"; font-weight: 400; }
#sp-legacy .fab { font-family: "Font Awesome 6 Brands"; font-weight: 400; }

/* 3. Content wrapper (the original pages had body { padding: 20px }) */
#sp-legacy { padding: 20px; }
/* On desktop the theme's menu links sit just below the logo - leave room for them */
@media (min-width: 992px) {
    body #sp-legacy { padding-top: 40px; }
}

/* 3b. Page title box - compact, each page has its own icon (no logo here; the logo is in the site header) */
body.sp-legacy-page #sp-legacy header { padding: 30px 20px; margin-bottom: 30px; }
body.sp-legacy-page #sp-legacy header .logo { font-size: 1.8rem; margin-bottom: 10px; line-height: 1; }
body.sp-legacy-page #sp-legacy header .logo i {
    margin: 0; width: 60px; height: 60px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.2); color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}
body.sp-legacy-page #sp-legacy header h1 { font-size: 2.4rem; line-height: 1.25; margin-bottom: 10px; }
body.sp-legacy-page #sp-legacy header .subtitle,
body.sp-legacy-page #sp-legacy header .tagline { font-size: 1.1rem; }
@media (max-width: 768px) {
    body.sp-legacy-page #sp-legacy header { padding: 24px 16px; margin-bottom: 24px; }
    body.sp-legacy-page #sp-legacy header .logo i { width: 50px; height: 50px; }
    body.sp-legacy-page #sp-legacy header h1 { font-size: 1.7rem; }
    body.sp-legacy-page #sp-legacy header .subtitle,
    body.sp-legacy-page #sp-legacy header .tagline { font-size: 1rem; }
}

/* 3c. Single bullet in cards: the original design draws its own blue dot (.card li::before),
       so the browser's default black dot is turned off (it showed as a double bullet). */
body.sp-legacy-page #sp-legacy .card ul { list-style: none; }

/* 4. Policy tabs: Terms & Conditions | Shipping & Delivery | Returns & Refunds */
#sp-legacy .policy-tabs {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
    list-style: none; margin: 0 0 30px; padding: 0;
}
#sp-legacy .policy-tabs li { margin: 0; padding: 0; }
#sp-legacy .policy-tabs li::before { content: none; }
#sp-legacy .policy-tabs a {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 48px; padding: 12px 24px; border-radius: 30px;
    background: #fff; color: #1a5fb4;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.05rem; font-weight: 600; text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
#sp-legacy .policy-tabs a:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); color: #1a5fb4; }
#sp-legacy .policy-tabs a[aria-current="page"],
#sp-legacy .policy-tabs a[aria-current="true"] {
    background: linear-gradient(90deg, #1a5fb4 0%, #2e86de 100%); color: #fff;
}
#sp-legacy .policy-tabs a:focus-visible { outline: 3px solid #2e86de; outline-offset: 3px; }
@media (max-width: 600px) {
    #sp-legacy .policy-tabs { flex-direction: column; align-items: stretch; }
    #sp-legacy .policy-tabs a { display: flex; justify-content: center; }
}

/* 5. Links inside the original content */
#sp-legacy a.sp-link { color: #1a5fb4; font-weight: 600; text-decoration: underline !important; text-underline-offset: 2px; }
#sp-legacy a.sp-link:hover { color: #2e86de; }

/* 6. Terms & Disclaimer - calm, normal-weight text near the end of each page */
#sp-legacy .terms-disclaimer {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    color: #555;
}
#sp-legacy .terms-disclaimer h2 { font-size: 1.4rem; font-weight: 600; color: #333; margin-bottom: 15px; }
#sp-legacy .terms-disclaimer h3 { font-size: 1.05rem; font-weight: 600; color: #444; margin: 18px 0 8px; }
#sp-legacy .terms-disclaimer ul { padding-left: 22px; }
#sp-legacy .terms-disclaimer li { list-style: disc; font-size: 0.95rem; font-weight: 400; line-height: 1.7; margin-bottom: 8px; padding-left: 0; }
#sp-legacy .terms-disclaimer li::before { content: none; }
@media (max-width: 600px) { #sp-legacy .terms-disclaimer { padding: 22px 18px; } }

/* 6b. ADDED blocks on the Return Policy page (same colours as the original page) */
#sp-legacy .extra-section { margin-bottom: 30px; }
#sp-legacy .ship-table { width: 100%; border-collapse: collapse; margin-top: 10px; background: white; border-radius: 8px; overflow: hidden; }
#sp-legacy .ship-table th, #sp-legacy .ship-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e6f7ff; vertical-align: top; }
#sp-legacy .ship-table th { background: #1a6dcc; color: white; font-weight: 600; }
#sp-legacy .ship-table td:last-child { font-weight: 600; color: #1565c0; white-space: nowrap; }
@media (max-width: 480px) { #sp-legacy .ship-table td:last-child { white-space: normal; } }
#sp-legacy .extra-section .policy-point ul { margin-left: 20px; margin-top: 10px; }
#sp-legacy .extra-section .policy-point li { margin-bottom: 6px; }
#sp-legacy .extra-section .policy-point p + p { margin-top: 8px; }
#sp-legacy .contact-item i { color: #1a6dcc; width: 20px; text-align: center; }
#sp-legacy .contact-item a { color: #0d47a1; text-decoration: none; }

/* 7. Floating WhatsApp button (same as Home) */
.float {
    position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px;
    background-color: #25d366; color: #fff; border-radius: 50px; text-align: center;
    font-size: 30px; box-shadow: 2px 2px 3px #999; z-index: 100;
}
.float:hover, .float:focus { color: #fff; }
.my-float { margin-top: 16px; }
@media (max-width: 575px) {
    .float { width: 54px; height: 54px; bottom: 20px; right: 16px; font-size: 27px; }
    .my-float { margin-top: 14px; }
}

/* 8. Theme footer help band (blue, like Home's footer band) */
.sp-help.subscribe-form { padding: 56px 0; }
.sp-help .section-heading { margin-bottom: 20px; }
.sp-help .main-content p { margin-bottom: 18px; }
.sp-help .sp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 22px; border-radius: 30px;
    font-size: 15px; font-weight: 700; transition: background-color .25s, color .25s;
}
.sp-help .sp-btn-light { background: #fff; color: #236aa5; }
.sp-help .sp-btn-light:hover, .sp-help .sp-btn-light:focus-visible { background: #1e1e1e; color: #fff; }
.sp-help .sp-btn .fa { font-size: 20px; }
.sp-help .sp-contact {
    list-style: none; padding: 0; margin: 22px auto 0; max-width: 720px;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
}
.sp-help .sp-contact li { color: #fff; font-size: 15px; line-height: 1.6; }
.sp-help .sp-contact .fa { margin-right: 6px; }
.sp-help .sp-contact a { color: #fff; text-decoration: underline !important; text-underline-offset: 2px; }

/* iOS / Android: never auto-style phone numbers */
a[href^="tel"], a[x-apple-data-detectors] { color: inherit !important; text-decoration: none !important; }
