/**
 * XMTek Pricing Styles
 */

.xmtekp-pricing-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px auto;
  max-width: 900px;
  align-items: stretch;
}

.xmtekp-pricing-box {
  flex: 1;
  padding: 24px;
  border: 1px solid #d1d5db;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-family: "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

/* Features List Box */
.xmtekp-features-box {
  justify-content: flex-start;
}

.xmtekp-credits-header {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
}

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

.xmtekp-features-list li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  color: #444;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.3;
}

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

.xmtekp-feature-icon {
  color: #6A996A;
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.xmtekp-feature-icon.highlight {
  color: #d3642c;
}

.xmtekp-features-list li strong {
  color: #333;
}

.xmtekp-feature-note {
  color: #888;
  font-size: 0.8rem;
}

/* Headings */
.xmtekp-pricing-header h2 {
  margin: 0;
  font-size: 1.6rem;
  text-align: left;
  color: #6A996A;
}

.xmtekp-pricing-header p {
  margin: 0 0 16px;
  color: #666;
  font-size: 0.95rem;
  text-align: left;
}

/* Company Size Display */
.xmtekp-company-size-display {
  text-align: center;
  margin: 4px 0;
}

.xmtekp-company-size-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #6A996A;
  margin-bottom: 0;
}

.xmtekp-company-size-range {
  font-size: 0.9rem;
  color: #666;
}

