/* ../branzino-email-builder/dist/branzino-email-builder.css */
.wysiwyg-toolbar {
  position: fixed;
  color: #333;
  display: flex;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
  display: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  align-items:  center;
  gap: 4px;
  min-width: 320px;
  padding: 8px 12px;
  transition: all .2s;
  transform: translateY(-10px);
  box-shadow: 0 4px 12px #00000026;
}

.wysiwyg-toolbar.visible {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wysiwyg-toolbar.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: #f8fdff;
  border-color: #2196f3;
  transform: translateY(0);
  box-shadow: 0 4px 16px #2196f333;
}

.toolbar-btn {
  color: #333;
  cursor: pointer;
  display: flex;
  background: none;
  border: 1px solid #0000;
  border-radius: 4px;
  justify-content: center;
  align-items:  center;
  min-width: 28px;
  height: 28px;
  padding: 6px 8px;
  transition: all .2s;
  font-size: 14px;
  font-weight: 500;
}

.toolbar-btn:hover {
  background: #e3f2fd;
  border-color: #2196f3;
}

.toolbar-btn.active {
  color: #fff;
  background: #2196f3;
  border-color: #2196f3;
}

.color-picker-wrapper {
  position: relative;
  display: flex;
  align-items:  center;
}

.toolbar-color-picker {
  cursor: pointer;
  position: absolute;
  opacity: 0;
  z-index: 1;
  border: none;
  border-radius: 3px;
  width: 20px;
  height: 20px;
}

