﻿.configurator-section {
  margin: 0 0 0 1rem;
  background-color: #ffffff;
  border-radius: 32px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid black;
}

.calculator-grid {
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.function-group {
  background: #f8fafd;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
}

.group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.group-name {
  font-weight: 700;
  font-size: 1rem;
  color: #0f3b4f;
}

.functions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.function-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  border: 1px solid #e2edf2;
  transition: all 0.2s;
}

.function-info {
  flex: 1;
}

.function-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e2f3e;
  margin-bottom: 2px;
}

.function-desc {
  font-size: 0.7rem;
  color: #6f8eae;
}

.function-prices {
  text-align: right;
  margin-right: 1rem;
}

.integration-price {
  font-size: 0.7rem;
  color: #6b7280;
}

.monthly-price {
  font-weight: 700;
  color: #1e5f7a;
  font-size: 0.85rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.2s;
  border-radius: 34px;
}

  .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
  }

input:checked + .slider {
  background-color: #1e6f5c;
}

  input:checked + .slider:before {
    transform: translateX(20px);
  }

.total-panel {
  background: #fefefe;
  border-radius: 12px;
  border: 1px solid #e2edf2;
  padding: 1rem;
  height: fit-content;
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #ecf3f8;
}

  .total-row.total {
    border-top: 2px solid #cbdde9;
    border-bottom: none;
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 800;
    font-size: 1rem;
  }

    .total-row.total .total-value {
      font-size: 1.2rem;
      color: #1b7e68;
    }

.total-value {
  font-weight: 700;
  color: #1e4663;
}

.package-badge {
  background: #eef6f3;
  border-radius: 10px;
  padding: 10px;
  margin: 12px 0;
  font-size: 0.75rem;
}

.note {
  font-size: 1rem;
  color: #4b4b4b;
  margin-top: 12px;
  text-align: center;
}

@media (max-width: 768px) {
  .configurator-section {
    margin: 0;
    padding: 1rem;
    border-radius: 14px;
  }

  .configurator-title {
    margin: 1rem 0 1rem 0;
  }

  .calculator-grid {
    gap: 0;
    flex-wrap: wrap;
    padding: 0;
    margin-top: 0.5rem;
  }

  .total-panel {
    width: 100%;
  }

  .modal-dialog {
    margin: 0.5rem auto;
  }

  .note {
    font-size: 0.8rem;
  }
}
