/* ===============================
   P-Clip Finder (Closest Match)
   =============================== */

.pclip-finder{
  font-family: inherit;
  width: 100%;
}

.pclip-finder__header{
  margin-bottom: 14px;
}

.pclip-finder__title{
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: inherit;
}

.pclip-finder__subtitle{
  margin-top: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.75;
  line-height: 1.35;
}

.pclip-finder__row{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 10px;
  align-items: end;
}

@media (max-width: 880px){
  .pclip-finder__row{
    grid-template-columns: 1fr;
  }
}

.pclip-finder__field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pclip-finder__label{
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
}

/* Native inputs */
.pclip-finder__input,
.pclip-finder__select{
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  outline: none;
  box-shadow: none;
  font: inherit;
}

.pclip-finder__input:focus,
.pclip-finder__select:focus{
  border-color: rgba(11,87,208,0.65);
  box-shadow: 0 0 0 3px rgba(11,87,208,0.14);
}

/* Status box */
.pclip-finder__status{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,0.04);
  font-size: 0.92rem;
  line-height: 1.35;
}

.pclip-finder__results{
  margin-top: 12px;
}

.pclip-finder__loading{
  padding: 14px 0;
  opacity: 0.8;
}

/* ===============================
   Custom dropdown (modern select)
   =============================== */

