/*
Theme Name: McGreals Pharmacy
Theme URI: https://mcgreals.ie/
Author: McGreals Pharmacy Group
Description: A faithful WordPress conversion of the supplied McGreals Pharmacy website.
Version: 2.1.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: mcgreals
*/

/* The original site stylesheet is loaded from static/_next/static/css. */

.mcgreals-form-slot:empty { display: block; min-height: 260px; }
.mcgreals-form-slot .widget, .mcgreals-form-slot .widget_block { margin: 0; }
.mcgreals-form-slot { width: 100%; }
.job-description { margin: 14px 0; color: var(--ink-soft); }
.job-closing { margin: 10px 0; font-size: 13px; }
.service-chip-list span.service-chip { display: inline-flex; }
.mcgreals-service-availability { max-width: 1180px; margin: 0 auto 48px; padding: 20px 24px; border-radius: 12px; background: var(--sage-50, #edf2f1); }
.mcgreals-service-availability h3 { margin: 0 0 8px; color: var(--teal-900); }

@media (max-width: 920px) {
  .main-nav.mc-mobile-open {
    position: absolute; z-index: 1000; top: 100%; left: 0; right: 0;
    display: flex !important; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 20px 22px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(18, 48, 56, 0.12);
  }
  .main-nav.mc-mobile-open > a, .main-nav.mc-mobile-open .nav-item-dropdown > a {
    display: flex; justify-content: space-between; padding: 12px 0;
  }
  .main-nav.mc-mobile-open .nav-dropdown-panel {
    position: static; display: none; width: auto; padding: 4px 0 12px 16px;
    border: 0; box-shadow: none;
  }
  .main-nav.mc-mobile-open .mc-dropdown-open .nav-dropdown-panel { display: block; }
}

/* McGreals - Find My Nearest Pharmacy */

.mc-location-search {
  margin-top: 12px;
  width: 100%;
}

#mc-near-me {
  display: block;
  width: 100%;
  padding: 12px 18px;
  background: #ffffff;
  color: #174b43;
  border: 1px solid #174b43;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

#mc-near-me:hover {
  background: #174b43;
  color: #ffffff;
}

#mc-near-results {
  margin-top: 12px;
  font-size: 14px;
}

#mc-near-results a {
  display: block;
  padding: 10px 12px;
  margin-top: 6px;
  background: #ffffff;
  color: #174b43;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

#mc-near-results a:hover {
  background: #e9f2ee;
}

/* Prescription form — 2026 visual refresh (styles existing plugin form fields). */
.mcgreals-prescription-section{padding:clamp(36px,6vw,80px) 20px;background:#f5f8f5}
.mcgreals-prescription-shell{max-width:850px;margin:auto;padding:clamp(22px,4vw,48px);background:#fff;border:1px solid #dce9e2;border-radius:20px;box-shadow:0 12px 40px rgba(18,67,55,.055)}
.mcgreals-prescription-heading{margin-bottom:28px}.mcgreals-prescription-eyebrow{font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:#588775}.mcgreals-prescription-heading h2{font-family:Fraunces,Georgia,serif;font-size:clamp(28px,4vw,42px);line-height:1.15;color:#174b43;margin:10px 0}.mcgreals-prescription-heading p{color:#52665e;line-height:1.65;margin:0}
.mcgreals-prescription-section .mcgreals-form-slot:empty{min-height:0}.mcgreals-prescription-section .mcgreals-form-slot:empty:after{content:'Prescription request form will appear here once assigned in WordPress → Form Assignments.';display:block;padding:22px;border:1px dashed #a8c6b7;border-radius:10px;color:#52665e;background:#f7faf8;font-size:14px}
.mcgreals-prescription-section :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]),select,textarea){box-sizing:border-box;width:100%;max-width:100%;min-height:48px;padding:12px 14px;background:#fff;border:1px solid #cbdcd3;border-radius:9px;color:#183e35;font:inherit}
.mcgreals-prescription-section textarea{min-height:110px}.mcgreals-prescription-section :is(input,select,textarea):focus{outline:2px solid #8bbca2;outline-offset:1px}.mcgreals-prescription-section label{color:#214c40;font-weight:600}.mcgreals-prescription-section :is(button,input[type=submit]){background:#174b43;color:#fff;border:0;border-radius:10px;padding:14px 24px;font:inherit;font-weight:700;cursor:pointer}.mcgreals-prescription-section :is(button,input[type=submit]):hover{background:#286755}.mcgreals-prescription-section .wpcf7-form p{margin-bottom:18px}

/* Homepage pharmacy locations card: preserves original white card appearance. */
.mcgreals-location-cta{display:flex;flex-direction:column;gap:12px;max-width:460px;background:#fff!important;border-radius:16px;padding:20px!important;box-shadow:0 10px 28px rgba(0,0,0,.12)}
.mcgreals-location-title{display:block;font-weight:700;color:#073b4c;font-size:14px}
.mcgreals-location-description{margin:0;color:#244657;font-size:13px;line-height:1.5}
.mcgreals-location-link{display:flex;justify-content:center;align-items:center;gap:8px;background:#fff;border:1px solid #1d5868;border-radius:7px;padding:12px 16px;text-align:center;color:#073b4c!important;font-weight:700;text-decoration:none!important;min-height:44px}
.mcgreals-location-link:hover,.mcgreals-location-link:focus{background:#f0f7f7;outline-offset:2px}
.mcgreals-live-prescription{display:block!important;max-width:900px;width:100%;padding:clamp(18px,3vw,36px);background:#fff;border-radius:16px;box-shadow:0 6px 24px rgba(0,0,0,.06)}
.mcgreals-live-prescription h2{margin-top:0}
.mcgreals-live-prescription .mcgreals-form-slot{margin-top:24px}
.mcgreals-live-prescription .gform_wrapper input,.mcgreals-live-prescription .gform_wrapper select,.mcgreals-live-prescription .gform_wrapper textarea{max-width:100%}

/* October 2026: retain original locator card, with a gold directory button. */
.mcgreals-location-cta{max-width:460px!important;gap:10px!important;}
.mcgreals-location-row{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.mcgreals-location-description{flex:1;min-width:0;}
.mcgreals-location-cta .mcgreals-location-link{display:inline-flex!important;flex:0 0 auto;justify-content:center;align-items:center;background:#b99138!important;color:#073b4c!important;border:1px solid #b99138!important;border-radius:7px;padding:12px 14px!important;min-height:44px;font-size:13px;text-decoration:none!important;}
.mcgreals-location-cta .mcgreals-location-link:hover,.mcgreals-location-cta .mcgreals-location-link:focus{background:#d1aa50!important;border-color:#d1aa50!important;}
@media(max-width:420px){.mcgreals-location-row{flex-wrap:wrap}.mcgreals-location-cta .mcgreals-location-link{width:100%;}}

/* WP Job Manager listing and application presentation */
.mcgreals-wpjm-listings { margin: 18px 0 28px; }
.mcgreals-wpjm-listings .job_listings { width:100%; }
.mcgreals-wpjm-listings ul.job_listings li.job_listing a { padding:18px; }
.mcgreals-job-detail-wrap { max-width:920px; margin:60px auto; padding:24px; min-height:60vh; }
.mcgreals-job-detail-wrap a { color:#155969; }
.mcgreals-job-detail-wrap .job_application { margin:28px 0; }
