/* ---------- Form UI ---------- */
.lm-wrapper { max-width: 760px; margin: 0 auto; }
.lm-form-card{
  background:#fff; padding:16px; border:1px solid #e5e7eb; border-radius:12px;
}
.lm-title{ margin:0 0 10px 0; font-family: Arial, sans-serif; }

.lm-form-desc{
  margin: 6px 0 10px 0;
  font-size: 14px;
  line-height: 18px;
  color: #6b7280;
  font-family: Arial, sans-serif;
}

.lm-req{ color:#b91c1c; }
.lm-help{ margin-top:6px; font-size:13px; color:#6b7280; font-family: Arial, sans-serif; }

.lm-form-card label{ display:block; margin-top:12px; font-weight:600; font-family: Arial, sans-serif; }
.lm-form-card input, .lm-form-card textarea{
  width:100%; margin-top:6px; padding:10px; border:1px solid #d1d5db; border-radius:10px;
  box-sizing:border-box; font-family: Arial, sans-serif;
}
.lm-form-card textarea{ min-height:110px; resize:vertical; }

.lm-counter{
  margin-top:6px;
  font-size:13px;
  color:#6b7280;
  font-family: Arial, sans-serif;
  text-align:right;
}

/* ✅ UPDATED: Centered button layout */
.lm-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
  justify-content: center; /* ✅ Center buttons */
}

.lm-btn-primary{
  margin-top:14px; 
  padding:12px 24px; 
  border:0; 
  border-radius:10px;
  background:#111827; 
  color:#fff; 
  cursor:pointer; 
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  min-width: 200px; /* ✅ Minimum width for better appearance */
  transition: background 0.2s ease;
}

.lm-btn-primary:hover:not(:disabled){
  background:#1f2937;
}

.lm-btn-primary:disabled{ 
  opacity:.6; 
  cursor:not-allowed; 
}

/* Legacy button support (for backward compatibility) */
.lm-form-card button{
  margin-top:14px; 
  padding:12px 18px; 
  border:0; 
  border-radius:10px;
  background:#111827; 
  color:#fff; 
  cursor:pointer; 
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  transition: background 0.2s ease;
}

.lm-form-card button:hover:not(:disabled){
  background:#1f2937;
}

.lm-form-card button:disabled{ 
  opacity:.6; 
  cursor:not-allowed; 
}

/* ✅ NEW: Enhanced status messages with color coding */
.lm-status{ 
  margin-top:12px; 
  padding: 10px 12px;
  font-size:14px; 
  font-family: Arial, sans-serif;
  border-radius: 8px;
  line-height: 1.4;
  display: none;
}

.lm-status:not(:empty){
  display: block;
}

/* Default status (neutral) */
.lm-status{
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

/* Info status (blue) */
.lm-status--info{
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Success status (green) */
.lm-status--success{
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Error status (red) */
.lm-status--error{
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ✅ NEW: Success Popup Modal Styles */
#lmCugPopup{
  position:fixed; 
  inset:0; 
  z-index:999999;
  animation: lmPopupFadeIn 0.2s ease;
}

@keyframes lmPopupFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#lmCugPopup .lm-cug-pop__backdrop{
  position:absolute; 
  inset:0; 
  background:rgba(0,0,0,.6); 
  backdrop-filter:blur(4px);
  animation: lmBackdropFadeIn 0.3s ease;
}

@keyframes lmBackdropFadeIn {
  from { 
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to { 
    opacity: 1;
    backdrop-filter: blur(4px);
  }
}

#lmCugPopup .lm-cug-pop__panel{
  position:relative;
  width:min(480px, calc(100% - 32px));
  margin:15vh auto 0;
  background:#fff;
  border-radius:16px;
  padding:24px 20px;
  box-shadow:0 20px 60px rgba(0,0,0,.3);
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  animation: lmPanelSlideIn 0.3s ease;
}

@keyframes lmPanelSlideIn {
  from { 
    transform: translateY(-20px);
    opacity: 0;
  }
  to { 
    transform: translateY(0);
    opacity: 1;
  }
}

#lmCugPopup .lm-cug-pop__title{
  font-size:20px; 
  font-weight:700; 
  margin:0 0 12px;
  color:#111827;
}

#lmCugPopup .lm-cug-pop__msg{
  font-size:15px; 
  line-height:1.6; 
  color:#374151;
  white-space:pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#lmCugPopup .lm-cug-pop__actions{
  display:flex; 
  justify-content:center; 
  margin-top:18px;
}

#lmCugPopup .lm-cug-pop__btn{
  border:0; 
  border-radius:10px; 
  padding:12px 24px;
  background:#111827; 
  color:#fff; 
  font-weight:600; 
  cursor:pointer;
  font-size:15px;
  transition:background 0.2s ease;
  min-width: 120px;
}

