.mpc-product-action {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: var(--mpc-product-text-color, #17202a);
  font-family: var(--mpc-product-font-family, inherit);
  font-size: var(--mpc-product-font-size, 15px);
  margin: 12px 8px 0 0;
  vertical-align: top;
}

.mpc-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid rgba(0, 68, 139, 0.2);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.78);
  color: #00448b !important;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  padding: 7px 11px;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.mpc-add-button::before {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  background: currentColor;
  content: "";
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M7 21h10'/%3E%3Cpath d='M5 8h14'/%3E%3Cpath d='M5 8 2.5 15h5L5 8Z'/%3E%3Cpath d='M19 8 16.5 15h5L19 8Z'/%3E%3Cpath d='M2.5 15c.72.63 1.58.95 2.5.95s1.78-.32 2.5-.95'/%3E%3Cpath d='M16.5 15c.72.63 1.58.95 2.5.95s1.78-.32 2.5-.95'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M7 21h10'/%3E%3Cpath d='M5 8h14'/%3E%3Cpath d='M5 8 2.5 15h5L5 8Z'/%3E%3Cpath d='M19 8 16.5 15h5L19 8Z'/%3E%3Cpath d='M2.5 15c.72.63 1.58.95 2.5.95s1.78-.32 2.5-.95'/%3E%3Cpath d='M16.5 15c.72.63 1.58.95 2.5.95s1.78-.32 2.5-.95'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mpc-add-button:hover,
.mpc-add-button.is-added {
  border-color: rgba(0, 68, 139, 0.38);
  background: #e8f1fb !important;
  color: #00448b !important;
}

body.single-product .mpc-product-action .mpc-add-button.is-added,
body.single-product .mpc-product-action .mpc-add-button.is-added:hover,
body.single-product .mpc-product-action button.mpc-add-button.is-added,
body.single-product .mpc-product-action button.mpc-add-button.is-added:hover {
  border-color: rgba(0, 68, 139, 0.38) !important;
  background-color: #e8f1fb !important;
  background-image: none !important;
  color: #00448b !important;
}

.mpc-add-button:focus-visible {
  outline: 2px solid rgba(0, 68, 139, 0.22);
  outline-offset: 2px;
}

.mpc-product-remove {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0, 68, 139, 0.18);
  border-radius: 999px;
  background: rgba(0, 68, 139, 0.05);
  color: #00448b;
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  padding: 0;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.mpc-product-remove[hidden] {
  display: none;
}

.mpc-product-remove:hover,
.mpc-product-remove:focus-visible {
  border-color: rgba(0, 68, 139, 0.34);
  background: rgba(0, 68, 139, 0.1);
  color: #00448b;
}

.mpc-product-remove::after {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  z-index: 20;
  display: none;
  width: max-content;
  max-width: 190px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: #17202a;
  color: #fff;
  content: attr(data-tooltip);
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  padding: 7px 9px;
  text-align: center;
  white-space: nowrap;
}

body.single-product .et_pb_wc_images .et_pb_module_inner,
body.single-product .woocommerce-product-gallery {
  position: relative;
}

.mh-gallery-product-actions {
  position: absolute !important;
  top: 50px !important;
  right: 10px !important;
  z-index: 12 !important;
  display: flex !important;
  flex-direction: column;
  gap: 8px !important;
}

body.single-product .type-product:not(.sale) .mh-gallery-product-actions {
  top: 10px !important;
}

.mh-gallery-product-actions[hidden] {
  display: none;
}

.mh-gallery-product-action.mpc-product-action,
.mh-gallery-product-action.mwl-product-action {
  display: block;
  margin: 0;
  font-size: 0;
}

.mh-gallery-product-actions .mh-gallery-action-button.mpc-add-button,
.mh-gallery-product-actions .mh-gallery-action-button.mwl-add-button,
body.single-product .mh-gallery-product-actions button.mh-gallery-action-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  gap: 0;
  border: 1px solid rgba(0, 68, 139, 0.16);
  border-radius: 999px;
  background: rgba(232, 241, 251, 0.9) !important;
  background-color: rgba(232, 241, 251, 0.9) !important;
  background-image: none !important;
  box-shadow: 0 4px 12px rgba(0, 68, 139, 0.08);
  color: #00448b !important;
  line-height: 1;
  padding: 0;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.mh-gallery-product-actions .mh-gallery-action-button.mpc-add-button::before,
.mh-gallery-product-actions .mh-gallery-action-button.mwl-add-button::before {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  margin: 0;
}

