
.spec-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050;
  overflow: hidden;
  animation: spec-modal-fadeIn 0.3s ease forwards;
}

.spec-modal-window {
  background: #fff;
  border-radius: 12px;
  max-height: 90vh;
  max-width: 480px;
  width: 90%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  animation: spec-modal-slideFadeIn 0.3s forwards;
  overflow: hidden;
}

.spec-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spec-modal-header h2 {
  margin: 0;
  font-weight: 700;
  font-size: 1.25rem;
}

.spec-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.spec-modal-content {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

.spec-modal-quantity-input {
  display: flex;
  align-items: center;
  max-width: 180px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.spec-modal-qty-btn {
  background-color: #e2e8f0;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
  user-select: none;
}

.spec-modal-qty-btn:hover {
  background-color: #cbd5e1;
}

#spec-modal-qty {
  width: 64px;
  height: 36px;
  text-align: center;
  font-size: 1rem;
  border: 1px solid #ccc;
  margin: 0 8px;
  border-radius: 6px;
}

#spec-modal-variants-container {
  margin-bottom: 18px;
}

/* Variant option styles */
.spec-modal-variant-group {
  margin-bottom: 12px;
}

.spec-modal-variant-label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.spec-modal-variant-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.spec-modal-variant-option {
  border: 1px solid #b0bec5;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.875rem;
  background-color: #f8fafc;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.spec-modal-variant-option.selected,
.spec-modal-variant-option:hover {
  border-color: #3b82f6;
  background-color: #dbeafe;
}

.spec-modal-variant-option input[type="radio"] {
  display: none;
}

.spec-modal-btn {
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  }

  .spec-modal-btn-main {
  background-color: #3b82f6;
  color: white;
  }

  .spec-modal-btn-main:hover {
  background-color: #2563eb;
  }

@media (max-width: 767.98px) {
  .spec-modal-overlay {
    align-items: flex-end;
    padding: 8px;
  }
  .spec-modal-window {
    width: 100%;
    max-width: unset;
    border-radius: 16px 16px 0 0;
    max-height: 70vh;
    transform: translateY(100%);
    animation: spec-modal-slideUpIn 0.3s forwards;
  }
}

@keyframes spec-modal-fadeIn {
  to {opacity: 1;}
}
@keyframes spec-modal-slideFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spec-modal-slideUpIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#spec-modal-discount-price-info {
  border-top: 1px solid #e0e0e0;
  padding-top: 12px;
  font-size: 1rem;
  color: #333;
}

.spec-modal-price-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.spec-modal-unit-price-value {
  color: #e74c3c;
  font-weight: 700;
}

.spec-modal-discount-percent-value {
  background-color: #e67e22;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.spec-modal-total-price-row {
  margin-top: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #222;
  border-top: 1px solid #e0e0e0;
  padding-top: 8px;
}

.spec-modal-total-discount-row {
  margin-top: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #e74c3c;
  border-top: 0px solid #e0e0e0;
  padding-top: 8px;
}

@media (max-width: 767.98px) {
  #spec-modal-discount-price-info {
    font-size: 0.95rem;
  }
  .spec-modal-price-info-row {
    margin-bottom: 4px;
  }
}

@media (max-width: 479.98px) {
  #spec-modal-discount-price-info {
    font-size: 0.9rem;
  }
  .spec-modal-price-info-row {
    align-items: flex-start;
    gap: 2px;
  }
  .spec-modal-price-info-row > div:last-child {
    align-self: flex-end;
  }
  .spec-modal-total-price-row {
    font-size: 1rem;
  }
}

#spec-modal-discount-price-info{
  display: none;
}

#spec-modal-discount-amount{
  padding-right: 5px;
  color: #e74c3c
}