.elementor-editor-jltma_popup .elementor-control-document_settings,
.elementor-editor-jltma_popup .elementor-control-post_title,
.elementor-editor-jltma_popup .elementor-control-post_status {
  display: none !important;
}
.elementor-editor-jltma_popup button[value=document-settings] {
  background: #93003c !important;
  color: #fff !important;
  position: relative !important;
  overflow: visible !important;
}
.elementor-editor-jltma_popup button[value=document-settings] svg {
  fill: #fff !important;
  color: #fff !important;
}
.elementor-editor-jltma_popup button[value=document-settings]:hover {
  background: #7a0030 !important;
}
.elementor-editor-jltma_popup #elementor-panel-footer-settings {
  background: #93003c !important;
  color: #fff !important;
  position: relative !important;
  overflow: visible !important;
}
.elementor-editor-jltma_popup #elementor-panel-footer-settings i {
  color: #fff !important;
}

#jltma-template-settings-notification {
  display: none;
  visibility: hidden;
  opacity: 1;
  position: fixed;
  right: 40px;
  bottom: 5px;
  z-index: 9999;
  padding: 13px 25px;
  background: #fff;
  color: #222;
  box-shadow: -1px 1px 5px 0 rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}
#jltma-template-settings-notification:before {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 10px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left-style: solid;
  border-left-width: 6px;
  border-left-color: #fff;
}
#jltma-template-settings-notification h4 {
  margin-bottom: 10px;
}
#jltma-template-settings-notification h4 span {
  font-size: 14px;
  vertical-align: super;
  color: #5f5f5f;
}
#jltma-template-settings-notification h4 i {
  margin-left: 10px;
  color: #3db050;
  font-size: 24px;
}
#jltma-template-settings-notification p {
  color: #666;
  font-size: 12px;
  line-height: 1.5;
}
#jltma-template-settings-notification > i {
  position: absolute;
  top: 7px;
  left: 7px;
  cursor: pointer;
  color: #999;
}
#jltma-template-settings-notification.jltma-new-editor-bar {
  position: absolute;
  right: auto;
  left: auto;
  bottom: auto;
  top: calc(100% + 10px);
  right: 50%;
  transform: translateX(50%);
  width: 320px;
  text-align: right;
}
#jltma-template-settings-notification.jltma-new-editor-bar:before {
  right: 50%;
  bottom: 100%;
  transform: translateX(50%);
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-color: #fff;
  border-bottom-width: 8px;
  border-top-width: 0;
  border-left-width: 8px;
  border-right-width: 8px;
}

.elementor-editor-active [data-elementor-type=jltma_popup] .elementor-section-wrap:not(:empty) + #elementor-add-new-section {
  display: none;
}
.elementor-editor-active [data-elementor-type=jltma_popup]:not(.elementor-edit-mode) #elementor-add-new-section {
  display: none;
}

.jltma-template-popup {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #e5e5e5;
  z-index: 1;
}
.jltma-template-popup .jltma-template-popup-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 40px 20px;
}
.jltma-template-popup .jltma-popup-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: -1;
  pointer-events: none;
}
.jltma-template-popup .jltma-popup-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.jltma-template-popup .jltma-popup-container .jltma-popup-close-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s;
}
.jltma-template-popup .jltma-popup-container .jltma-popup-close-btn i {
  font-size: 20px;
  color: #333;
  line-height: 35px;
}
.jltma-template-popup .jltma-popup-container .jltma-popup-close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}
.jltma-template-popup .jltma-popup-container .jltma-popup-container-inner {
  position: relative;
  padding: 20px;
  overflow: visible;
}
.jltma-template-popup .jltma-popup-container .jltma-popup-container-inner > #elementor-preview-responsive-wrapper {
  position: relative;
}
.jltma-template-popup .jltma-popup-container .elementor-editor-section-settings {
  transform: translateX(50%);
  border-radius: 0 0 5px 5px;
}
.jltma-template-popup .jltma-popup-container .elementor-editor-section-settings .elementor-editor-element-setting:first-child {
  border-radius: 0 0 5px 0;
}
.jltma-template-popup .jltma-popup-container .elementor-editor-section-settings .elementor-editor-element-setting:first-child:before {
  top: 0;
  border-width: 0 0 22px 12px;
}