.mh-gallery-product-actions .mh-gallery-action-button:hover,
.mh-gallery-product-actions .mh-gallery-action-button:focus-visible,
.mh-gallery-product-actions .mh-gallery-action-button.is-added {
  border-color: rgba(0, 68, 139, 0.28) !important;
  background: #dbeaf8 !important;
  background-color: #dbeaf8 !important;
  color: #00448b !important;
  box-shadow: 0 5px 14px rgba(0, 68, 139, 0.12);
}

.type-product,
li.product,
.mh-loop-actions-ready,
.et_shop_image,
.woocommerce-loop-product__link,
.et_pb_image_container {
  position: relative;
}

.mh-loop-product-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mh-loop-product-action.mpc-product-action,
.mh-loop-product-action.mwl-product-action {
  display: block;
  margin: 0;
  font-size: 0;
}

.mh-loop-product-actions .mh-loop-action-button.mpc-add-button,
.mh-loop-product-actions .mh-loop-action-button.mwl-add-button {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  gap: 0;
  border: 1px solid rgba(0, 68, 139, 0.16);
  border-radius: 999px;
  background: rgba(232, 241, 251, 0.92) !important;
  background-color: rgba(232, 241, 251, 0.92) !important;
  background-image: none !important;
  box-shadow: 0 4px 12px rgba(0, 68, 139, 0.08);
  color: #00448b !important;
  line-height: 1;
  padding: 0;
}

.mh-loop-product-actions .mh-loop-action-button.mpc-add-button::before,
.mh-loop-product-actions .mh-loop-action-button.mwl-add-button::before {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
  margin: 0;
}

.mh-loop-product-actions .mh-loop-action-button:hover,
.mh-loop-product-actions .mh-loop-action-button:focus-visible,
.mh-loop-product-actions .mh-loop-action-button.is-added {
  border-color: rgba(0, 68, 139, 0.28) !important;
  background: #dbeaf8 !important;
  background-color: #dbeaf8 !important;
  color: #00448b !important;
  box-shadow: 0 5px 14px rgba(0, 68, 139, 0.12);
}

.mpc-product-remove::before {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  z-index: 21;
  display: none;
  width: 9px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  background: #17202a;
  content: "";
}

.mpc-product-remove:hover::before,
.mpc-product-remove:hover::after,
.mpc-product-remove:focus-visible::before,
.mpc-product-remove:focus-visible::after {
  display: block;
}

