/* ---------------------------------------------------------------
   EDITOR PLACEHOLDER
   Shown when no template is selected yet in the editor
--------------------------------------------------------------- */
.pea-template-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 32px 24px;
  border: 2px dashed rgba(130, 136, 148, 0.35);
  border-radius: 8px;
  text-align: center;
  background: rgba(130, 136, 148, 0.04);
}

.pea-template-placeholder__icon {
  display: block;
  font-size: 36px;
  color: #adb5bd;
  margin-bottom: 12px;
  line-height: 1;
}

.pea-template-placeholder p {
  font-size: 13px;
  color: #6c757d;
  margin: 0;
  line-height: 1.5;
}

/* ---------------------------------------------------------------
   EDIT TEMPLATE BUTTON
   Shown in the Elementor panel when a template is selected
--------------------------------------------------------------- */
.pea-edit-template-wrap {
  display: block;
  margin-top: 8px;
}

.pea-edit-template-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #6a4bff;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    opacity 0.2s ease;
  white-space: nowrap;
}

.pea-edit-template-btn:hover {
  background: #5538e8;
  color: #fff;
  text-decoration: none;
}

.pea-edit-template-btn i {
  font-size: 13px;
}

/* ---------------------------------------------------------------
   ERROR STATE
--------------------------------------------------------------- */
.pea-template-error {
  padding: 12px 16px;
  background: #fff3f3;
  border: 1px solid #f5c2c2;
  border-radius: 6px;
  color: #c0392b;
  font-size: 13px;
  margin: 0;
}

/* ---------------------------------------------------------------
   FRONTEND TEMPLATE WRAPPER
   Wraps the rendered template content on the frontend.
   Minimal styling — the template's own CSS handles appearance.
--------------------------------------------------------------- */
.pea-template-widget-wrap {
  position: relative;
  width: 100%;
}

/* ---------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------- */
@media (max-width: 768px) {
  .pea-template-placeholder {
    min-height: 80px;
    padding: 20px 16px;
  }

  .pea-template-placeholder__icon {
    font-size: 28px;
  }
}
