/* Info Card (used for Address, Contact, etc.) */
.info-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #eef3f7;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
  gap: 12px;
  display: flex;
  flex-direction: column;
}

/* Top-level container for show pages when no surrounding box is desired */
.info-panel {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 20px;
}

.info-card--compact {
  padding: 12px;
}

.info-card__title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.info-card__body {
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
}

/* Field row: label above the value */
.field-row {
  margin-bottom: 30px;
}

.field-label {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 8px;
  display: block;
}

.field-value {
  color: #0f172a;
  font-size: 15px;
}

/* Contact box inner layout */
.contact-item {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-right: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: #1f2937;
  line-height: 1;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Address lines within compact info-cards should be regular weight */
.address-line {
  color: #0f172a;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.info-card .contact-name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #0b1220;
  margin-bottom: 0;
}

.contact-title {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #64748b;
  margin-top: 4px;
}

.contact-meta {
  color: #475569;
  font-size: 14px;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

/* Email + Copy stay on one line, button snug against the address */
.copyable-email {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.copyable-email>a {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 2px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.copy-button:hover,
.copy-button:focus {
  background: #eef2ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  outline: none;
}

.copy-button.is-copied,
.copy-button.is-copied:hover,
.copy-button.is-copied:focus {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.copy-button-icon {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 auto;
}

.copy-button-icon--success {
  display: none;
}

.copy-button.is-copied .copy-button-icon--default {
  display: none;
}

.copy-button.is-copied .copy-button-icon--success {
  display: block;
}

/* Stack labels so Copy/Copied swap without changing button width */
.copy-button-label {
  display: inline-grid;
  justify-items: center;
  white-space: nowrap;
}

.copy-button-label--default,
.copy-button-label--copied {
  grid-area: 1 / 1;
}

.copy-button-label--copied {
  visibility: hidden;
}

.copy-button.is-copied .copy-button-label--default {
  visibility: hidden;
}

.copy-button.is-copied .copy-button-label--copied {
  visibility: visible;
}

/* Email/phone links inside contact cards: use brand blue, no underline until hover */
.info-card .contact-meta a,
.info-card .contact-item a {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
}

.info-card .contact-meta a:hover,
.info-card .contact-item a:hover,
.info-card .contact-meta a:focus,
.info-card .contact-item a:focus {
  color: #217dbb;
  text-decoration: underline;
}

/* Links within the unboxed info panel (top of show pages) */
.info-panel .field-value a,
.info-panel .contact-item a,
.info-panel .field-value a:visited {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
}

.info-panel .field-value a:hover,
.info-panel .contact-item a:hover,
.info-panel .field-value a:focus,
.info-panel .contact-item a:focus {
  color: #217dbb;
  text-decoration: underline;
}