/**
 * Lab Tests Off-Canvas Cart – lab-offcanvas.css  v3.0.0
 */
/* ─── Savings banner ──────────────────────────────────────────────────────── */

#lab-offcanvas-savings-banner {
  background: #01b37a;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  padding: 7px 16px;
  display: flex;
  border-radius: 20px 20px 0px 0px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
}
/* Prevent centered modal from shifting when scrollbar is compensated */
.lab-offcanvas {
    margin-right: 0 !important;
}
#lab-offcanvas-savings-banner .banner-flash {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: lab-banner-flash 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes lab-banner-flash {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(400%) skewX(-15deg); }
}
/* ─── Product card ─────────────────────────────────────────────────────────── */

.test-pckg-card-wrapper {
}

.test-pckg-card-wrapper .test-pckg-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 19px;
  max-width: 100%;
  margin: auto;
  box-shadow: 0 2px 8px 0 #e0e0e0;
}

.test-pckg-card-wrapper .test-pckg-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.test-pckg-card-wrapper .test-pckg-title {
  font-size: 14px;
  font-weight: 500;
  color: #444a53;
}

.test-pckg-card-wrapper .test-pckg-price {
  text-align: right;
}

.test-pckg-card-wrapper .test-pckg-icon {
  width: 12px;
  height: 12px;
  display: inline-block;
}

.test-pckg-card-wrapper .test-pckg-old {
  font-size: 12px;
  color: #afb4ba;
  text-decoration: line-through;
  margin-right: 1px;
}

.test-pckg-card-wrapper .test-pckg-new {
  font-size: 16px;
  font-weight: 600;
  color: #444a53;
}

.test-pckg-card-wrapper .test-pckg-report {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #5a616c;
}
.lab-search-input::placeholder {

  color: #b8bec8;

}
.test-pckg-card-wrapper .test-pckg-report span {
  color: #f08a42;
  font-weight: 600;
}

.test-pckg-card-wrapper .test-pckg-divider {
  margin: 16px 0;
  height: 1px;
  background: #eeeeee;
}

.test-pckg-card-wrapper .test-pckg-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.test-pckg-card-wrapper .test-pckg-desc {
  max-width: 75%;
  font-size: 12px;
  line-height: 1.5;
  color: #747d8a;
}

.test-pckg-card-wrapper .test-pckg-desc strong {
  font-weight: 500;
  color: #444a53;
}

.test-pckg-card-wrapper .test-pckg-view {
  margin-top: 6px;
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #f08a42;
  text-decoration: none;
}

/* ─── Add / Remove buttons ─────────────────────────────────────────────────── */

.lab-add-to-cart-btn,
.lab-remove-from-cart-btn {
  border: 1px solid #128a8a;
  background: transparent;
  color: #128a8a;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.lab-add-to-cart-btn:hover {
  background: #128a8a;
  color: #ffffff;
}

.lab-remove-from-cart-btn {
  background: #128a8a;
  color: #ffffff;
}

.lab-remove-from-cart-btn:hover {
  background: #0f6f6f;
  border-color: #0f6f6f;
}

.lab-add-to-cart-btn:disabled,
.lab-remove-from-cart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── Popup / Off-canvas shell ─────────────────────────────────────────────── */

.lab-offcanvas {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 430px;
  max-height: 85vh;
  background: white;
  border-radius: 22px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.lab-offcanvas.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.lab-offcanvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lab-offcanvas-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ─── Search bar ───────────────────────────────────────────────────────────── */

.lab-offcanvas-search {
  padding: 20px;
  
  position: relative;
}

.lab-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.lab-search-back {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  font-size: 22px;
  font-weight: 400;
  z-index: 3;
  background: transparent;
  line-height: 1;
  transition: color 0.2s;
}


.lab-search-back:hover {
  color: #128a8a;
}

.lab-search-clear {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #444a53;
  font-size: 16px;
  z-index: 3;
  background: transparent;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.lab-search-clear::before {
  content: "✕";
}

.lab-search-clear:hover {
  color: #128a8a;
  background: #f0f0f0;
}

.lab-search-clear.visible {
  display: flex;
}

.lab-offcanvas-search .lab-search-input {
  width: 100%;
  height: 48px;
  padding: 12px 45px !important;
  border: 1px solid #128a8a;
  border-radius: 15px;
  font-size: 14px;
  color: #1e293b;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 1;
}

.lab-offcanvas-search .lab-search-input:focus {
  outline: none;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(18, 138, 138, 0.1);
}

/* ─── Tabs ─────────────────────────────────────────────────────────────────── */

/* ─── Tabs ─────────────────────────────────────────────────────────────────── */

.lab-offcanvas-tabs {
  padding: 0px 20px 20px 20px;
  background: #fff;
  border-bottom: 1px solid #eaeaea;
}

.lab-tabs-inner {
  display: flex;
  position: relative;
  background: #f0f4f5;
  border-radius: 13px;
  padding: 4px;
  gap: 0;
}

.lab-tab-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  z-index: 0;
  pointer-events: none;
}

.lab-tab-slider.packages {
  transform: translateX(100%);
}

.lab-tab-btn {
  flex: 1;
  padding: 9px 0;
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: #9aa5b4;
  position: relative;
  z-index: 1;
  transition: color 0.22s ease;
  text-align: center;
}

.lab-tab-btn.active {
  color: #008b95;
}

/* ─── Content area ─────────────────────────────────────────────────────────── */

.lab-offcanvas-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px;
  border-radius: 20px;
  background-color: #f5f7fa;
  min-height: 0;
}

