.yeekit-camera-popup {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 999999;
}
.yeekit-camera-popup canvas,
.yeekit-photo-preview,
.yeekit-video-preview,
.yeekit-camera-photo-accept,
.yeekit-camera-video-accept {
  display: none;
}
.yeekit-camera-popup-content {
  position: relative;
  background: #ffffff;
  padding: 24px;
  border-radius: 20px;
  text-align: center;
  display: inline-block;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 90vw;
}
.yeekit-camera-popup video,
.yeekit-photo-preview,
.yeekit-video-preview {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 14px;
  background: #0f172a;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}
.yeekit-camera-popup-title {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.yeekit-camera-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.yeekit-camera-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.yeekit-camera-popup-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.yeekit-camera-popup-controls button {
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.yeekit-camera-capture {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.yeekit-camera-capture:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}
.yeekit-camera-capture::before {
  content: "📸";
  margin-right: 6px;
}
.yeekit-camera-field[data-type="video"] .yeekit-camera-capture::before {
  content: "🎥";
}
.yeekit-camera-photo-accept,
.yeekit-camera-video-accept {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.yeekit-camera-photo-accept:hover,
.yeekit-camera-video-accept:hover {
  background: #059669;
  transform: translateY(-1px);
}
.yeekit-camera-upload {
  background: #f1f5f9;
  color: #334155;
}
.yeekit-camera-upload:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.yeekit-camera-countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 10000;
}
.yeekit-camera-timer {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 14px;
  color: #ffffff;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 20px;
  display: none;
}
.yeekit-camera-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ef4444;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  display: none;
  box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.15);
}
.yeekit-camera-field {
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px !important;
}
.yeekit-camera-button {
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.35);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  white-space: nowrap;
}
.yeekit-camera-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.45);
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  opacity: 1;
}
.yeekit-camera-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px 0 rgba(79, 70, 229, 0.3);
}
.yeekit-camera-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.yeekit-camera-button:hover svg {
  transform: scale(1.1);
}
.yeekit-camera-button svg path {
  fill: currentColor;
}
.yeekit-camera-button span {
  padding-left: 0;
}
.elementor-field-camera {
  margin-top: 5px;
}
.yeekit-camera-result-preview {
  order: 1;
  margin: 0 !important;
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  max-width: 320px;
  max-height: 240px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  border: 2px solid #e2e8f0;
  background: #0f172a;
}
.yeekit-camera-result-preview img,
.yeekit-camera-result-preview video {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 12px;
}
.yeekit-camera-result-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  z-index: 10;
}
.yeekit-camera-result-remove:hover {
  background: #ef4444;
  transform: scale(1.1);
}