:root {
  --bs-primary: #06C755;
  --bs-primary-hover: #28c589;
}

/* 範本選擇功能 CSS */
.template-container {
  max-width: 300px;
  width: 100%;
  margin: 10px;
  display: inline-block;
  vertical-align: top;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  overflow: hidden;
}
.template-container .LySlider .lyItem{
  width: 100%;
}
.template-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.template-title h6 {
  color: var(--bs-primary);
  font-weight: bold;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.template-title h6 br {
  display: block !important;
}

.card-selection-wrapper {
  cursor: pointer;
  border: 1px dashed #dddddd;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.card-selection-wrapper:hover {
  border-color: var(--bs-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.2);
}

.card-selection-wrapper.selected {
  border-color: var(--bs-primary);
  border-width: 2px;
  border-style: solid;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(6, 199, 85, 0.3);
}

.card-selection-wrapper.selected .template-title {
  background-color: var(--bs-primary);
  border-radius: 6px 6px 0 0;
  padding: 8px;
  margin: -4px -4px 4px -4px;
}

.card-selection-wrapper.selected .template-title h6 {
  color: white;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.card-selection-wrapper.selected .template-title h6 br {
  display: block !important;
}

.card-selection-wrapper.selected .template-title .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: transparent;
  pointer-events: auto;
}

.card-selection-wrapper br {
  display: none;
}

#flexContainer{
  background-color: #f5f5f5;
  flex-wrap: wrap;
  display: flex;
}
.template-container .LySlider{
  background-color: #f5f5f5;
  padding: 8px;
  transform: scale(0.9);
  transform-origin: center top;
  border-radius: 4px;
  position: relative;
  margin: 0 0 -20% 0;
  overflow: hidden;
  width: 111.11%;
  margin-left: -5.56%;
}

.manual-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 350px;
}

.hero-section {
  margin-bottom: 12px;
}

.hero-section img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
}

.footer-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.text-content {
  margin: 4px 0;
}

.box-content {
  margin: 8px 0;
}

.manual-card img {
  max-width: 100%;
  border-radius: 4px;
  margin: 4px 0;
}

.btn-content {
  background: var(--bs-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  margin: 4px 0;
  cursor: pointer;
}

.error-card {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.error-card h5 {
  margin-bottom: 0.5rem;
}

.error-card p {
  color: #6c757d;
  margin: 0;
} 