.lab-tab-content {
  display: none;
}

.lab-tab-content.active {
  display: block;
}

.lab-products-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.lab-no-products {
  text-align: center;
  color: #666;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 15px;
}

/* ─── Cart summary bar ─────────────────────────────────────────────────────── */

.lab-cart-summary {
  flex-shrink: 0;
  background: #ffffff;
  border-top: 1px solid #eef2f6;
  padding: 15px 20px 15px 20px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.03);
  border-radius: 0 0 22px 22px;
  z-index: 10;
  display: none;
}

.lab-cart-summary.has-items {
  display: block;
}

.lab-cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.lab-cart-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.lab-cart-icon {
  font-size: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

.lab-cart-details {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.lab-cart-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.lab-cart-total {
  font-size: 16px;
  font-weight: 700;
  color: #128a8a;
  line-height: 1.3;
}

.lab-cart-items {
  font-size: 12px;
  color: #64748b;
  line-height: 1.3;
}

.lab-view-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #128a8a;
  text-decoration: none;
  white-space: nowrap;
}

.lab-view-cart-link:hover {
  text-decoration: underline;
}

.lab-arrow {
  font-size: 16px;
  line-height: 1;
}

.lab-cart-right {
  flex-shrink: 0;
}

.lab-proceed-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(160deg, #ff9f1c 0%, #ff7b00 100%);
  color: #fff;
  gap: 20px;
  border: none;
  border-radius: 14px;
  
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 -2px 0 rgba(0,0,0,0.15) inset,
    0 8px 24px rgba(255,123,0,0.5),
    0 2px 4px rgba(255,123,0,0.3);
  transition: all 0.2s ease;
}
.lab-proceed-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 -2px 0 rgba(0,0,0,0.2) inset,
    0 14px 36px rgba(255,123,0,0.6),
    0 4px 8px rgba(255,123,0,0.35);
  color: #fff;
}
.lab-proceed-btn:active { transform: translateY(0); }
.lab-proceed-btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.18);
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.2);
  margin-left: 10px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.lab-proceed-btn:hover .lab-proceed-btn-arrow { transform: translateX(3px); }

/* ─── Spinner / loading overlay ────────────────────────────────────────────── */

.lab-offcanvas-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10002;
}

.lab-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #128a8a;
  border-radius: 50%;
  animation: lab-spin 1s linear infinite;
}

@keyframes lab-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ─── Skeleton loader ──────────────────────────────────────────────────────── */

.skeleton-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: lab-shimmer 1.5s infinite;
  border-radius: 8px;
  margin-bottom: 12px;
}

.skeleton-line.short  { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.long   { width: 100%; }
.skeleton-line.small  { width: 40%; height: 14px; }

.skeleton-button {
  width: 70px;
  height: 36px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: lab-shimmer 1.5s infinite;
  border-radius: 40px;
}

@keyframes lab-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Search-active banner ─────────────────────────────────────────────────── */

.lab-search-active {
  background: #e8f4fd;
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid #007cba;
}

.lab-search-active span {
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.lab-clear-search {
  background: none;
  border: 1px solid #007cba;
  color: #007cba;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s;
}

.lab-clear-search:hover {
  background: #007cba;
  color: white;
}

/* ─── Parameters modal ─────────────────────────────────────────────────────── */

.lab-parameters-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10003;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lab-parameters-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.lab-parameters-modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: white;
  border-radius: 12px 12px 0 0;
}

.lab-parameters-modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 18px;
}

.lab-parameters-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  line-height: 1;
}

.lab-parameters-modal-close:hover {
  color: #333;
}

.lab-parameters-modal-body {
  padding: 20px;
}

/* ─── Parameters list ──────────────────────────────────────────────────────── */

.parameters-details {
  font-family: inherit;
}

.parameter-group {
  margin-bottom: 25px;
}

.package-group {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.package-header {
  background: #f8f9fa;
  padding: 15px;
  font-weight: 600;
  border-bottom: 1px solid #e0e0e0;
}

.parameter-badge {
  margin-left: 10px;
  padding: 2px 8px;
  background: #28a745;
  color: white;
  border-radius: 12px;
  font-size: 12px;
}

.parameters-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.parameters-list li {
  padding: 12px 15px 12px 35px;
  border-bottom: 1px dashed #eee;
  position: relative;
}

.parameters-list li:last-child {
  border-bottom: none;
}

.parameter-check {
  position: absolute;
  left: 12px;
  color: #28a745;
  font-weight: bold;
}

.report-time {
  background: #e7f3ff;
  padding: 15px;
  border-radius: 6px;
  margin-top: 20px;
  border-left: 4px solid #007cba;
}

.no-parameters {
  text-align: center;
  color: #666;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
}

/* ─── Floating button (kept for optional use) ──────────────────────────────── */

.lab-floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #128a8a;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 25px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.lab-floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.lab-cart-count {
  background: #ff4444;
  color: white;
  border-radius: 50%;
  padding: 2px 8px;
  font-size: 14px;
  margin-left: 5px;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .lab-offcanvas {
    max-width: 100%;
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    top: 0;
    left: 0;
    transform: translate(0, 0) scale(0.9);
    transform-origin: center;
  }

  .lab-offcanvas.open {
    transform: translate(0, 0) scale(1);
  }

  .lab-offcanvas-content {
    max-height: calc(100vh - 200px);
  }

  .lab-cart-summary {
    border-radius: 0;
  }

  .lab-floating-btn {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
  }
}