.wdk-sender {
  --wdk-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wdk-primary-50: #edf3ff;
  --wdk-primary-100: #dce8ff;
  --wdk-primary-200: #c3d6fb;
  --wdk-primary-400: #6e95ef;
  --wdk-primary-500: #4e79df;
  --wdk-primary-600: #395ec7;

  --wdk-red-50: #fff2f4;
  --wdk-red-200: #ffd7df;
  --wdk-red-600: #d94f73;

  --wdk-slate-25: #fbfdff;
  --wdk-slate-50: #f6f9ff;
  --wdk-slate-75: #f0f5fc;
  --wdk-slate-100: #eaf0f8;
  --wdk-slate-150: #e0e8f3;
  --wdk-slate-200: #d4dfed;
  --wdk-slate-300: #c0d0e4;
  --wdk-slate-500: #6f84a5;
  --wdk-slate-600: #4f6485;
  --wdk-slate-800: #213757;
  --wdk-slate-900: #132847;

  --wdk-surface: #ffffff;
  --wdk-surface-soft: #f8fbff;
  --wdk-border: var(--wdk-slate-200);
  --wdk-border-strong: var(--wdk-slate-300);
  --wdk-text: var(--wdk-slate-900);
  --wdk-text-muted: var(--wdk-slate-600);
  --wdk-text-subtle: var(--wdk-slate-500);

  --wdk-shadow-sm: 0 2px 10px rgba(29, 57, 102, 0.05);
  --wdk-shadow-md: 0 14px 34px rgba(27, 52, 95, 0.1);
  --wdk-shadow-focus: 0 0 0 4px rgba(78, 121, 223, 0.18);

  width: 100%;
  color: var(--wdk-text);
  font-family: var(--wdk-font);
  font-size: 14px;
  line-height: 1.55;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.wdk-sender * {
  box-sizing: border-box;
}

.wdk-sender .d-none {
  display: none !important;
}

.wdk-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.wdk-sender__layout {
  display: flex;
  justify-content: center;
}

.wdk-sender__content {
  width: auto;
}

.wdk-sender__card {
  border: 1px solid var(--wdk-border);
  border-radius: 16px;
  background: var(--wdk-surface);
  box-shadow: var(--wdk-shadow-md);
}

.wdk-sender__card-body {
  padding: 24px;
}

.wdk-sender h1.wdk-sender__hero-title {
  margin: 0 0 26px;
  text-align: center;
  font-size: 28px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--wdk-text);
}

.wdk-sender__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wdk-sender__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wdk-sender__label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--wdk-text);
  letter-spacing: 0;
}

.wdk-sender__helper {
  margin: -2px 0 0;
  color: var(--wdk-text-subtle);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}

.wdk-sender__helper--vars {
  margin-top: 8px;
}

.wdk-sender__notice {
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  padding: 10px 12px;
  color: #7c5a12;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.wdk-sender__notice p {
  margin: 0;
}

.wdk-sender__notice p + p {
  margin-top: 4px;
}

.wdk-sender__tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.wdk-form-control,
.wdk-form-select {
  width: 100%;
  border: 1px solid var(--wdk-border);
  border-radius: 14px;
  background: var(--wdk-surface-soft);
  color: var(--wdk-text);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.7;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  outline: none;
}

.wdk-form-control::placeholder,
.wdk-form-select::placeholder {
  color: #8da0bf;
}

.wdk-form-control-solid,
.wdk-form-select-solid {
  background: var(--wdk-slate-50);
}

.wdk-form-control:focus,
.wdk-form-select:focus,
.wdk-template-pill:focus-visible,
.wdk-btn:focus-visible,
.wdk-action-btn:focus-visible {
  outline: none;
  border-color: var(--wdk-primary-500);
  box-shadow: var(--wdk-shadow-focus);
}

.wdk-form-control {
  resize: vertical;
  min-height: 56px;
}

.wdk-sender [data-field='contact'] {
  min-height: 180px;
  padding: 14px 15px;
}

.wdk-sender [data-field='message'] {
  min-height: 240px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
  padding: 16px;
  line-height: 1.8;
  font-size: 13.5px;
  color: #243c61;
}

.wdk-template-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--wdk-border);
  background: var(--wdk-slate-50);
}

.wdk-template-pill {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--wdk-text-muted);
  min-height: 34px;
  padding: 6px 13px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  transition: all 0.18s ease;
}

.wdk-template-pill:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.62);
  color: var(--wdk-primary-600);
}

.wdk-template-pill.is-active {
  color: var(--wdk-text);
  border-color: var(--wdk-border);
  background: #ffffff;
  box-shadow: var(--wdk-shadow-sm);
}

.wdk-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  min-height: 38px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.wdk-btn:hover {
  transform: translateY(-1px);
}

.wdk-btn-sm {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12.5px;
}

.wdk-btn-primary {
  width: auto;
  align-self: flex-start;
  min-height: 40px;
  border-radius: 10px;
  border: 0;
  color: #ffffff;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--wdk-primary-500) 0%, var(--wdk-primary-400) 100%);
  box-shadow: 0 8px 18px rgba(51, 95, 217, 0.24);
}

.wdk-btn-primary:hover {
  background: linear-gradient(135deg, var(--wdk-primary-600) 0%, var(--wdk-primary-500) 100%);
  box-shadow: 0 10px 20px rgba(51, 95, 217, 0.28);
}

.wdk-btn-primary .wdk-btn__progress {
  display: none;
}

.wdk-btn-primary.is-loading .wdk-btn__label,
.wdk-btn-primary.is-loading .wdk-btn__icon {
  display: none;
}

.wdk-btn-primary.is-loading .wdk-btn__progress {
  display: inline-flex;
}