#lmCugPopup .lm-cug-pop__btn:hover{
  background:#1f2937;
}

/* ✅ Mobile responsive popup */
@media (max-width: 640px){
  #lmCugPopup .lm-cug-pop__panel{
    margin:10vh auto 0;
    padding:20px 16px;
  }
  
  #lmCugPopup .lm-cug-pop__title{
    font-size:18px;
  }
  
  #lmCugPopup .lm-cug-pop__msg{
    font-size:14px;
  }
}

/* ---------- Export stage (offscreen) ---------- */
#lmExportStage{
  position:fixed; left:-10000px; top:0;
  width:1080px; height:1200px;
  overflow:visible;
}

/* ---------- Canvas (1080×1200) WhatsApp-like background ---------- */
.lm-canvas{
  width:1080px; height:1200px;
  box-sizing:border-box;
  padding:70px 70px 55px 70px;

  background-color:#e9e5dd;
  background-image:
    radial-gradient(rgba(0,0,0,.05) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,.03) 1px, transparent 1px);
  background-size: 36px 36px, 54px 54px;
  background-position: 0 0, 10px 18px;

  display:flex;
  flex-direction:column;
}

/* Header */
.lm-top{ margin-bottom:26px; }

.lm-top-row{
  display:flex;
  align-items:baseline;
  gap:16px;
}

.lm-top-right{
  font-family: Arial, sans-serif;
  font-weight:500;
  color:#2b2b2b;
  opacity:.9;
  white-space:nowrap;
}

.lm-top-titleCombined{
  font-family: Arial, sans-serif;
  font-weight:500;
  color:#2b2b2b;
  opacity:.9;
  white-space:nowrap;
}

.lm-top-link{
  margin-top:8px;
  font-family: Arial, sans-serif;
  line-height:22px;
  color:#6b6b6b;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;

  letter-spacing:-0.2px;
}

/* Bubble area */
.lm-bubbleWrap{
  flex:1 1 auto;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}

/* WhatsApp-ish bubble */
.lm-waBubble{
  width:940px;
  height:940px;
  display:flex;
  flex-direction:column;

  position:relative;
  border-radius:26px;
  background:#1f5b4a;
  box-shadow:0 2px 0 rgba(0,0,0,.10);
  overflow:hidden;
}

/* Media (collage) – 56% */
.lm-waMedia{
  background:#0b0b0b;
  flex:0 0 56%;
  height:56%;
  position:relative;
  overflow:hidden;
}

/* Collage base */
.lm-collage{
  width:100%;
  height:100%;
  display:grid;
  gap:4px;
  background:#0b0b0b;
}

.lm-cImg{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  background:#111;
}

/* ✅ Image orientation classes for smart layout */
.lm-cImg.portrait,
.lm-cImg.square{
  object-fit:cover;
}

.lm-cImg.landscape{
  object-fit:cover;
}

/* ✅ 1 image layout (single image - any orientation) */
.lm-collage--single{
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.lm-collage--single #c1{ 
  grid-column:1; 
  grid-row:1; 
}
.lm-collage--single #c2{ display:none; }
.lm-collage--single #c3{ display:none; }

/* ✅ Single portrait/square: centered with max-width */
.lm-collage--single #c1.portrait,
.lm-collage--single #c1.square{
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

/* ✅ Single landscape: full width */
.lm-collage--single #c1.landscape{
  width: 100%;
  object-fit: cover;
}

/* ✅ 2-up layout (for portrait/square images side-by-side OR duplication) */
.lm-collage--twoCols{
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 4px;
}
.lm-collage--twoCols #c1{ 
  grid-column:1; 
  grid-row:1; 
}
.lm-collage--twoCols #c2{ 
  grid-column:2; 
  grid-row:1; 
}
.lm-collage--twoCols #c3{ display:none; }

/* ✅ Portrait/square in 2-up: proper fitting */
.lm-collage--twoCols #c1.portrait,
.lm-collage--twoCols #c1.square,
.lm-collage--twoCols #c2.portrait,
.lm-collage--twoCols #c2.square{
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* ✅ 3 images layout (mixed orientations) */
.lm-collage--three{
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}
.lm-collage--three #c1{ 
  grid-column:1; 
  grid-row:1 / span 2; 
}
.lm-collage--three #c2{ 
  grid-column:2; 
  grid-row:1; 
}
.lm-collage--three #c3{ 
  grid-column:2; 
  grid-row:2; 
}