.mpc-drawer-cta,
.mpc-product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 3px;
  background: var(--mpc-product-button-bg-color, var(--gcid-primary-color, #00448b));
  color: #fff !important;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  padding: 8px 14px;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.mpc-drawer-cta {
  background: var(--mpc-drawer-button-bg-color, var(--gcid-primary-color, #00448b));
  color: var(--mpc-drawer-button-text-color, #fff) !important;
}

.mpc-drawer-cta:hover {
  background: var(--mpc-drawer-button-hover-bg, var(--gcid-secondary-color, #8b0100));
  color: var(--mpc-drawer-button-hover-text, #fff) !important;
}

.mpc-product-link {
  background: var(--mpc-page-button-bg-color, var(--gcid-primary-color, #00448b));
  color: var(--mpc-page-button-text-color, #fff) !important;
}

.mpc-product-link:hover {
  background: var(--mpc-page-button-hover-bg, var(--gcid-secondary-color, #8b0100));
  color: var(--mpc-page-button-hover-text, #fff) !important;
}

.mpc-product-note {
  color: var(--mpc-product-text-color, #555);
  font-size: 0.9rem;
  font-weight: 400;
}

.mpc-drawer {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 99999;
  display: none;
  pointer-events: none;
}

.mpc-drawer.is-visible {
  display: block;
}

.mpc-drawer-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 2fr) auto 34px;
  gap: 12px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid rgba(0, 68, 139, 0.2);
  border-radius: 6px;
  background: var(--mpc-drawer-background-color, rgba(255, 255, 255, 0.96));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  color: var(--mpc-drawer-text-color, #17202a);
  font-family: var(--mpc-drawer-font-family, inherit);
  font-size: var(--mpc-drawer-font-size, 15px);
  padding: 12px;
  pointer-events: auto;
}

.mpc-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--mpc-drawer-button-bg-color, rgba(0, 68, 139, 0.08));
  color: var(--mpc-drawer-button-text-color, #00448b);
  cursor: pointer;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.mpc-drawer-close:hover {
  background: var(--mpc-drawer-button-hover-bg, #8b0100);
  color: var(--mpc-drawer-button-hover-text, #fff);
}

.mpc-drawer-inner strong,
.mpc-drawer-inner span {
  display: block;
}

.mpc-drawer-inner span {
  color: var(--mpc-drawer-text-color, #5f6b77);
  font-size: 0.9rem;
  font-weight: 700;
}

.mpc-drawer-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mpc-drawer-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(0, 68, 139, 0.18);
  border-radius: 999px;
  background: rgba(0, 68, 139, 0.06);
  color: var(--mpc-drawer-text-color, #00448b);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 7px 8px 7px 11px;
}

.mpc-drawer-item button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: var(--mpc-drawer-button-bg-color, #00448b);
  color: var(--mpc-drawer-button-text-color, #fff);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  padding: 0;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.mpc-drawer-item button:hover {
  background: var(--mpc-drawer-button-hover-bg, #8b0100);
  color: var(--mpc-drawer-button-hover-text, #fff);
}

.mpc-product-head button {
  border: 1px solid rgba(0, 68, 139, 0.18);
  border-radius: 999px;
  background: var(--mpc-page-button-bg-color, #00448b);
  color: var(--mpc-page-button-text-color, #fff);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 7px 10px;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.mpc-product-head button:hover {
  background: var(--mpc-page-button-hover-bg, #8b0100);
  color: var(--mpc-page-button-hover-text, #fff);
}

.medico-product-compare-page {
  width: min(1180px, 94vw);
  color: var(--mpc-page-text-color, #17202a);
  font-family: var(--mpc-page-font-family, inherit);
  font-size: var(--mpc-page-font-size, 16px);
  margin: 0 auto;
}

.woocommerce-account .medico-product-compare-page {
  width: 100%;
}

.mpc-page-header {
  margin: 0 0 22px;
}

.mpc-page-header h2 {
  margin: 0 0 8px;
  color: #00448b;
  font-family: var(--mpc-page-font-family, inherit);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.15;
}

.mpc-page-header p {
  max-width: 760px;
  margin: 0;
  color: var(--mpc-page-text-color, #17202a);
  font-size: 1rem;
  line-height: 1.65;
}

.mpc-page-status {
  color: var(--mpc-page-text-color, #5f6b77);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.mpc-compare-grid {
  overflow-x: auto;
  border: 1px solid rgba(0, 68, 139, 0.14);
  border-radius: 6px;
  background: var(--mpc-page-background-color, #fff);
}

.mpc-row {
  display: grid;
  grid-template-columns: 180px repeat(var(--mpc-count), minmax(210px, 1fr));
  min-width: calc(180px + (210px * var(--mpc-count)));
  border-bottom: 1px solid rgba(0, 68, 139, 0.1);
}

.mpc-row:last-child {
  border-bottom: 0;
}

.mpc-label,
.mpc-value,
.mpc-product-head {
  padding: 14px;
}

.mpc-label {
  background: rgba(0, 68, 139, 0.06);
  color: #00448b;
  font-weight: 800;
}

.mpc-value {
  color: var(--mpc-page-text-color, #17202a);
  font-weight: 650;
}

.mpc-product-head {
  display: grid;
  gap: 10px;
  align-content: start;
}

.mpc-product-head img {
  width: 100%;
  aspect-ratio: 5 / 3.3;
  object-fit: cover;
}

.mpc-product-head h3 {
  margin: 0;
  color: var(--mpc-page-text-color, #17202a);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.mpc-mini-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--mpc-icon-button-text-color, #00448b) !important;
  font-family: var(--mpc-icon-font-family, inherit);
  font-size: var(--mpc-icon-font-size, 16px);
  text-decoration: none;
}

.mpc-mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.mpc-mini-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.mpc-mini-link .mpc-mini-icon,
.mpc-mini-link .mpc-mini-icon svg {
  color: var(--mpc-icon-button-text-color, #00448b) !important;
  stroke: currentColor !important;
}

.mpc-mini-icon-custom {
  background: currentColor;
  mask: var(--mpc-icon-image) center / contain no-repeat;
  -webkit-mask: var(--mpc-icon-image) center / contain no-repeat;
}

.mpc-mini-count {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--mpc-icon-button-bg-color, var(--gcid-secondary-color, #8b0100));
  color: var(--mpc-icon-button-hover-text, #fff);
  font-family: inherit;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: 14px;
  padding: 0 3px;
}

@media (max-width: 760px) {
  .mpc-drawer {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .mpc-drawer-inner {
    grid-template-columns: 1fr;
  }

  .mpc-drawer-close {
    position: absolute;
    top: 8px;
    right: 8px;
  }

  .mpc-drawer-cta,
  .mpc-add-button {
    width: auto;
  }
}
