.ltc-wrap {
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  max-width: 1100px;
}

.ltc-header h3 {
  margin: 0 0 8px 0;
}

.ltc-note {
  margin: 0 0 12px 0;
  font-size: 14px;
  opacity: .85;
}

.ltc-toolbar {
  display: flex;
  gap: 10px;
  margin: 12px 0 16px;
}

.ltc-btn {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, .18);
  background: #f7f7f7;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.ltc-btn:hover {
  background: #efefef;
}

.ltc-btn-primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.ltc-btn-primary:hover {
  background: #000;
}

.ltc-btn-success {
  background: #98d655 !important;
  color: #000 !important;
  border: 1px solid #000 !important;
  font-weight: 700 !important;
  padding: 10px 30px !important;
}

.ltc-btn-success:hover {
  background: #8bc34a !important;
}


.ltc-btn-ghost {
  background: transparent;
}

.ltc-card {
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 14px;
  padding: 14px;
  margin: 0 0 14px 0;
}

.ltc-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.ltc-card-title {
  font-weight: 700;
  font-size: 16px;
}

.ltc-grid {
  display: grid;
  gap: 12px;
  margin: 10px 0;
}

.ltc-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ltc-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 920px) {

  .ltc-grid-2,
  .ltc-grid-3 {
    grid-template-columns: 1fr;
  }
}

.ltc-field label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}

.ltc-field input[type="text"],
.ltc-field input[type="number"],
.ltc-field select,
.ltc-field textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 14px;
  background: #fff;
}

.ltc-field textarea {
  resize: vertical;
}

.ltc-help {
  font-size: 12px;
  opacity: .8;
  margin-top: 6px;
  line-height: 1.35;
}

.ltc-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 0, 0, .18);
}

.ltc-subsection {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 12px;
  background: #fafafa;
}

.ltc-check label {
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ltc-divider {
  margin: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, .12);
}

.ltc-result {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #f6f6f6;
  border: 1px solid rgba(0, 0, 0, .10);
}

.ltc-result-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
}

.ltc-result-value {
  white-space: nowrap;
}

.ltc-result-breakdown {
  margin-top: 8px;
  font-size: 13px;
  opacity: .9;
}

.ltc-result-breakdown ul {
  margin: 0;
  padding-left: 18px;
}

.ltc-result-total {
  background: #111;
  color: #fff;
  border-color: #111;
}

.ltc-summary {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, .12);
}

.ltc-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 920px) {
  .ltc-summary-grid {
    grid-template-columns: 1fr;
  }
}

.ltc-sum-card {
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.ltc-sum-title {
  font-size: 13px;
  opacity: .8;
  margin-bottom: 6px;
}

.ltc-sum-value {
  font-size: 18px;
  font-weight: 800;
}

.ltc-hide {
  display: none !important;
}

.ltc-error {
  margin-top: 8px;
  color: #d32f2f;
  background: #ffebee;
  border: 1px solid #ffcdd2;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* Disclaimer Box */
.ltc-disclaimer-box {
  background: #fffbea;
  border: 1px solid #f6e05e;
  color: #975a16;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.ltc-disclaimer-box strong {
  color: #b7791f;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}




/* Modal and Locked State */
.ltc-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 100000 !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(4px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ltc-modal {
  background: #fff !important;
  padding: 40px !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4) !important;
  max-width: 1000px !important;
  /* Még szélesebb */
  width: 90% !important;
  max-height: 85vh !important;
  display: flex !important;
  flex-direction: column !important;
  text-align: center !important;
  align-items: center !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  position: relative !important;
}

.ltc-modal h3 {
  margin-top: 0 !important;
  color: #000 !important;
  font-size: 24px !important;
  border-bottom: 2px solid #eee !important;
  padding-bottom: 15px !important;
  margin-bottom: 20px !important;
  flex-shrink: 0 !important;
}

.ltc-help-content {
  color: #222 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin-bottom: 24px !important;
  white-space: pre-wrap !important;
  overflow-y: auto !important;
  flex: 1 !important;
  padding-right: 15px !important;
  /* Hely a görgetősávnak */
  overflow-x: hidden !important;
}

/* Scrollbar styling for better visibility */
.ltc-help-content::-webkit-scrollbar {
  width: 8px;
}

.ltc-help-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.ltc-help-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.ltc-help-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}


.ltc-modal .ltc-btn {
  flex-shrink: 0 !important;
  align-self: center !important;
}

/* Help Icons */
.ltc-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #eee;
  color: #666;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 4px;
  vertical-align: middle;
  transition: all 0.2s;
  border: 1px solid #ddd;
}

.ltc-help-icon:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Ownership Input Styles */
input[data-ltc-ownership] {
  font-family: inherit;
  font-weight: 600;
  color: #111;
}

/* Disable discount fields when locked */
.ltc-field.ltc-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Tooltip Styles */
.ltc-tooltip {
  position: absolute;
  z-index: 100001;
  background: #333;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 300px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  display: none;
  opacity: 0;
  transition: opacity 0.2s;
}

[data-ltc-help] {
  cursor: help;
  text-decoration: underline dotted #ccc;
}

@media (max-width: 600px) {
  .ltc-modal {
    padding: 20px !important;
    width: 95% !important;
  }

  .ltc-modal h3 {
    font-size: 18px !important;
  }
}




/* Startup warning bar (no modal) */
.ltc-startbar {
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  margin-bottom: 14px;
}

.ltc-startbar-inner {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 920px) {
  .ltc-startbar-inner {
    flex-direction: column;
    align-items: stretch;
  }
}

.ltc-startbar-text {
  font-size: 15px;
  line-height: 1.5;
}