/* ✅ Smart layout for 3 images with portrait/square priority */
.lm-collage--three #c1.portrait,
.lm-collage--three #c1.square{
  object-fit: cover;
}

.lm-collage--three #c2.portrait,
.lm-collage--three #c2.square,
.lm-collage--three #c3.portrait,
.lm-collage--three #c3.square{
  object-fit: cover;
}

/* Body */
.lm-waBody{
  position:relative;
  flex:1 1 auto;
  min-height:0;
  padding:16px 18px 38px 18px;
  overflow:hidden;
}

.lm-waCaption{
  font-family: Arial, sans-serif;
  font-size:30px;
  line-height:40px;
  color:rgba(255,255,255,.94);

  margin:0;
  padding:0;

  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:7;
}

.lm-waMetaLines{
  margin-top:16px;
  display:flex;
  flex-direction:column;
  gap:14px;

  font-family: Arial, sans-serif;
  font-size:28px;
  line-height:34px;
  color:rgba(255,255,255,.92);
}

.lm-waLine{
  display:flex;
  align-items:center;
  gap:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.lm-metaIcon{
  width:26px;
  height:26px;
  object-fit:contain;
  display:inline-block;
  flex:0 0 auto;
}

/* Time + ticks */
.lm-waMsgMeta{
  position:absolute;
  right:14px;
  bottom:10px;
  display:flex;
  align-items:center;
  gap:8px;
  font-family: Arial, sans-serif;
  font-size:20px;
  color:rgba(255,255,255,.80);
}

.lm-waTicks{
  display:inline-block;
  width:18px;
  height:12px;
  flex:0 0 auto;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2718%27%20height%3D%2712%27%20viewBox%3D%270%200%2018%2012%27%3E%3Cpath%20d%3D%27M6.6%209.2L2.8%205.5c-.3-.3-.8-.3-1.1%200s-.3.8%200%201.1l4.4%204.3c.3.3.8.3%201.1%200L16.6%201.6c.3-.3.3-.8%200-1.1s-.8-.3-1.1%200L6.6%209.2z%27%20fill%3D%27%2334B7F1%27/%3E%3Cpath%20d%3D%27M10%209.2L6.2%205.5c-.3-.3-.8-.3-1.1%200s-.3.8%200%201.1l4.4%204.3c.3.3.8.3%201.1%200L18%202.6c.3-.3.3-.8%200-1.1s-.8-.3-1.1%200L10%209.2z%27%20fill%3D%27%2334B7F1%27/%3E%3C/svg%3E");
}

.lm-waTail{
  position:absolute;
  right:28px;
  bottom:-18px;
  width:0; height:0;
  border-left:18px solid transparent;
  border-right:18px solid transparent;
  border-top:22px solid #1f5b4a;
}

/* Footer */
.lm-footer{
  padding-top:18px;
  display:flex;
}
.lm-footerHelp{
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.lm-footerText{
  font-family: Arial, sans-serif;
  color:#6b6b6b;
}

/* Export-only spacing tweaks */
#lmExportStage .lm-exportHeader{
  padding-top: 6px !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}
#lmExportStage .lm-exportMeta{
  margin: 0 0 6px 0 !important;
  line-height: 1.15 !important;
}
#lmExportStage .lm-exportHeadline{
  margin: 0 !important;
  line-height: 1.2 !important;
}

#lmExportStage .lm-waBubble{
  margin-top: 8px !important;
}

#lmExportStage .lm-waBody{
  position: relative !important;
  margin: 0 !important;
}
#lmExportStage .lm-waCaption,
#lmExportStage .lm-waMetaLines{
  position: static !important;
  margin-top: 0 !important;
}

/* ✅ UPDATED: Preview UI (simplified for single preview display) */
.lm-previewCard{
  margin-top:16px;
  padding:14px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background:#fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.lm-previewTitle{
  font-weight:600;
  margin-bottom:10px;
  font-size: 15px;
  color: #111827;
  font-family: Arial, sans-serif;
}

#lmPreviewImg{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}

/* ================================
   ✅ FRONTEND GALLERY (Shortcode: [lm_cug_gallery])
   WITH ORIENTATION-AWARE LAYOUT
================================== */
.lm-cug-gallery{ margin-top: 18px; }

.lm-cug-gallery-grid{
  display:grid;
  gap:14px;
  grid-template-columns: 1fr;
}

