.hc-customer-attrition-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: block;
  width: 100vw;
  max-width: 100vw;
  min-width: 0 !important;
  overflow: hidden;
  background: var(--bg-base, #f4f7f6);
  color: var(--text-1, #163d28);
}

.hc-customer-attrition-overlay .hc-customer-attrition-shell,
.hc-customer-attrition-overlay .hc-customer-attrition-status {
  background: var(--bg-base, #f4f7f6);
  color: var(--text-1, #163d28);
}

.hc-customer-attrition-overlay .hc-customer-attrition-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg-surface, #fff);
}

.hc-customer-attrition-overlay .hc-site-embed-close {
  border-color: var(--border, rgba(13, 40, 24, .18));
  background: var(--bg-surface, rgba(255, 255, 255, .94));
  color: var(--text-2, #0d2818);
}

.hc-customer-attrition-shell {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  grid-template-rows: 44px minmax(0, 1fr);
}

.hc-customer-attrition-toolbar {
  z-index: 97;
  grid-row: 1;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px 0 16px;
  border-bottom: 1px solid var(--border, rgba(13, 40, 24, .14));
  background: var(--bg-surface, #fff);
  color: var(--text-2, #52645a);
  font: 800 11px/1.2 system-ui, sans-serif;
  letter-spacing: .04em;
}

.hc-customer-attrition-toolbar > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-customer-attrition-toolbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.hc-customer-attrition-refresh {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border, rgba(13, 40, 24, .18));
  border-radius: 999px;
  background: var(--bg-surface, #fff);
  color: var(--text-2, #0d2818);
  font: 800 11px/1 system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.hc-customer-attrition-refresh:hover,
.hc-customer-attrition-refresh:focus-visible {
  border-color: var(--accent, #164d2c);
  color: var(--accent, #164d2c);
  outline: none;
}

.hc-customer-attrition-toolbar .hc-site-embed-close {
  position: static;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.hc-customer-attrition-shell .hc-customer-attrition-frame,
.hc-customer-attrition-shell .hc-customer-attrition-status {
  grid-row: 2;
  grid-column: 1;
  min-height: 0;
}

.hc-customer-attrition-shell .hc-customer-attrition-status {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.hc-customer-attrition-overlay .hc-customer-attrition-status span:not(.hc-site-embed-spinner) {
  max-width: 100%;
  color: var(--text-2, #617067);
  white-space: normal;
  overflow-wrap: anywhere;
}

.hc-customer-attrition-overlay .hc-customer-attrition-status strong {
  max-width: 100%;
  color: var(--text-2, #163d28);
  white-space: normal;
  overflow-wrap: anywhere;
}

.hc-customer-attrition-overlay .hc-customer-attrition-status.is-error button {
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent, #164d2c);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.hc-customer-attrition-overlay .hc-customer-attrition-status .hc-site-embed-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border-md, #cbd8d0);
  border-top-color: var(--accent, #1c6538);
  border-radius: 50%;
  animation: hc-deser-spin .8s linear infinite;
}

@keyframes hc-deser-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .hc-customer-attrition-shell {
    grid-template-rows: 52px minmax(0, 1fr);
  }

  .hc-customer-attrition-toolbar {
    gap: 8px;
    padding: 0 8px 0 12px;
    font-size: 10px;
    letter-spacing: .02em;
    overflow: hidden;
  }

  .hc-customer-attrition-toolbar > span {
    font-size: 0;
  }

  .hc-customer-attrition-toolbar > span::after {
    content: "Huella · Deserción";
    font-size: 10px;
  }

  .hc-customer-attrition-toolbar-actions {
    gap: 6px;
  }

  .hc-customer-attrition-refresh {
    min-height: 32px;
    padding: 0 9px;
    font-size: 0;
  }

  .hc-customer-attrition-refresh::after {
    content: "Actualizar";
    font-size: 10px;
  }

  .hc-customer-attrition-toolbar .hc-site-embed-close {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .hc-customer-attrition-overlay .hc-customer-attrition-status {
    gap: 10px;
    padding: 18px;
  }
}