.wdk-btn-light-success,
.wdk-btn-light-info {
  border-color: #d5e1f3;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fd 100%);
  color: #355882;
}

.wdk-btn-light-success:hover,
.wdk-btn-light-info:hover {
  border-color: #c3d5ef;
  background: #eaf2fe;
  color: #254a79;
}

.wdk-btn-light-danger {
  border-color: var(--wdk-red-200);
  background: var(--wdk-red-50);
  color: var(--wdk-red-600);
}

.wdk-btn-light-danger:hover {
  border-color: var(--wdk-red-200);
  background: #ffe8ee;
  color: var(--wdk-red-600);
}

.wdk-btn-icon {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 10px;
}

.wdk-btn__icon,
.wdk-action-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wdk-btn__icon svg,
.wdk-action-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wdk-sender__overlay {
  position: relative;
}

.wdk-sender__loading {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: rgba(247, 251, 255, 0.74);
  backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wdk-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(78, 121, 223, 0.2);
  border-top-color: var(--wdk-primary-500);
  animation: wdk-spin 0.8s linear infinite;
}

@keyframes wdk-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.wdk-sender__separator {
  margin: 26px 0 20px;
  border-top: 1px dashed #bfd1eb;
}

.wdk-sender__result-head {
  margin-bottom: 10px;
}

.wdk-sender__result-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--wdk-text);
}

.wdk-sender__result-subtitle {
  margin-top: 4px;
  color: var(--wdk-text-subtle);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

.wdk-sender__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.wdk-guest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--wdk-border);
  border-radius: 12px;
  background: #ffffff;
  padding: 10px 11px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.wdk-guest-item:hover {
  border-color: #bed0ea;
  box-shadow: var(--wdk-shadow-sm);
  background: #fcfeff;
}

.wdk-guest-item__left {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wdk-guest-item__name {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--wdk-text);
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wdk-guest-item__details,
.wdk-guest-item__url {
  font-size: 10.5px;
  line-height: 1.35;
}

.wdk-guest-item__details {
  color: var(--wdk-text-subtle);
  font-weight: 600;
}

.wdk-guest-item__url {
  color: #6d84a8;
  word-break: break-all;
}

.wdk-guest-item__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wdk-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--wdk-slate-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.wdk-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(29, 57, 102, 0.12);
}

.wdk-action-btn--success,
.wdk-action-btn--primary,
.wdk-action-btn--info,
.wdk-action-btn--secondary {
  background: var(--wdk-primary-50);
  border-color: var(--wdk-primary-200);
  color: var(--wdk-primary-600);
}

.wdk-action-btn--success:hover,
.wdk-action-btn--primary:hover,
.wdk-action-btn--info:hover,
.wdk-action-btn--secondary:hover {
  background: #e3edff;
  border-color: #b8cdf6;
  color: #2f55b8;
}

.wdk-action-btn--danger {
  background: var(--wdk-red-50);
  border-color: var(--wdk-red-200);
  color: var(--wdk-red-600);
}

.wdk-sender__empty {
  border: 1px dashed var(--wdk-border-strong);
  border-radius: 12px;
  padding: 20px 14px;
  text-align: center;
  color: var(--wdk-text-subtle);
  font-size: 12px;
  line-height: 1.45;
}

.wdk-sender__empty.is-hidden {
  display: none;
}

.wdk-sender__toast {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9999;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: #f8fbff;
  background: #203858;
  box-shadow: 0 10px 26px rgba(20, 33, 56, 0.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wdk-sender__toast[data-type='success'] {
  background: #315ea9;
}

.wdk-sender__toast[data-type='warning'] {
  background: #9b6c2a;
}

.wdk-sender__toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wdk-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  padding: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 29, 49, 0.52);
}

.wdk-modal.is-open {
  display: flex;
}

.wdk-modal__dialog {
  width: 100%;
  max-width: 560px;
  border: 1px solid var(--wdk-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 28px 46px rgba(15, 29, 49, 0.3);
}

.wdk-modal__header {
  padding: 14px;
  border-bottom: 1px solid var(--wdk-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wdk-modal__header h3 {
  margin: 0;
  color: var(--wdk-text);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
}

.wdk-modal__body {
  padding: 14px;
}

.wdk-modal__body p {
  margin: 0 0 9px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--wdk-text-muted);
}

.wdk-modal__body pre {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--wdk-border);
  background: var(--wdk-slate-50);
  font-family: Consolas, 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--wdk-text);
  white-space: pre-wrap;
}

@media (min-width: 768px) {
  .wdk-sender__card-body {
    padding: 30px;
  }

  .wdk-sender h1.wdk-sender__hero-title {
    margin-bottom: 28px;
    font-size: 30px;
  }

  .wdk-sender__label {
    font-size: 14px;
  }

  .wdk-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
}

@media (min-width: 1024px) {
  .wdk-sender h1.wdk-sender__hero-title {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .wdk-sender__card {
    border-radius: 14px;
  }

  .wdk-sender__card-body {
    padding: 16px;
  }

  .wdk-sender h1.wdk-sender__hero-title {
    margin-bottom: 20px;
    font-size: 26px;
  }

  .wdk-template-pills {
    gap: 4px;
    padding: 4px;
  }

  .wdk-template-pill {
    min-height: 33px;
    padding: 6px 11px;
    font-size: 12.5px;
  }

  .wdk-sender [data-field='contact'] {
    min-height: 170px;
  }

  .wdk-sender [data-field='message'] {
    min-height: 220px;
  }

  .wdk-guest-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .wdk-guest-item__left {
    width: 100%;
  }

  .wdk-guest-item__actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 2px;
  }

  .wdk-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .wdk-sender__toast {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}
