.fritzbox_call_popup {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9000;
  width: min(420px, calc(100vw - 28px));
  max-height: min(78vh, 620px);
  overflow: auto;
  border: 1px solid #406aa5;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(20, 32, 48, 0.22);
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
}

.fritzbox_call_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #2f6fb6;
  color: #ffffff;
}

.fritzbox_call_title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.fritzbox_call_close {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  line-height: 20px;
}

.fritzbox_call_number_line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 12px 6px 12px;
}

.fritzbox_call_label {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

.fritzbox_call_meta {
  padding: 0 12px 10px 12px;
  color: #475569;
  font-size: 12px;
}

.fritzbox_call_match {
  margin: 8px 12px;
  padding: 10px;
  border: 1px solid #d7dee8;
  border-radius: 6px;
  background: #f8fafc;
}

.fritzbox_call_match_name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.fritzbox_call_match_subline {
  margin-top: 4px;
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.fritzbox_call_match_actions,
.fritzbox_call_footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.fritzbox_call_footer {
  padding: 0 12px 12px 12px;
}

.fritzbox_call_action_primary,
.fritzbox_call_action_secondary {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  line-height: 16px;
  text-decoration: none;
}

.fritzbox_call_action_primary {
  border: 1px solid #245fa8;
  background: #2f6fb6;
  color: #ffffff;
}

.fritzbox_call_action_secondary {
  display: inline-flex;
  align-items: center;
  border: 1px solid #9eb4d1;
  background: #ffffff;
  color: #1f4f91;
}

.fritzbox_call_no_match {
  margin: 10px 12px 12px 12px;
  padding: 10px;
  border: 1px solid #d7dee8;
  border-radius: 6px;
  color: #475569;
  background: #f8fafc;
  font-size: 13px;
}

@media (max-width: 560px) {
  .fritzbox_call_popup {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }
}