.pclip-finder__field.is-enhanced .pclip-finder__select{
  /* JS also hides it inline, but keep CSS version as backup */
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.pclip-select{
  position: relative;
  width: 100%;
}

/* The clickable “box” */
.pclip-select__button{
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  cursor: pointer;

  /* Explicitly set these so theme button rules can’t nuke text */
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
  color: #111;
  text-align: left;

  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.pclip-select__button:hover{
  border-color: rgba(0,0,0,0.25);
}

.pclip-select__button:focus{
  outline: none;
  border-color: rgba(11,87,208,0.65);
  box-shadow: 0 0 0 3px rgba(11,87,208,0.14);
}

/* THIS is the bit you’re missing visually: force value to actually render */
.pclip-select__value{
  display: block;
  flex: 1 1 auto;
  min-width: 0;

  /* prevent theme “button span” rules from hiding it */
  color: #111 !important;
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
  font-weight: 550 !important;
  opacity: 1 !important;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chevron */
.pclip-select__chev{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.55);
}

.pclip-select.is-open .pclip-select__chev{
  transform: rotate(180deg);
}

/* Menu */
.pclip-select__menu{
  position: absolute;
  z-index: 9999;
  left: 0;
  right: 0;
  margin: 8px 0 0;
  padding: 6px;
  list-style: none;

  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);

  max-height: 240px;
  overflow: auto;

  display: none;
}

.pclip-select.is-open .pclip-select__menu{
  display: block;
}

/* Option rows */
.pclip-select__option{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 10px 10px;
  border-radius: 10px;

  cursor: pointer;
  user-select: none;

  color: #111;
  font-size: 0.95rem;
  line-height: 1.2;
}

.pclip-select__option:hover{
  background: rgba(11,87,208,0.08);
}

.pclip-select__option[aria-selected="true"]{
  background: rgba(11,87,208,0.12);
}

.pclip-select__text{
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pclip-select__tick{
  opacity: 0;
  color: #0B57D0;
  font-weight: 800;
}

.pclip-select__option[aria-selected="true"] .pclip-select__tick{
  opacity: 1;
}

/* ===============================
   Results list layout
   =============================== */

/*
 * Finder modal: the archive grid defaults to 2-up. In the finder, it must always be 1 card per row.
 * Keep this override strictly scoped to the finder wrapper.
 */
.pclip-finder .pfa__grid{
  grid-template-columns: 1fr !important;
}

/*
 * Legacy list layout (fallback when the faceted archive plugin is not available).
 * When we reuse the archive card grid, the container also has .pfa__grid and we must not override it.
 */
.pclip-finder__list:not(.pfa__grid){
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Single product row */
.pclip-finder .pclip-row{
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;

  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
}

/* Step down the image column as the popup narrows */
@media (max-width: 980px){
  .pclip-finder .pclip-row{
    grid-template-columns: 190px 1fr;
  }
}

@media (max-width: 720px){
  .pclip-finder .pclip-row{
    grid-template-columns: 155px 1fr;
  }
}

@media (max-width: 520px){
  .pclip-finder .pclip-row{
    grid-template-columns: 125px 1fr;
  }
}

/* Media area */
.pclip-finder .pclip-row__media{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: rgba(0,0,0,0.03);
  padding: 14px !important;
  box-sizing: border-box;
}

.pclip-finder .pclip-row__media img{
  display: block !important;
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  max-height: 160px;
  vertical-align: middle !important;
}

@media (max-width: 720px){
  .pclip-finder .pclip-row__media img{
    max-height: 150px;
  }
}

@media (max-width: 520px){
  .pclip-finder .pclip-row__media img{
    max-height: 135px;
  }
}

.pclip-finder .pclip-row__body{
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* SKU above title */
.pclip-finder .pclip-row__sku{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.1;
  opacity: 0.75;
}

.pclip-finder .pclip-row__skuLabel{
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pclip-finder .pclip-row__skuValue{
  font-weight: 700;
}

.pclip-finder .pclip-row__title{
  font-weight: 800;
  font-size: 1.2rem!important;
  text-decoration: none;
  color: inherit;
  line-height: 1.15;
}

.pclip-finder .pclip-row__title:hover{
  color: #0b5bd3 ;
}

.pclip-finder .pclip-row__price{
  font-size: 0.95rem;
  opacity: 0.9;
  color: #051633C4;
  font-weight: 700;
}

/* Badge “pills” */
.pclip-row__badges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pclip-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  line-height: 1.1;
}

.pclip-badge__label{
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 0.8;
}

.pclip-badge__value{
  font-size: 0.82rem;
  font-weight: 800;
}

/* Specs grid */
.pclip-specs{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.pclip-spec{
  background: rgba(0,0,0,0.03);
  border-radius: 12px;
  padding: 10px 12px;

  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.pclip-spec dt{
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.75;
}

.pclip-spec dd{
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

/* Highlight pack quantity */
.pclip-spec--pack{
  background: rgba(11,87,208,0.10);
}

.pclip-spec--pack dt{
  opacity: 0.9;
}

.pclip-spec--pack dd{
  color: #0B57D0;
}

/* CTA */
.pclip-finder .pclip-row__ctaWrap{
  margin-top: 2px;
}

.pclip-finder .pclip-row__view{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #0B57D0;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1.2;

  width: fit-content;
  padding: 6px 0;
}

.pclip-finder .pclip-row__view::after{
  content: "↗";
  font-size: 0.95em;
  line-height: 1;
  transform: translateY(-1px);
}

.pclip-finder .pclip-row__view:hover,
.pclip-finder .pclip-row__view:focus{
  text-decoration: underline;
}

/* Empty state */
.pclip-finder__empty{
  padding: 14px 12px;
  border: 1px dashed rgba(0,0,0,0.22);
  border-radius: 12px;
}

.pclip-finder__emptyTitle{
  font-weight: 800;
  margin-bottom: 4px;
}

.pclip-finder__emptyText{
  opacity: 0.8;
  line-height: 1.35;
}

/* Help line */
.pclip-finder__help{
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.35;
  opacity: 1;
}

.pclip-finder__helpLink{
  font-weight: 800;
  text-decoration: underline;
  color: inherit;
}

.pclip-finder__helpLink:hover,
.pclip-finder__helpLink:focus{
  opacity: 0.85;
}

/* Normalise diameter input text size */
.pclip-finder__field--diameter .pclip-finder__input{
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 500;
}

/* Emphasis ONLY for the warning clause (theme-proof) */
.pclip-finder__status .pclip-status__warning{
  font-weight: 800 !important;
}
/* ------------------------------------------------
   Status message weight control (theme-proof)
   Ensures ONLY the warning clause is bold
--------------------------------------------------- */

/* Force the base message to normal weight */
.pclip-finder .pclip-finder__status{
  font-weight: 500 !important;
}

/* Force all children to inherit that normal weight
   (prevents theme rules like `.something strong { font-weight: 800 }` from bleeding in) */
.pclip-finder .pclip-finder__status *{
  font-weight: inherit !important;
}

/* Then re-apply emphasis ONLY where we explicitly want it */
.pclip-finder .pclip-finder__status .pclip-status__warning{
  font-weight: 800 !important;
}

/* ------------------------------------------------
   Help line: only "Get in touch" bold (theme-proof)
--------------------------------------------------- */

.pclip-finder .pclip-finder__help{
  font-weight: 500 !important;     /* normal body weight */
}

.pclip-finder .pclip-finder__help *{
  font-weight: inherit !important; /* stop inherited bold bleeding into children */
}

.pclip-finder .pclip-finder__help .pclip-finder__helpLink{
  font-weight: 800 !important;     /* bold only the link text */
   color: #000!important;
   transition: color 0.3s!important;
}

.pclip-finder .pclip-finder__help .pclip-finder__helpLink:hover{
   color: #0B57D0!important;
}



#elementor-popup-modal-14335 .dialog-close-button {
    display: flex;
    font-size: 24px;
    background: #ffffff;
    padding: 5px;
    border-radius: 99px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
}


/* =========================================================
   ARCHIVE TEMPLATE HARDENING
   (Stops Elementor/template inheritance breaking the UI)
   ========================================================= */

/* Force sane base typography/colour inside the finder */
.pclip-finder.pclip-finder--isolated{
  color: #111 !important;         /* prevents white-on-white */
  font-weight: 400 !important;    /* prevents “everything bold” */
}

/* Ensure all plain text inherits the sane base */
.pclip-finder.pclip-finder--isolated .pclip-finder__header,
.pclip-finder.pclip-finder--isolated .pclip-finder__title,
.pclip-finder.pclip-finder--isolated .pclip-finder__subtitle,
.pclip-finder.pclip-finder--isolated .pclip-finder__status,
.pclip-finder.pclip-finder--isolated .pclip-finder__help{
  color: #111 !important;
  font-weight: 400 !important;
}

/* Keep the intended bold bits actually bold */
.pclip-finder.pclip-finder--isolated .pclip-finder__title{
  font-weight: 800 !important;
}

.pclip-finder.pclip-finder--isolated .pclip-finder__label{
  font-weight: 700 !important;
}

/* Help line: ONLY the link bold */
.pclip-finder.pclip-finder--isolated .pclip-finder__helpLink{
  font-weight: 800 !important;
  color: inherit !important;
}

/* Status warning span: ONLY this clause bold */
.pclip-finder.pclip-finder--isolated .pclip-finder__status .pclip-status__warning{
  font-weight: 800 !important;
  color: inherit !important;
}




.elementor-popup-modal .dialog-close-button svg {
    fill: #1f2124;
    height: 0.9em;
    width: 1em;
    transition: fill 0.3s;
}

svg.e-font-icon-svg.e-eicon-close.eicon-close:hover {
    fill: #0b5bd3;
}
