#id-callus {
  display: inline-block;
}

.epd-callus-zone {
  display: inline-block;
}

.epd-callus-open {
  cursor: pointer;
}

.epd-callus-trigger,
.epd-callus-trigger--hook {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.epd-callus-trigger img,
.epd-callus-trigger--hook img {
  display: block;
  width: 100%;
  height: auto;
}

/* Modal: capa propia, aislada del tema Bootstrap */
.epd-callus-modal {
  position: fixed;
  inset: 0;
  z-index: 100000050;
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

.epd-callus-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  isolation: isolate;
}

.epd-callus-modal .epd-callus-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: rgba(0, 0, 0, 0.72);
  pointer-events: auto;
}

.epd-callus-modal .epd-callus-modal__dialog {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  z-index: 1;
  flex: 0 1 auto;
  width: calc(100% - 32px);
  max-width: 420px;
  max-height: calc(100vh - 32px);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  pointer-events: auto;
}

.epd-callus-modal .epd-callus-modal__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.epd-callus-modal .epd-callus-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #ececec;
}

.epd-callus-modal .epd-callus-modal__title {
  margin: 0;
  flex: 1 1 auto;
  color: #111;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

.epd-callus-modal .epd-callus-close {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #555;
  font-size: 1.625rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.epd-callus-modal .epd-callus-close span {
  display: block;
  margin-top: -2px;
}

.epd-callus-modal .epd-callus-close:hover,
.epd-callus-modal .epd-callus-close:focus {
  background: #f0f0f0;
  color: #111;
  outline: 0;
}

.epd-callus-modal .epd-callus-modal__body {
  padding: 18px 22px 8px;
}

.epd-callus-modal .epd-callus-field {
  margin-bottom: 16px;
}

.epd-callus-modal .epd-callus-field__label {
  display: block;
  margin-bottom: 6px;
  color: #444;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
}

.epd-callus-modal .epd-callus-field__input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  background: #f7f7f7;
  color: #222;
  font-size: 0.9375rem;
  line-height: 1.4;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.epd-callus-modal .epd-callus-field__input:focus {
  border-color: #888;
  background: #fff;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.epd-callus-modal .epd-callus-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 4px;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.epd-callus-modal .epd-callus-terms__input {
  flex: 0 0 auto;
  display: inline-block;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  position: relative;
  z-index: 3;
  opacity: 1 !important;
  visibility: visible !important;
  clip: auto !important;
  clip-path: none !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  accent-color: #222;
  pointer-events: auto !important;
  cursor: pointer;
  touch-action: manipulation;
}

.epd-callus-modal .epd-callus-field__input {
  pointer-events: auto;
}

.epd-callus-modal .epd-callus-terms__copy {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.45;
}

.epd-callus-modal .epd-callus-terms__label {
  display: inline;
  margin: 0;
  color: #555;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
  pointer-events: auto;
}

.epd-callus-modal .epd-callus-terms__legal {
  display: inline;
  margin-left: 4px;
  color: #555;
  font-size: 0.8125rem;
  white-space: normal;
}

.epd-callus-modal .epd-callus-terms__legal a {
  color: inherit;
  text-decoration: underline;
  pointer-events: auto;
}

.epd-callus-modal .epd-callus-terms__legal a:hover {
  color: #111;
}

.epd-callus-modal .epd-captcha-container {
  position: relative;
  z-index: 1;
  margin: 8px 0 4px;
  overflow: hidden;
  isolation: isolate;
}

.epd-callus-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.epd-callus-modal .epd-callus-alert,
.epd-callus-modal .epd-callus-success {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.epd-callus-modal .epd-callus-alert {
  color: #842029;
  background: #f8d7da;
  border: 1px solid #f5c2c7;
}

.epd-callus-modal .epd-callus-success {
  color: #0f5132;
  background: #d1e7dd;
  border: 1px solid #badbcc;
}

.epd-callus-alert[hidden],
.epd-callus-success[hidden] {
  display: none !important;
}

.epd-callus-modal .epd-callus-modal__footer {
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  justify-content: stretch;
  gap: 10px;
  padding: 14px 22px 20px;
  border-top: 1px solid #ececec;
  background: #fafafa;
}

.epd-callus-modal .epd-callus-btn {
  flex: 1 1 0;
  min-height: 42px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.epd-callus-modal .epd-callus-btn--primary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.epd-callus-modal .epd-callus-btn--primary {
  background: #222;
  border: 1px solid #222;
  color: #fff;
}

.epd-callus-modal .epd-callus-btn--primary:hover:not(:disabled) {
  background: #000;
  border-color: #000;
  color: #fff;
}

.epd-callus-modal .epd-callus-btn--secondary {
  background: #fff;
  border: 1px solid #d4d4d4;
  color: #333;
}

.epd-callus-modal .epd-callus-btn--secondary:hover {
  background: #f3f3f3;
  border-color: #bbb;
  color: #111;
}

@media (max-width: 480px) {
  .epd-callus-modal .epd-callus-modal__dialog {
    width: calc(100% - 24px) !important;
    max-height: calc(100vh - 24px) !important;
  }

  .epd-callus-modal .epd-callus-modal__header,
  .epd-callus-modal .epd-callus-modal__body,
  .epd-callus-modal .epd-callus-modal__footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .epd-callus-modal .epd-callus-modal__footer {
    flex-direction: column-reverse;
  }

  .epd-callus-modal .epd-callus-btn {
    width: 100%;
  }
}