.jltma-popup-editor #elementor-preview {
  background: #f5f5f5;
}
.jltma-popup-editor #elementor-preview #elementor-preview-iframe {
  background: #f5f5f5;
}
.jltma-popup-editor .jltma-popup-settings-panel {
  position: fixed;
  left: 0;
  top: 0;
  width: 320px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #e1e8ed;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}
.jltma-popup-editor .jltma-popup-settings-panel.active {
  transform: translateX(0);
}
.jltma-popup-editor .jltma-popup-settings-panel .panel-header {
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e1e8ed;
}
.jltma-popup-editor .jltma-popup-settings-panel .panel-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 8px;
}
.jltma-popup-editor .jltma-popup-settings-panel .panel-header h3 .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}
.jltma-popup-editor .jltma-popup-settings-panel .panel-body {
  padding: 20px;
  overflow-y: auto;
  height: calc(100vh - 80px);
}
.jltma-popup-editor .jltma-popup-settings-panel .panel-body .setting-group {
  margin-bottom: 20px;
}
.jltma-popup-editor .jltma-popup-settings-panel .panel-body .setting-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #495057;
  font-size: 13px;
}
.jltma-popup-editor .jltma-popup-settings-panel .panel-body .setting-group input[type=text],
.jltma-popup-editor .jltma-popup-settings-panel .panel-body .setting-group input[type=number],
.jltma-popup-editor .jltma-popup-settings-panel .panel-body .setting-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
}
.jltma-popup-editor .jltma-popup-settings-panel .panel-body .setting-group input[type=text]:focus,
.jltma-popup-editor .jltma-popup-settings-panel .panel-body .setting-group input[type=number]:focus,
.jltma-popup-editor .jltma-popup-settings-panel .panel-body .setting-group select:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
}
.jltma-popup-editor .jltma-popup-settings-panel .panel-body .setting-group input[type=checkbox] {
  margin-left: 8px;
}
.jltma-popup-editor .jltma-popup-settings-panel .panel-body .setting-group label:has(input[type=checkbox]) {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.jltma-popup-editor .jltma-popup-settings-panel .panel-body .setting-group label:has(input[type=checkbox]) input[type=checkbox] {
  margin-left: 8px;
  width: auto;
}
.jltma-popup-editor .jltma-popup-settings-toggle {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background: #2271b1;
  color: #fff;
  padding: 12px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  z-index: 9998;
  transition: all 0.3s ease;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}
.jltma-popup-editor .jltma-popup-settings-toggle:hover {
  background: #135e96;
  transform: translateY(-50%) translateX(2px);
}
.jltma-popup-editor .jltma-popup-settings-toggle .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
  display: block;
}
.jltma-popup-editor .jltma-popup-settings-toggle::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  margin-left: 10px;
}
.jltma-popup-editor .jltma-popup-settings-toggle::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #333;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  margin-left: 4px;
}
.jltma-popup-editor .jltma-popup-settings-toggle:hover::before, .jltma-popup-editor .jltma-popup-settings-toggle:hover::after {
  opacity: 1;
}
.jltma-popup-editor .jltma-popup-editor-notice {
  background: #e7f3ff;
  border: 1px solid #72aee6;
  border-radius: 4px;
  padding: 12px 16px;
  margin: 0 0 20px 0;
}
.jltma-popup-editor .jltma-popup-editor-notice p {
  margin: 0;
  font-size: 13px;
  color: #135e96;
}
.jltma-popup-editor .jltma-popup-editor-notice strong {
  color: #0073aa;
}
.jltma-popup-editor .jltma-template-settings-notification {
  position: absolute;
  top: calc(100% + 10px);
  right: 50%;
  transform: translateX(50%);
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 999999;
  width: 320px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.jltma-popup-editor .jltma-template-settings-notification.jltma-new-editor-bar {
  top: auto;
  bottom: calc(100% + 10px);
  right: 50%;
  transform: translateX(50%);
}
.jltma-popup-editor .jltma-template-settings-notification.jltma-new-editor-bar::before {
  content: "";
  position: absolute;
  top: 100%;
  right: 50%;
  transform: translateX(50%);
  border: 8px solid transparent;
  border-top-color: #ffffff;
}
.jltma-popup-editor .jltma-template-settings-notification::before {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 50%;
  transform: translateX(50%);
  border: 8px solid transparent;
  border-bottom-color: #ffffff;
}
.jltma-popup-editor .jltma-template-settings-notification.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.jltma-popup-editor .jltma-template-settings-notification h4 {
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1976d2;
}
.jltma-popup-editor .jltma-template-settings-notification h4 .eicon-info-circle {
  font-size: 18px;
  color: #4caf50;
}
.jltma-popup-editor .jltma-template-settings-notification h4 span {
  font-weight: 600;
}
.jltma-popup-editor .jltma-template-settings-notification p {
  margin: 0;
  font-size: 13px;
  color: #424242;
  line-height: 1.6;
}
.jltma-popup-editor .jltma-template-settings-notification p strong {
  color: #1976d2;
  font-weight: 600;
}
.jltma-popup-editor .jltma-template-settings-notification .eicon-close {
  position: absolute;
  top: 12px;
  left: 12px;
  cursor: pointer;
  font-size: 16px;
  color: #9e9e9e;
  transition: color 0.2s;
  z-index: 1;
}
.jltma-popup-editor .jltma-template-settings-notification .eicon-close:hover {
  color: #1976d2;
}
.jltma-popup-editor button[value=document-settings] {
  overflow: visible !important;
}
.jltma-popup-editor .elementor-control-post_status,
.jltma-popup-editor .elementor-control-post_title,
.jltma-popup-editor .elementor-control-template {
  display: none !important;
}
.jltma-popup-editor #elementor-preview-iframe .jltma-popup-canvas {
  min-height: 400px;
  position: relative;
}
.jltma-popup-editor #elementor-preview-iframe .jltma-popup-canvas.jltma-popup-type-modal {
  max-width: 600px;
  margin: 40px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 2px dashed #e0e0e0;
}
.jltma-popup-editor #elementor-preview-iframe .jltma-popup-canvas.jltma-popup-type-modal:hover {
  border-color: #2271b1;
}
.jltma-popup-editor #elementor-preview-iframe .jltma-popup-canvas.jltma-popup-type-slide-in {
  max-width: 400px;
  margin: 20px auto 20px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 2px dashed #e0e0e0;
}
.jltma-popup-editor #elementor-preview-iframe .jltma-popup-canvas.jltma-popup-type-slide-in:hover {
  border-color: #2271b1;
}
.jltma-popup-editor #elementor-preview-iframe .jltma-popup-canvas.jltma-popup-type-notification {
  width: 100%;
  margin: 0;
  background: #fff;
  border-radius: 0;
  min-height: 80px;
  border-top: 2px dashed #e0e0e0;
  border-bottom: 2px dashed #e0e0e0;
}
.jltma-popup-editor #elementor-preview-iframe .jltma-popup-canvas.jltma-popup-type-notification:hover {
  border-color: #2271b1;
}
.jltma-popup-editor #elementor-preview-iframe .jltma-popup-canvas.jltma-popup-type-full-screen {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  background: #fff;
  border-radius: 0;
  border: 2px dashed #e0e0e0;
}
.jltma-popup-editor #elementor-preview-iframe .jltma-popup-canvas.jltma-popup-type-full-screen:hover {
  border-color: #2271b1;
}

@media (max-width: 1024px) {
  .jltma-popup-editor .jltma-popup-settings-panel {
    width: 100%;
  }
  .jltma-popup-editor .jltma-popup-settings-toggle {
    left: 20px;
  }
}