.color-btn {
  background: linear-gradient(45deg, red 0% 14.28%, #f80 14.28% 28.56%, #ff0 28.56% 42.84%, #0f0 42.84% 57.12%, #08f 57.12% 71.4%, #00f 71.4% 85.68%, #80f 85.68% 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 16px;
  font-weight: 700;
}

.highlight-btn {
  -webkit-text-fill-color: initial !important;
  background: none !important;
}

.highlight-btn span {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
}

.variables-dropdown {
  position: relative;
}

.variables-menu {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  z-index: 1001;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  min-width: 180px;
  max-height: 200px;
  transition: all .2s;
  top: 100%;
  left: 0;
  transform: translateY(-10px);
  box-shadow: 0 4px 12px #00000026;
}

.variables-menu.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.variables-header {
  color: #666;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}

.variable-item {
  display: block;
  text-align: left;
  cursor: pointer;
  color: #333;
  background: none;
  border: none;
  width: 100%;
  padding: 6px 12px;
  transition: background .2s;
  font-family: monospace;
  font-size: 13px;
}

.variable-item:hover {
  background: #f0f2f5;
}

.toolbar-separator {
  background: #fff3;
  width: 1px;
  height: 20px;
  margin: 0 4px;
}

.emoji-dropdown {
  position: relative;
}

.emoji-menu {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  z-index: 1001;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  width: 240px;
  max-height: 280px;
  transition: all .2s;
  top: 100%;
  left: 0;
  transform: translateY(-10px);
  box-shadow: 0 4px 12px #00000026;
}

.emoji-menu.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.emoji-header {
  color: #666;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 8px;
}

.emoji-item {
  display: flex;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 4px;
  justify-content: center;
  align-items:  center;
  width: 32px;
  height: 32px;
  transition: all .2s;
  font-size: 20px;
}

.emoji-item:hover {
  background: #f0f2f5;
  transform: scale(1.2);
}

.link-dialog {
  position: fixed;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  border-radius: 12px;
  min-width: 300px;
  padding: 24px;
  transition: all .2s;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 32px #0003;
}

.link-dialog.visible {
  opacity: 1;
  visibility: visible;
}

.link-dialog-overlay {
  position: fixed;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  background: #00000080;
  transition: all .2s;
  inset: 0;
}

.link-dialog-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.link-dialog h3 {
  color: #333;
  margin: 0 0 16px;
  font-size: 18px;
}

.link-dialog input {
  outline: none;
  border: 2px solid #ddd;
  border-radius: 6px;
  width: 100%;
  margin-bottom: 16px;
  padding: 12px;
  transition: border-color .2s;
  font-size: 14px;
}

.link-dialog input:focus {
  border-color: #2196f3;
}

.link-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.link-dialog .btn {
  cursor: pointer;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
}

.link-dialog .btn.primary {
  color: #fff;
  background: #2196f3;
  border-color: #2196f3;
}

.text-component strong, .text-component b {
  font-weight: 600;
}

.text-component em, .text-component i {
  font-style: italic;
}

.text-component a {
  color: #2196f3;
  text-decoration: underline;
}

.text-component a:hover {
  color: #1976d2;
}

.text-component ul, .text-component ol {
  margin: 8px 0;
  padding-left: 24px;
}

.text-component ul {
  list-style-type: disc;
}

.text-component ol {
  list-style-type: decimal;
}

.text-component li {
  margin: 4px 0;
  line-height: 1.6;
}

.properties-panel {
  display: flex;
  overflow: hidden;
  background: #fff;
  border-left: 1px solid #e0e0e0;
  flex-direction: column;
  width: 320px;
}

.properties-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 20px 16px;
}

.properties-header h2 {
  color: #333;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.properties-content {
  overflow-y: auto;
  flex: 1;
  padding: 0 20px 20px;
}

.property-section {
  margin-bottom: 32px;
}

.property-section h3 {
  color: #333;
  display: flex;
  align-items:  center;
  gap: 8px;
  margin: 20px 0 16px;
  font-size: 16px;
  font-weight: 600;
}

.property-section:first-child h3 {
  margin-top: 0;
}

.property-group {
  margin-bottom: 20px;
}

.property-group label {
  display: block;
  color: #555;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.property-group input, .property-group select {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  width: 100%;
  padding: 10px 12px;
  transition: border-color .2s;
  font-size: 14px;
}

.property-group input:focus, .property-group select:focus {
  outline: none;
  border-color: #2196f3;
  box-shadow: 0 0 0 3px #2196f31a;
}

.property-group input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.property-group input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.property-group input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.color-input-wrapper {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.color-input-wrapper input[type="color"] {
  cursor: pointer;
  background: none;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  width: 50px;
  height: 38px;
  padding: 0;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

.color-input-wrapper input[type="text"] {
  flex: 1;
  font-family: monospace;
  font-size: 13px;
}

.no-selection-state {
  text-align: center;
  color: #999;
  padding: 40px 20px;
}

.no-selection-icon {
  opacity: .5;
  margin-bottom: 16px;
  font-size: 48px;
}

.no-selection-state h4 {
  color: #666;
  margin: 0 0 8px;
  font-size: 16px;
}

.no-selection-state p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

#emailbuilder {
  display: flex;
  width: 100vw;
  height: 100vh;
}

.branzino-email-builder {
  display: flex;
}

.branzino-email-builder * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.branzino-email-builder .toolbar {
  display: flex;
  overflow: hidden;
  background: #fff;
  border-right: 1px solid #e0e0e0;
  flex-direction: column;
  width: 280px;
}

.branzino-email-builder .toolbar-tabs {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.branzino-email-builder .toolbar-tab-btn {
  cursor: pointer;
  color: #666;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  flex: 1;
  padding: 14px 16px;
  transition: all .2s;
  font-size: 14px;
  font-weight: 500;
}

.branzino-email-builder .toolbar-tab-btn:hover {
  color: #333;
  background: #fff;
}

.branzino-email-builder .toolbar-tab-btn.active {
  color: #2196f3;
  background: #fff;
  border-bottom-color: #2196f3;
}

.branzino-email-builder .toolbar-content {
  overflow-y: auto;
  flex: 1;
  padding: 20px;
}

.branzino-email-builder .toolbar h2 {
  color: #333;
  margin-bottom: 24px;
  font-size: 18px;
  font-weight: 600;
}

.branzino-email-builder .component-group {
  margin-bottom: 24px;
}

.branzino-email-builder .component-group h3 {
  color: #666;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
}

.branzino-email-builder .component-item {
  display: flex;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  background: #f8f9fa;
  border: 2px solid #0000;
  border-radius: 8px;
  align-items:  center;
  margin-bottom: 8px;
  padding: 12px 16px;
  transition: all .2s;
}

.branzino-email-builder .component-item:hover {
  background: #e3f2fd;
  border-color: #2196f3;
  transform: translateY(-1px);
}

.branzino-email-builder .component-item:active {
  cursor: grabbing;
}

.branzino-email-builder .component-item.dragging {
  opacity: .5;
  transform: rotate(5deg);
}

.branzino-email-builder .component-icon {
  display: flex;
  color: #fff;
  background: #2196f3;
  border-radius: 4px;
  justify-content: center;
  align-items:  center;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  font-size: 14px;
}

.branzino-email-builder .component-label {
  color: #333;
  font-weight: 500;
}

.branzino-email-builder .canvas-container {
  display: flex;
  background: #fafafa;
  flex-direction: column;
  flex: 1;
}

.branzino-email-builder .canvas-header {
  display: flex;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  justify-content: space-between;
  align-items:  center;
  padding: 16px 24px;
}

.branzino-email-builder .canvas-title {
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.branzino-email-builder .canvas-actions {
  display: flex;
  align-items:  center;
  gap: 12px;
}

.branzino-email-builder .preview-group {
  display: flex;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 6px;
  gap: 4px;
}

.branzino-email-builder .preview-group .btn {
  display: flex;
  border: none;
  border-radius: 0;
  align-items:  center;
  gap: 6px;
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
}

.branzino-email-builder .preview-group .btn:first-child {
  border-right: 1px solid #ddd;
}

.branzino-email-builder .preview-group .btn:hover {
  background: #f0f2f5;
}

.branzino-email-builder .btn-icon {
  font-size: 14px;
}

.branzino-email-builder .btn {
  cursor: pointer;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 16px;
  transition: all .2s;
  font-size: 14px;
}

.branzino-email-builder .btn:hover {
  background: #f5f5f5;
}

.branzino-email-builder .btn.primary {
  color: #fff;
  background: #2196f3;
  border-color: #2196f3;
}

.branzino-email-builder .btn.primary:hover {
  background: #1976d2;
}

.branzino-email-builder .canvas {
  overflow-y: auto;
  position: relative;
  flex: 1;
  padding: 24px;
}

.branzino-email-builder .drop-zone {
  position: relative;
  background: #fff;
  border: 2px dashed #ddd;
  border-radius: 12px;
  min-height: 600px;
  padding: 24px;
  transition: all .3s;
}

.branzino-email-builder .drop-zone.drag-over {
  background: #f3f9ff;
  border-color: #2196f3;
}

.branzino-email-builder .drop-zone-placeholder {
  position: absolute;
  text-align: center;
  color: #999;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.branzino-email-builder .drop-zone-placeholder.hidden {
  display: none;
}

.branzino-email-builder .drop-zone-icon {
  opacity: .5;
  margin-bottom: 16px;
  font-size: 48px;
}

.branzino-email-builder .drop-zone-text {
  margin-bottom: 8px;
  font-size: 18px;
}

.branzino-email-builder .drop-zone-subtext {
  opacity: .7;
  font-size: 14px;
}

.branzino-email-builder .component {
  position: relative;
  cursor: pointer;
  border: 2px solid #0000;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 16px;
  transition: all .2s;
}

.branzino-email-builder .component:hover {
  border-color: #2196f3;
  box-shadow: 0 2px 8px #2196f31a;
}

.branzino-email-builder .component.selected {
  border-color: #2196f3;
  box-shadow: 0 0 0 3px #2196f31a;
}

.branzino-email-builder .component-controls {
  position: absolute;
  display: none;
  gap: 4px;
  top: -12px;
  right: -12px;
}

.branzino-email-builder .control-btn {
  color: #fff;
  cursor: pointer;
  display: flex;
  background: #f44;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 24px;
  height: 24px;
  transition: all .2s;
  font-size: 12px;
}

.branzino-email-builder .control-btn:hover {
  background: #c00;
  transform: scale(1.1);
}

.branzino-email-builder .text-component {
  outline: none;
  border: 1px solid #eee;
  border-radius: 6px;
  min-height: 40px;
  padding: 12px;
  line-height: 1.5;
}

.branzino-email-builder .text-component:focus {
  border-color: #2196f3;
  box-shadow: 0 0 0 2px #2196f31a;
}

.branzino-email-builder .text-component[contenteditable="true"] {
  cursor: text;
}

.branzino-email-builder .heading-component {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.branzino-email-builder .heading-component.h1 {
  font-size: 32px;
}

.branzino-email-builder .heading-component.h2 {
  font-size: 28px;
}

.branzino-email-builder .heading-component.h3 {
  font-size: 24px;
}

.branzino-email-builder .heading-component.h4 {
  font-size: 20px;
}

.branzino-email-builder .heading-component.h5 {
  font-size: 18px;
}

.branzino-email-builder .heading-component.h6 {
  font-size: 16px;
}

.branzino-email-builder .button-component {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  background: #2196f3;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  transition: all .2s;
  font-weight: 500;
}

.branzino-email-builder .button-component:hover {
  background: #1976d2;
  transform: translateY(-1px);
}

.branzino-email-builder .image-component {
  display: block;
  border-radius: 6px;
  max-width: 100%;
  height: auto;
}

.branzino-email-builder .image-placeholder {
  display: flex;
  color: #999;
  background: #f5f5f5;
  border: 2px dashed #ddd;
  border-radius: 6px;
  justify-content: center;
  align-items:  center;
  width: 100%;
  height: 200px;
  font-size: 16px;
}

.branzino-email-builder .insertion-indicator {
  opacity: 0;
  background: #2196f3;
  border-radius: 2px;
  height: 4px;
  margin: 8px 0;
  transition: opacity .2s;
}

.branzino-email-builder .insertion-indicator.active {
  opacity: 1;
}

.branzino-email-builder .canvas {
  overflow-y: auto;
  position: relative;
  background: #f0f2f5;
  flex: 1;
  padding: 24px;
}

.branzino-email-builder .drop-zone {
  position: relative;
  background: #fff;
  border: none;
  border-radius: 8px;
  max-width: 600px;
  min-height: 600px;
  margin: 0 auto;
  padding: 0;
  transition: all .3s;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 8px #0000001a;
}

.branzino-email-builder .drop-zone.drag-over {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px #2196f333;
}

.branzino-email-builder .drop-zone-placeholder {
  position: absolute;
  text-align: center;
  color: #999;
  pointer-events: none;
  padding: 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.branzino-email-builder .email-container {
  min-height: 560px;
  padding: 20px;
}

.branzino-email-builder .component {
  position: relative;
  cursor: pointer;
  border: 2px solid #0000;
  border-radius: 4px;
  margin-bottom: 0;
  padding: 0;
  transition: all .2s;
}

.branzino-email-builder .component:hover {
  border-color: #2196f3;
  box-shadow: 0 0 0 1px #2196f31a;
}

.branzino-email-builder .component.selected {
  border-color: #2196f3;
  box-shadow: 0 0 0 3px #2196f326;
}

.branzino-email-builder .text-component {
  outline: none;
  color: #333;
  border: none;
  border-radius: 0;
  min-height: 24px;
  margin: 16px 0;
  padding: 0;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
}

.branzino-email-builder .heading-component {
  color: #333;
  margin: 24px 0 16px;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.3;
}

.branzino-email-builder .heading-component:focus {
  background: #2196f30d;
  border-radius: 4px;
  margin: 16px -8px 8px;
  padding: 8px;
}

.branzino-email-builder .button-component {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  background: #2196f3;
  border: none;
  border-radius: 6px;
  margin: 12px 0;
  padding: 12px 24px;
  transition: all .2s;
  font-family: inherit;
  font-weight: 500;
}

.branzino-email-builder .button-component:focus {
  outline: 2px solid #2196f34d;
  outline-offset: 2px;
}

.branzino-email-builder .image-component {
  display: block;
  border-radius: 6px;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
}

.branzino-email-builder .image-placeholder {
  display: flex;
  color: #666;
  cursor: pointer;
  background: #f8f9fa;
  border: 2px dashed #ddd;
  border-radius: 6px;
  justify-content: center;
  align-items:  center;
  width: 100%;
  height: 200px;
  margin: 16px 0;
  transition: all .2s;
  font-size: 16px;
}

.branzino-email-builder .image-placeholder:hover {
  background: #f0f2f5;
  border-color: #2196f3;
}

.branzino-email-builder .modal-overlay {
  position: fixed;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #0009;
  transition: all .3s;
  inset: 0;
}

.branzino-email-builder .modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.branzino-email-builder .modal {
  position: fixed;
  z-index: 2001;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  display: flex;
  background: #fff;
  border-radius: 12px;
  flex-direction: column;
  max-width: 90vw;
  max-height: 90vh;
  transition: all .3s;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 60px #0000004d;
}

.branzino-email-builder .modal.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%)scale(1);
}

.branzino-email-builder .modal-header {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  justify-content: space-between;
  align-items:  center;
  padding: 20px 24px;
}

.branzino-email-builder .modal-header h3 {
  color: #333;
  display: flex;
  align-items:  center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.branzino-email-builder .modal-close {
  color: #666;
  cursor: pointer;
  display: flex;
  background: none;
  border: none;
  border-radius: 4px;
  justify-content: center;
  align-items:  center;
  width: 32px;
  height: 32px;
  padding: 4px;
  transition: all .2s;
  font-size: 24px;
}

.branzino-email-builder .modal-close:hover {
  color: #333;
  background: #e0e0e0;
}

.branzino-email-builder .modal-content {
  overflow-y: auto;
  flex: 1;
  padding: 24px;
}

.branzino-email-builder .templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 800px;
}

.branzino-email-builder .template-card {
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all .2s;
}

.branzino-email-builder .template-card:hover {
  border-color: #2196f3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px #2196f326;
}

.branzino-email-builder .template-preview {
  overflow: hidden;
  position: relative;
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  justify-content: center;
  align-items:  center;
  height: 200px;
}

.branzino-email-builder .template-preview-content {
  overflow: hidden;
  position: relative;
  background: #fff;
  border-radius: 4px;
  width: 90%;
  height: 90%;
  transform: scale(.7);
  box-shadow: 0 2px 8px #0000001a;
}

.branzino-email-builder .template-info {
  padding: 16px;
}

.branzino-email-builder .template-title {
  color: #333;
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.branzino-email-builder .template-description {
  color: #666;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.branzino-email-builder .template-blank {
  background: #fafafa;
  border: 2px dashed #ddd;
}

.branzino-email-builder .template-blank .template-preview {
  background: #fafafa;
  border: none;
}

.branzino-email-builder .template-blank .template-preview-content {
  display: flex;
  color: #999;
  background: #fff;
  border: 2px dashed #ccc;
  justify-content: center;
  align-items:  center;
  font-size: 18px;
}

.branzino-email-builder .template-blank:hover {
  background: #f3f9ff;
  border-color: #2196f3;
}

.branzino-email-builder .save-form {
  max-width: 400px;
}

.branzino-email-builder .form-group {
  margin-bottom: 20px;
}

.branzino-email-builder .form-group label {
  display: block;
  color: #333;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.branzino-email-builder .form-group input, .branzino-email-builder .form-group textarea {
  resize: vertical;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  width: 100%;
  padding: 12px;
  transition: border-color .2s;
  font-family: inherit;
  font-size: 14px;
}

.branzino-email-builder .form-group input:focus, .branzino-email-builder .form-group textarea:focus {
  outline: none;
  border-color: #2196f3;
  box-shadow: 0 0 0 3px #2196f31a;
}

.branzino-email-builder .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.branzino-email-builder .saved-templates {
  max-width: 600px;
}

.branzino-email-builder .saved-template-item {
  display: flex;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: 12px;
  padding: 16px;
  transition: all .2s;
}

.branzino-email-builder .saved-template-item:hover {
  border-color: #2196f3;
  box-shadow: 0 2px 8px #2196f31a;
}

.branzino-email-builder .saved-template-info {
  flex: 1;
}

.branzino-email-builder .saved-template-name {
  color: #333;
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.branzino-email-builder .saved-template-meta {
  color: #666;
  margin: 0 0 8px;
  font-size: 13px;
}

.branzino-email-builder .saved-template-description {
  color: #555;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.branzino-email-builder .saved-template-actions {
  display: flex;
  gap: 8px;
  margin-left: 16px;
}

.branzino-email-builder .saved-template-actions .btn {
  min-width: auto;
  padding: 6px 12px;
  font-size: 13px;
}

.branzino-email-builder .btn-danger {
  color: #fff;
  background: #f44;
  border-color: #f44;
}

.branzino-email-builder .btn-danger:hover {
  background: #c00;
  border-color: #c00;
}

.branzino-email-builder .empty-state {
  text-align: center;
  color: #999;
  padding: 40px 20px;
}

.branzino-email-builder .empty-state-icon {
  opacity: .5;
  margin-bottom: 16px;
  font-size: 48px;
}

.branzino-email-builder .empty-state h4 {
  color: #666;
  margin: 0 0 8px;
  font-size: 18px;
}

.branzino-email-builder .empty-state p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.branzino-email-builder .toast {
  position: fixed;
  color: #fff;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  border-radius: 6px;
  max-width: 300px;
  padding: 12px 20px;
  transition: all .3s;
  font-size: 14px;
  font-weight: 500;
  top: 20px;
  right: 20px;
  transform: translateY(-20px);
}

.branzino-email-builder .toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.branzino-email-builder .toast.success {
  background: #4caf50;
}

.branzino-email-builder .toast.error {
  background: #f44336;
}

.branzino-email-builder .spacer-component {
  display: block;
  position: relative;
  background: none;
  border: 1px dashed #ddd;
}

.branzino-email-builder .spacer-component:after {
  content: "📏 Spacer";
  position: absolute;
  color: #999;
  pointer-events: none;
  font-size: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.branzino-email-builder .separator-component {
  display: block;
  margin: 20px 0;
}

.branzino-email-builder .separator-line {
  background: #e0e0e0;
  border: none;
  width: 100%;
  height: 2px;
  margin: 0;
}

.branzino-email-builder .social-component {
  text-align: center;
  margin: 16px 0;
}

.branzino-email-builder .social-links {
  display: inline-flex;
  align-items:  center;
  gap: 10px;
}

.branzino-email-builder .social-link {
  display: inline-block;
  text-decoration: none;
  border-radius: 4px;
  transition: all .2s;
}

.branzino-email-builder .social-link:hover {
  transform: scale(1.1);
}

.branzino-email-builder .social-icon {
  display: block;
  border-radius: 4px;
  width: 32px;
  height: 32px;
}

.branzino-email-builder .html-component {
  position: relative;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  min-height: 60px;
  margin: 16px 0;
  padding: 16px;
}

.branzino-email-builder .html-placeholder {
  color: #666;
  text-align: center;
  padding: 20px;
  font-style: italic;
}

.branzino-email-builder .html-content {
  background: #fff;
  border-radius: 4px;
  padding: 12px;
}

.branzino-email-builder .component-controls {
  position: absolute;
  display: none;
  z-index: 10;
  gap: 4px;
  top: -12px;
  right: -12px;
}

.branzino-email-builder .component.selected .component-controls {
  display: flex;
}

.branzino-email-builder .control-btn {
  color: #fff;
  cursor: pointer;
  display: flex;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
  transition: all .2s;
  font-size: 12px;
  box-shadow: 0 2px 4px #0000001a;
}

.branzino-email-builder .control-btn:hover {
  transform: scale(1.1);
}

.branzino-email-builder .control-btn.delete-btn {
  background: #f44;
}

.branzino-email-builder .control-btn.delete-btn:hover {
  background: #c00;
}

.branzino-email-builder .control-btn.clone-btn {
  background: #2196f3;
}

.branzino-email-builder .control-btn.clone-btn:hover {
  background: #1976d2;
}

.branzino-email-builder .control-btn.move-up-btn {
  background: #4caf50;
}

.branzino-email-builder .control-btn.move-up-btn:hover {
  background: #388e3c;
}

.branzino-email-builder .control-btn.move-down-btn {
  background: #ff9800;
}

.branzino-email-builder .control-btn.move-down-btn:hover {
  background: #f57c00;
}

.branzino-email-builder .social-platforms {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.branzino-email-builder .checkbox-label {
  display: flex;
  cursor: pointer;
  align-items:  center;
  gap: 8px;
  font-size: 14px;
}

.branzino-email-builder .checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.branzino-email-builder .checkbox-label span {
  color: #333;
}

.branzino-email-builder #htmlContent {
  resize: vertical;
  min-height: 120px;
  font-family: Courier New, monospace;
}

.branzino-email-builder #previewHtmlBtn {
  margin-top: 8px;
  font-size: 12px;
}

.branzino-email-builder .properties-tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  margin-top: 12px;
}

.branzino-email-builder .tab-btn {
  cursor: pointer;
  color: #666;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  padding: 8px 16px;
  transition: all .2s;
  font-size: 13px;
  font-weight: 500;
}

.branzino-email-builder .tab-btn:hover {
  color: #2196f3;
}

.branzino-email-builder .tab-btn.active {
  color: #2196f3;
  border-bottom-color: #2196f3;
}

.branzino-email-builder .sections-content {
  overflow-y: auto;
  height: 100%;
  padding: 20px;
}

.branzino-email-builder .sections-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.branzino-email-builder .section-group {
  margin-bottom: 8px;
}

.branzino-email-builder .section-group h3 {
  color: #333;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}

.branzino-email-builder .section-item {
  display: flex;
  cursor: pointer;
  background: #f8f9fa;
  border: 2px solid #0000;
  border-radius: 8px;
  align-items:  center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 12px;
  transition: all .2s;
}

.branzino-email-builder .section-item:hover {
  background: #f3f9ff;
  border-color: #2196f3;
  transform: translateY(-1px);
}

.branzino-email-builder .section-preview {
  display: flex;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 60px;
  height: 40px;
}

.branzino-email-builder .section-preview-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  gap: 2px;
  width: 100%;
  height: 100%;
  font-size: 8px;
  line-height: 1;
}

.branzino-email-builder .preview-header {
  color: #fff;
  display: flex;
  background: #2196f3;
  border-radius: 1px;
  justify-content: center;
  align-items:  center;
  width: 90%;
  height: 8px;
  font-size: 6px;
}

.branzino-email-builder .preview-banner {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  border-radius: 1px;
  width: 90%;
  height: 12px;
}

.branzino-email-builder .preview-divider {
  background: #e0e0e0;
  width: 90%;
  height: 1px;
}

.branzino-email-builder .preview-layout {
  display: flex;
  align-items:  center;
  gap: 4px;
  width: 90%;
  height: 100%;
}

.branzino-email-builder .preview-text {
  display: flex;
  background: #f0f0f0;
  border-radius: 1px;
  flex: 1;
  justify-content: center;
  align-items:  center;
  height: 80%;
  font-size: 8px;
}

.branzino-email-builder .preview-image {
  display: flex;
  background: #ddd;
  border-radius: 1px;
  justify-content: center;
  align-items:  center;
  width: 20px;
  height: 80%;
  font-size: 8px;
}

.branzino-email-builder .preview-columns {
  display: flex;
  gap: 2px;
  width: 90%;
  height: 80%;
}

.branzino-email-builder .preview-column {
  display: flex;
  background: #f0f0f0;
  border-radius: 1px;
  flex: 1;
  justify-content: center;
  align-items:  center;
  font-size: 8px;
}

.branzino-email-builder .preview-cta {
  display: flex;
  flex-direction: column;
  align-items:  center;
  gap: 2px;
  width: 90%;
  height: 100%;
}

.branzino-email-builder .preview-button {
  color: #fff;
  display: flex;
  background: #2196f3;
  border-radius: 2px;
  justify-content: center;
  align-items:  center;
  width: 60%;
  height: 8px;
  font-size: 6px;
}

.branzino-email-builder .preview-social {
  display: flex;
  background: #f0f0f0;
  border-radius: 1px;
  justify-content: center;
  align-items:  center;
  width: 90%;
  height: 8px;
  font-size: 6px;
}

.branzino-email-builder .preview-unsubscribe {
  display: flex;
  background: #e0e0e0;
  border-radius: 1px;
  justify-content: center;
  align-items:  center;
  width: 70%;
  height: 6px;
  font-size: 5px;
}

.branzino-email-builder .preview-company {
  display: flex;
  background: #f0f0f0;
  border-radius: 1px;
  justify-content: center;
  align-items:  center;
  width: 90%;
  height: 8px;
  font-size: 6px;
}

.branzino-email-builder .section-info {
  flex: 1;
}

.branzino-email-builder .section-title {
  color: #333;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
}

.branzino-email-builder .section-description {
  color: #666;
  font-size: 11px;
}

.branzino-email-builder .column-layout {
  position: relative;
}

.branzino-email-builder .columns-container {
  display: flex;
  position: relative;
  gap: 20px;
  padding: 20px 0;
}

.branzino-email-builder .column-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
}

.branzino-email-builder .column-dropzone {
  background: #fafafa;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  min-height: 100px;
  padding: 12px;
  transition: all .2s;
}

.branzino-email-builder .column-dropzone.drag-over-column {
  background: #e8f0fe;
  border-color: #4285f4;
  box-shadow: 0 0 0 3px #4285f41a;
}

.branzino-email-builder .column-placeholder {
  display: flex;
  color: #999;
  pointer-events: none;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  gap: 8px;
  min-height: 80px;
  font-size: 14px;
}

.branzino-email-builder .column-placeholder-icon {
  opacity: .5;
  font-size: 24px;
}

.branzino-email-builder .column-placeholder-text {
  opacity: .7;
  font-size: 13px;
}

.branzino-email-builder .column-resize-handle {
  position: absolute;
  cursor: col-resize;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items:  center;
  width: 20px;
  top: 0;
  bottom: 0;
  right: -10px;
}

.branzino-email-builder .column-resize-handle:before {
  content: "⋮";
  color: #ccc;
  transition: color .2s;
  font-size: 18px;
}

.branzino-email-builder .column-resize-handle:hover:before {
  color: #4285f4;
}

.branzino-email-builder .column-resize-handle:active {
  cursor: col-resize;
}

.branzino-email-builder .column-dropzone .component {
  margin-bottom: 12px;
}

.branzino-email-builder .column-dropzone .component:last-child {
  margin-bottom: 0;
}

.branzino-email-builder .column-dropzone > .component > .insertion-indicator {
  display: none;
}

@media (width <= 600px) {
  .branzino-email-builder .columns-container {
    gap: 15px;
    flex-direction: column !important;
  }

  .branzino-email-builder .column-resize-handle {
    display: none;
  }
}