/* ✅ Responsive grid with orientation support */
@media (min-width: 900px){
  .lm-cug-gallery-grid{
    grid-template-columns: repeat(var(--lm-cug-cols, 4), minmax(0, 1fr));
  }
}

/* ✅ Gallery card base */
.lm-cug-card{
  border-radius: 14px;
  overflow: hidden;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lm-cug-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* ✅ Portrait and square images span 1 column (2-up possible) */
.lm-cug-card.portrait,
.lm-cug-card.square{
  grid-column: span 1;
}

/* ✅ Landscape images span 1 column by default */
.lm-cug-card.landscape{
  grid-column: span 1;
}

/* ✅ Optional: Make landscape images span 2 columns on larger screens */
@media (min-width: 900px){
  .lm-cug-card.landscape{
    grid-column: span 2;
  }
}

.lm-cug-card__img{
  width:100%;
  height:auto;
  display:block;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.lm-cug-card:hover .lm-cug-card__img{
  opacity: 0.95;
}

/* ✅ Ensure portrait/square images maintain aspect ratio */
.lm-cug-card.portrait .lm-cug-card__img,
.lm-cug-card.square .lm-cug-card__img{
  aspect-ratio: auto;
  object-fit: cover;
}

/* ✅ Landscape images fill their container */
.lm-cug-card.landscape .lm-cug-card__img{
  aspect-ratio: auto;
  object-fit: cover;
}

.lm-cug-gallery-actions{
  display:flex;
  gap:12px;
  align-items:center;
  margin-top: 14px;
}

.lm-cug-loadmore{
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.15);
  background:#111827;
  color:#fff;
  cursor:pointer;
  font-family: Arial, sans-serif;
  font-weight: 600;
  transition: background 0.2s ease;
}

.lm-cug-loadmore:hover:not([disabled]){
  background:#1f2937;
}

.lm-cug-loadmore[disabled]{ 
  opacity:.5; 
  cursor:not-allowed; 
}

.lm-cug-gallery-status{
  font-size:14px;
  color:#4b5563;
  font-family: Arial, sans-serif;
}

/* Zoom modal */
.lm-cug-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}
.lm-cug-modal.is-open{ display:block; }

.lm-cug-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(4px);
}

.lm-cug-modal__content{
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  margin: 4vh auto;
  display:flex;
  align-items:center;
  justify-content:center;
}

.lm-cug-modal__img{
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
  display:block;
  cursor: zoom-out;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

.lm-cug-modal__close{
  position:absolute;
  top: -10px;
  right: -10px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background:#111827;
  color:#fff;
  font-size: 26px;
  line-height: 42px;
  cursor:pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  transition: background 0.2s ease;
}

.lm-cug-modal__close:hover{
  background:#1f2937;
}

/* ✅ RESPONSIVE: Mobile adjustments for orientation-aware layout */
@media (max-width: 899px){
  /* On mobile, all images stack in single column */
  .lm-cug-card.portrait,
  .lm-cug-card.square,
  .lm-cug-card.landscape{
    grid-column: span 1;
  }
}

/* ✅ ADMIN PREVIEW: Ensure orientation classes work in admin generator */
#lmAdminCanvas .lm-collage--single #c1.portrait,
#lmAdminCanvas .lm-collage--single #c1.square{
  object-fit: contain;
  max-width: 100%;
}

#lmAdminCanvas .lm-collage--single #c1.landscape{
  object-fit: cover;
  width: 100%;
}

#lmAdminCanvas .lm-collage--twoCols #c1.portrait,
#lmAdminCanvas .lm-collage--twoCols #c1.square,
#lmAdminCanvas .lm-collage--twoCols #c2.portrait,
#lmAdminCanvas .lm-collage--twoCols #c2.square{
  object-fit: cover;
}