/* Icon Slider */
.xmtekp-icon-slider {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 8px auto 12px;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.xmtekp-size-icon {
  width: 44px;
  height: 44px;
  padding: 6px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #ddd;
  color: #999;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.xmtekp-size-icon svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.xmtekp-size-icon:hover {
  border-color: #86B88B;
  color: #6A996A;
  transform: scale(1.1);
}

.xmtekp-size-icon.active {
  border-color: #6A996A;
  background: #6A996A;
  color: #fff;
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(106, 153, 106, 0.4);
}

/* Hidden range input for keyboard accessibility */
.xmtekp-icon-slider input[type="range"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Slider track behind icons */
.xmtekp-slider-track {
  position: absolute;
  top: 50%;
  left: 28px;
  right: 28px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  transform: translateY(-50%);
  z-index: 1;
}

/* Pricing Display */
.xmtekp-pricing-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.xmtekp-pricing-main {
  font-size: 2.2rem;
  font-weight: 700;
  color: #333;
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Promo code pricing styles */
.xmtekp-pricing-main.has-promo > span {
  text-decoration: line-through;
  color: #999;
}

.xmtekp-promo-message {
  font-size: 0.85rem;
  color: #6A996A;
  font-weight: 600;
  margin-top: 4px;
  text-align: center;
  line-height: 1.2;
}

/* Custom pricing text styling */
.xmtekp-pricing-main.custom-pricing {
  font-size: 1.4rem;
  font-weight: 600;
  color: #6A996A;
}

/* Custom price image */
.xmtekp-custom-price-img {
  max-width: 150px;
  max-height: 80px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Custom price content wrapper (for text + image) */
.xmtekp-custom-price-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.xmtekp-custom-price-text {
  font-size: 1.4rem;
  font-weight: 600;
  color: #6A996A;
}

.xmtekp-pricing-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 2px solid #eee;
  padding-right: 16px;
  order: 1;
}

.xmtekp-detail-row {
  font-size: 0.85rem;
  color: #666;
}

.xmtekp-detail-row span {
  font-weight: 600;
  color: #6A996A;
}

.xmtekp-savings-row {
  color: #d3642c;
  font-size: 0.85rem;
}

.xmtekp-savings-row span {
  font-weight: 600;
  color: #d3642c;
}

/* Grey Footer Section */
.xmtekp-pricing-footer {
  background: #f3f4f6;
  margin-top: auto;
  margin-left: -24px;
  margin-right: -24px;
  margin-bottom: -24px;
  padding: 20px 24px 20px 24px;
  border-radius: 0 0 24px 24px;
}

/* Credit Breakdown */
.xmtekp-breakdown-line {
  font-size: 0.85rem;
  color: #444;
  text-align: center;
  padding: 0 0 12px 0;
}

.xmtekp-breakdown-line .xmtekp-breakdown-item {
  display: inline;
}

.xmtekp-breakdown-line .xmtekp-breakdown-item.sages {
  color: #6A996A;
}

.xmtekp-breakdown-line .xmtekp-breakdown-item.screens {
  color: #d3642c;
}

.xmtekp-breakdown-line .xmtekp-breakdown-item strong {
  font-weight: 700;
}

.xmtekp-breakdown-line .xmtekp-tooltip-trigger {
  border-bottom: 1px dashed currentColor;
  cursor: pointer;
}

.xmtekp-breakdown-line .xmtekp-tooltip-icon {
  font-size: 0.7rem;
  margin-left: 2px;
  opacity: 0.8;
}

/* CTA */
.xmtekp-pricing-cta {
  text-align: center;
  margin-top: 12px;
}

.xmtekp-pricing-cta button {
  padding: 16px 28px;
  background: #d3642c;
  color: #fff;
  border: none;
  width: 70%;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.xmtekp-pricing-cta button:hover {
  background-color: #A04B21;
}

/* Disclaimer */
.xmtekp-pricing-disclaimer {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  line-height: 1.3;
}

.xmtekp-pricing-disclaimer a {
  color: #6A996A;
}

/* Start Screening Text */
.xmtekp-start-screening {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #6A996A;
  font-weight: 600;
  text-align: center;
}

/* Tooltip Trigger */
.xmtekp-tooltip-trigger {
  cursor: pointer;
  border-bottom: 1px dashed #6A996A;
  position: relative;
}

.xmtekp-tooltip-trigger:hover {
  color: #6A996A;
}

.xmtekp-tooltip-icon {
  font-size: 0.75rem;
  margin-left: 4px;
  color: #6A996A;
}

/* Small Inline Tooltip */
.xmtekp-small-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  transform: none;
  background: #333;
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
  width: 280px;
  max-width: 90vw;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: none;
  text-align: left;
}

.xmtekp-small-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 20px;
  transform: none;
  border: 6px solid transparent;
  border-top-color: #333;
}

.xmtekp-tooltip-trigger:hover .xmtekp-small-tooltip,
.xmtekp-small-tooltip.active {
  display: block;
}

.xmtekp-small-tooltip strong:first-child {
  color: #d3642c;
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

/* Wide tooltip for sage levels */
.xmtekp-small-tooltip.tooltip-wide {
  width: 300px;
}

.xmtekp-small-tooltip.tooltip-wide strong:not(:first-child) {
  color: #d3642c;
}

/* Right-aligned tooltip for elements on right side */
.xmtekp-breakdown-line .xmtekp-breakdown-item.screens .xmtekp-small-tooltip {
  left: auto;
  right: 0;
}

.xmtekp-breakdown-line .xmtekp-breakdown-item.screens .xmtekp-small-tooltip::after {
  left: auto;
  right: 20px;
}

/* Introductory Package Card - Dark Theme */
.xmtekp-introductory-card {
  max-width: 100%;
  margin: 60px auto 40px;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1f1a 50%, #0f0f0f 100%);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(106, 153, 106, 0.3);
}

.xmtekp-introductory-card h3 {
  font-size: 24px;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #6a996a 0%, #8ab38a 50%, #6a996a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.xmtekp-introductory-card p {
  font-size: 15px;
  color: #a0a0a0;
  margin: 0 0 20px;
  line-height: 1.5;
}

.xmtekp-intro-package-details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin: 20px 0;
}

.xmtekp-intro-credits {
  font-size: 32px;
  font-weight: 700;
  color: #8ab38a;
}

.xmtekp-intro-sages {
  font-size: 18px;
  font-weight: 600;
  color: #8ab38a;
}

.xmtekp-intro-price {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.xmtekp-intro-sale-price {
  font-size: 20px;
  color: #666;
  text-decoration: line-through;
}

.xmtekp-intro-buy-btn {
  background: linear-gradient(135deg, #6a996a 0%, #5a895a 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(106, 153, 106, 0.4);
  margin-bottom: 12px;
}

.xmtekp-intro-buy-btn:hover {
  background: linear-gradient(135deg, #7aaa7a 0%, #6a996a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(106, 153, 106, 0.5);
}

.xmtekp-intro-note {
  display: block;
  color: #888;
  font-size: 12px;
  font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .xmtekp-pricing-container {
    flex-direction: column;
    max-width: 100%;
  }

  .xmtekp-pricing-box {
    width: 100%;
    margin-bottom: 20px;
  }

  .xmtekp-icon-slider {
    max-width: 340px;
  }

  .xmtekp-size-icon {
    width: 40px;
    height: 40px;
    padding: 5px;
  }

  .xmtekp-size-icon svg {
    width: 22px;
    height: 22px;
  }

  .xmtekp-slider-track {
    left: 24px;
    right: 24px;
  }

  .xmtekp-pricing-display {
    flex-direction: column-reverse;
    gap: 8px;
    padding: 12px;
  }

  .xmtekp-pricing-details {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    align-items: center;
  }

  .xmtekp-pricing-cta button {
    width: 80%;
  }

  .xmtekp-intro-package-details {
    flex-direction: column;
    gap: 16px;
  }

  .xmtekp-features-list li {
    font-size: 0.85rem;
    padding: 5px 0;
  }

  .xmtekp-breakdown-line {
    font-size: 0.8rem;
  }

  .xmtekp-pricing-footer {
    margin-top: auto;
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: -24px;
    padding: 16px 20px 16px 20px;
    border-radius: 0 0 24px 24px;
  }

  .xmtekp-small-tooltip {
    width: 260px;
    font-size: 0.75rem;
  }

  .xmtekp-small-tooltip.tooltip-wide {
    width: 280px;
  }
}
