.pricing-calculator-widget {
  background: #ffffff;
  border-radius: 16px;
  box-sizing: border-box;

  border: 1px solid #24242473;
}

.pricing-calculator-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.top-section {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;

  padding: 30px 36px;
  border-bottom: 1px solid #24242473;
}

.bottom-section {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;

  padding: 0 32px 30px 32px;
}

.vram-utilization-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* VRAM Utilization Section */
.vram-utilization-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vram-utilization-label {
  color: #000000a6;

  font-family: "DM Mono";
  font-size: 16px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 4.8px;
  text-transform: uppercase;
}

.utilization-input-container {
  position: relative;
  width: fit-content;
}

.utilization-input {
  color: #242424;
  font-family: Manrope;
  font-size: 16px;
  font-weight: 500;
  line-height: 145%;
  letter-spacing: 0.16px;

  width: 200px;
  height: 48px;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 0 50px 0 20px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.utilization-input:focus {
  border-color: #3b82f6;
  background: #ffffff;
}

.utilization-percent {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 600;
  color: #6b7280;
}

.cost-display {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
}

.cost-divider {
  width: 1px;
  height: 32px;
  background: #24242433;
}

.hourly-cost .cost-value {
  color: #242424;
  font-family: Satoshi;
  font-size: 24px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: -0.48px;
}

.monthly-cost .cost-value {
  color: #ff8b53;
  font-family: Satoshi;
  font-size: 24px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: -0.48px;
}

.detailed-calculations {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.show-details-btn-container {
  display: flex;
  justify-content: flex-end;
}

.show-details-btn {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  transition: color 0.2s ease;
  outline: none !important;
}

.show-details-btn:hover {
  color: #374151;
}

.chevron {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.show-details-btn.expanded .chevron {
  transform: rotate(180deg);
}

.calculations-details {
  margin-top: 16px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
  display: none;
}

.calculations-details.show {
  display: block;
}

.calculation-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.calculation-row:last-child {
  margin-bottom: 0;
}

.calc-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.calc-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
  text-align: right;
  flex-shrink: 0;
}

.total-row {
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
  margin-top: 12px;
}

.total-row .calc-label,
.total-row .calc-value {
  font-weight: 700;
  color: #1f2937;
}

/* GPU Configuration Section */
.gpu-configuration-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gpu-rows-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gpu-row {
  display: grid;
  grid-template-columns: 40px 1fr 120px 80px 120px;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #f3f4f6;
}

.gpu-row:last-child {
  border-bottom: none;
}

.row-number {
  display: flex;
  justify-content: center;
  align-items: center;
}

.number-badge {
  width: 32px;
  height: 32px;
  background: #3b82f6;
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.gpu-type-select,
.vram-input,
.qty-input {
  width: 100%;
  height: 48px;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 16px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.gpu-type-select:focus,
.vram-input:focus,
.qty-input:focus {
  border-color: #3b82f6;
  background: #ffffff;
}

.vram-input[readonly] {
  color: #9ca3af;
  cursor: not-allowed;
}

.remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.remove-btn:hover {
  color: #dc2626;
}

.remove-icon {
  font-size: 18px;
  font-weight: 700;
}

/* Add GPU Section */
.add-gpu-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 84px;

  border: 2px dashed #f59e0b;
  border-radius: 16px;

  background: linear-gradient(
      0deg,
      rgba(255, 139, 83, 0.1) 0%,
      rgba(255, 139, 83, 0.1) 100%
    ),
    #fff;
}

.add-gpu-btn {
  color: #ff8b53;
  font-family: Satoshi;
  font-size: 20px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: -0.4px;

  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  transition: color 0.2s ease;
}

.add-gpu-btn:hover {
  color: #d97706;
}

.plus-icon {
  font-size: 20px;
  font-weight: 700;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .pricing-calculator-widget {
    padding: 24px 16px;
    margin: 16px;
    border-radius: 16px;
  }

  .pricing-calculator-container {
    gap: 24px;
  }

  .utilization-input {
    width: 100%;
    max-width: 200px;
  }

  .cost-display {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hourly-cost .cost-value,
  .monthly-cost .cost-value {
    font-size: 28px;
  }

  .gpu-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0;
  }

  .row-number {
    justify-content: flex-start;
    margin-bottom: 8px;
  }

  .gpu-type-section,
  .vram-section,
  .qty-section,
  .remove-section {
    width: 100%;
  }

  .calculation-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .calc-value {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .pricing-calculator-widget {
    padding: 16px 12px;
    margin: 8px;
  }

  .hourly-cost .cost-value,
  .monthly-cost .cost-value {
    font-size: 24px;
  }

  .utilization-input {
    font-size: 20px;
    height: 52px;
  }

  .utilization-percent {
    font-size: 20px;
  }

  .add-gpu-section {
    padding: 16px;
  }
}

/* Animation for adding/removing rows */
.gpu-row {
  animation: slideIn 0.3s ease;
}

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

.gpu-row.removing {
  animation: slideOut 0.3s ease forwards;
}

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