/* ✅ MOBILE RESPONSIVE: Form adjustments */
@media (max-width: 640px){
  .lm-wrapper{
    padding: 0 12px;
  }
  
  .lm-form-card{
    padding: 14px;
  }
  
  .lm-btn-primary{
    padding: 12px 16px;
    font-size: 14px;
    min-width: 180px;
  }
  
  .lm-form-card button{
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .lm-previewCard{
    padding: 12px;
  }
  
  .lm-actions{
    justify-content: stretch;
  }
  
  .lm-btn-primary{
    width: 100%;
  }
}

/* ✅ Tablet responsive */
@media (min-width: 641px) and (max-width: 899px){
  .lm-btn-primary{
    min-width: 220px;
  }
}
/* ✅ Gallery pin badge */
.lm-cug-card.pinned{
  position: relative;
}

.lm-cug-pin-badge{
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(254, 243, 199, 0.95);
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  backdrop-filter: blur(4px);
  z-index: 10;
  pointer-events: none;
}

.lm-cug-card.pinned:hover .lm-cug-pin-badge{
  background: rgba(254, 243, 199, 1);
}

/* ========================================
   💎 ADDON SECTION STYLES (ENHANCED)
   ======================================== */

.lm-addons-wrapper {
  margin: 24px 0 !important;
  padding: 24px !important;
  background: #f9fafb !important;
  border-radius: 16px !important;
  border: 1px solid #e5e7eb !important;
}

.lm-addons-title {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  margin: 0 0 16px 0 !important;
  text-align: center !important;
}

/* Addon Grid */
.lm-addons-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
}

/* Addon Card - Unselected State */
.lm-addon-card {
  background: #ffffff !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 16px !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  position: relative !important;
}

.lm-addon-card:hover {
  border-color: #d1d5db !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Addon Card - Selected State (CRITICAL) */
.lm-addon-card.lm-addon-selected {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;
}

/* Addon Header */
.lm-addon-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 8px !important;
}

/* Checkbox Label */
.lm-addon-checkbox-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  font-weight: 500 !important;
  color: #1f2937 !important;
  margin: 0 !important;
}

/* Custom Checkbox */
.lm-addon-checkbox {
  width: 20px !important;
  height: 20px !important;
  cursor: pointer !important;
  accent-color: #3b82f6 !important;
  margin: 0 !important;
}

/* Addon Name */
.lm-addon-name {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
}

/* Duration Badge - Unselected */
.lm-addon-duration {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 10px !important;
  background: #fef2f2 !important;
  color: #dc2626 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
}

/* Duration Badge - Selected */
.lm-addon-selected .lm-addon-duration {
  background: #dbeafe !important;
  color: #1e40af !important;
}

/* Addon Description */
.lm-addon-description {
  font-size: 13px !important;
  color: #6b7280 !important;
  margin: 8px 0 !important;
  line-height: 1.5 !important;
}

/* Addon Footer */
.lm-addon-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid #e5e7eb !important;
}

.lm-addon-selected .lm-addon-footer {
  border-top-color: #bfdbfe !important;
}

/* Addon Price - Unselected */
.lm-addon-price {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #059669 !important;
}

/* Addon Price - Selected */
.lm-addon-selected .lm-addon-price {
  color: #1e40af !important;
}

/* Quantity Controls - Hidden by default */
.lm-addon-quantity {
  display: none !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Quantity Controls - Visible when selected */
.lm-addon-selected .lm-addon-quantity {
  display: flex !important;
}

/* Quantity Buttons */
.lm-qty-btn {
  width: 32px !important;
  height: 32px !important;
  border: none !important;
  border-radius: 8px !important;
  background: #1f2937 !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
  padding: 0 !important;
}

.lm-qty-btn:hover {
  background: #111827 !important;
  transform: scale(1.05) !important;
}

.lm-qty-btn:active {
  transform: scale(0.95) !important;
}

/* Quantity Input */
.lm-qty-input {
  width: 50px !important;
  height: 32px !important;
  text-align: center !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  background: #ffffff !important;
  padding: 0 !important;
}

.lm-addon-selected .lm-qty-input {
  border-color: #3b82f6 !important;
  background: #ffffff !important;
}

/* Summary Section */
.lm-addons-summary {
  display: none !important;
  background: #f9fafb !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  margin-top: 16px !important;
}

.lm-addons-summary[style*="display: block"],
.lm-addons-summary[style*="display:block"] {
  display: block !important;
}

.lm-summary-content {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.lm-summary-label {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #4b5563 !important;
}

.lm-summary-amount {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #059669 !important;
}

/* ========================================
   📱 RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .lm-addons-grid {
    grid-template-columns: 1fr !important;
  }

  .lm-addon-card {
    padding: 14px !important;
  }

  .lm-addon-name {
    font-size: 14px !important;
  }

  .lm-addon-price {
    font-size: 18px !important;
  }

  .lm-summary-amount {
    font-size: 20px !important;
  }
}

@media (max-width: 480px) {
  .lm-addons-title {
    font-size: 16px !important;
  }

  .lm-addon-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .lm-addon-duration {
    align-self: flex-start !important;
  }

  .lm-addon-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .lm-addon-quantity {
    align-self: flex-end !important;
  }
}