.savi-contact-widget {
  box-sizing: border-box;
  font-family: inherit;
}

.savi-contact-widget p,
.savi-contact-widget h2,
.savi-contact-widget h3,
.savi-contact-widget span:not(.elementor-screen-only),
.savi-contact-widget a:not(.elementor-social-icon) {
  color: #1f2937;
}

.savi-contact-widget {
  width: 100%;
  background: #ededed;
  border-radius: 20px;
  padding: 40px;
  overflow: hidden;
  position: relative;
}
.savi-icon-text {
  font-size: 18px;
  line-height: 1;
  margin-right: 4px;
}

.savi-contact-widget .savi-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.savi-kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #64748b;
}

.savi-header h2 {
  margin: 8px 0;
  font-size: 28px;
  color: #0f172a;
}

.savi-header p {
  color: #475569;
  margin-bottom: 20px;
}

.savi-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.savi-left {
  flex: 0 0 360px;
  max-width: 360px;
}

.savi-right {
  flex: 1 1 auto;
  min-width: 0;
}

.savi-dept-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.savi-dept-btn {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 15px;
  cursor: pointer;
}

.savi-dept-btn:hover {
  border-color: #94a3b8;
  color: #fff;
  -webkit-text-fill-color: #fff;
}


.savi-dept-btn.is-active {
  border-color: #e63323;
  box-shadow: 0 0 0 2px rgba(230, 51, 35, 0.12);
}

.savi-card {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding: 32px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  align-items: center;
}

.savi-photo {
  width: 160px;
  height: 160px;
  border-radius: 20px;
  object-fit: cover;
  background: #e5e7eb;
  flex-shrink: 0;
}

.savi-info {
  width: 100%;
}

.savi-info h3 {
  margin: 0;
  font-size: 22px;
}

.savi-info span {
  display: block;
  color: #475569;
  margin-bottom: 8px;
  font-weight: 600;
}

.savi-desc {
  margin: 12px 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}

.savi-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 15px;
  flex-wrap: wrap;
}

.savi-icon {
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.savi-contact-widget .savi-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: #1f2937;
}

.savi-row a.show-link {
  color: #e63323;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.savi-row a.show-link:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .savi-left {
    flex: 0 0 320px;
    max-width: 320px;
  }
}

@media (max-width: 900px) {
  .savi-layout {
    flex-direction: column;
    gap: 4px;
  }

  .savi-left,
  .savi-right {
    width: 100%;
    max-width: 100%;
  }

  .savi-dept-list {
    margin-top: 0;
    gap: 8px;
    margin-bottom: 4px;
  }

  .savi-card {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 4px;
  }

  .savi-photo {
    width: 100%;
    height: auto;
    max-height: 240px;
  }
}

@media (max-width: 600px) {
  .savi-contact-widget {
    padding: 16px;
  }

  .savi-dept-list {
    gap: 6px;
  }

  .savi-card {
    padding: 20px;
    width: 100%;
    margin-top: 10px;
  }

  .savi-row span,
  .savi-row a {
    word-break: normal;
    overflow-wrap: break-word;
  }

  .savi-row {
    flex-wrap: wrap;
    align-items: center;
  }

  .savi-row span[id^="mail-hidden-"],
  .savi-row span[id^="phone-hidden-"],
  .savi-row span[id^="main-mail-hidden-"] {
    flex: 1 1 auto;
    min-width: 0;
  }

  .savi-row a[href^="mailto:"],
  .savi-row a[href^="tel:"] {
    flex: 1 1 auto;
    min-width: 0;
  }

  .savi-row a.show-link {
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .savi-contact-widget {
    padding-left: 12px;
    padding-right: 12px;
  }

  .savi-card {
    width: calc(100% + 16px);
    margin-left: -8px;
    margin-right: -8px;
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .savi-card {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .savi-contact-widget {
    overflow: visible;
  }
}
