/**
 * Addon CSS: Size Chart Guide
 * Theme: Zurix
 */

.kitify-size-chart-wrapper {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 10px;
}

.kitify-size-chart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #111111;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.kitify-size-chart-btn.has-underline {
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.kitify-size-chart-btn .size-chart-icon {
  display: inline-flex;
  font-size: 16px;
}

.kitify-size-chart-btn:hover {
  color: #666666;
  opacity: 0.85;
}

/* ── Modal Lightbox Popup ──────────────────────────────── */
body .size-chart-modal-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999999 !important;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

body .size-chart-modal-popup.is-open {
  opacity: 1;
  visibility: visible;
}

body .size-chart-modal-popup .size-chart-modal-container {
  position: relative;
  background-color: #ffffff;
  border-radius: 8px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body .size-chart-modal-popup.is-open .size-chart-modal-container {
  transform: scale(1);
}

/* Header */
body .size-chart-modal-popup .size-chart-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #eeeeee;
}

body .size-chart-modal-popup .size-chart-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #111111;
  margin: 0;
}

body .size-chart-modal-popup .size-chart-modal-close {
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #111111;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

body .size-chart-modal-popup .size-chart-modal-close:hover {
  background-color: #f0f0f0;
}

/* Body / Content Area */
body .size-chart-modal-popup .size-chart-modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(90vh - 70px);
  text-align: center;
}

body .size-chart-modal-popup .size-chart-modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Table styling for HTML size guides */
body .size-chart-modal-popup .size-chart-modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

body .size-chart-modal-popup .size-chart-modal-body th,
body .size-chart-modal-popup .size-chart-modal-body td {
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  font-size: 14px;
  text-align: center;
}

body .size-chart-modal-popup .size-chart-modal-body th {
  background-color: #f8f8f8;
  font-weight: 600;
  color: #111111;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  body .size-chart-modal-popup .size-chart-modal-container {
    max-width: 95vw;
    max-height: 85vh;
  }
  body .size-chart-modal-popup .size-chart-modal-body {
    padding: 16px;
  }
}

