#order-calculator {
  padding: 7px 12px;
  background: #f5dfa5;
  border-color: #f5dfa5;
  color: #142c48;
  font-weight: 700;
}

.header-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.calculator-dialog {
  width: min(1160px, calc(100vw - 24px));
  height: min(920px, calc(100dvh - 24px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid #d9e0e8;
  border-radius: 17px;
  overflow: hidden;
  background: #fff;
}

.calculator-dialog[open] {
  display: flex;
  flex-direction: column;
}

.calculator-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  color: #fff;
  background: #142c48;
}

.calculator-topbar h2 {
  margin: 0;
  font-size: 18px;
}

#close-calculator { flex: none; }

#calculator-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}

@media (max-width: 600px) {
  #order-calculator { padding: 6px 9px; }
  .calculator-dialog {
    width: calc(100vw - 12px);
    height: calc(100dvh - 12px);
    border-radius: 10px;
  }
  .calculator-topbar { padding: 6px 10px; }
  .calculator-topbar h2 { font-size: 16px; }
}
