.f24-jfif-converter {
  --f24-jfif-border: #d7dde7;
  --f24-jfif-text: #172033;
  --f24-jfif-muted: #647086;
  --f24-jfif-surface: #ffffff;
  --f24-jfif-soft: #f5f7fb;
  --f24-jfif-accent: #13795b;
  --f24-jfif-accent-dark: #0d5f47;
  --f24-jfif-error: #b42318;
  --f24-jfif-success: #0f766e;
  background: var(--f24-jfif-surface);
  border: 1px solid var(--f24-jfif-border);
  border-radius: 8px;
  color: var(--f24-jfif-text);
  display: grid;
  gap: 16px;
  max-width: 680px;
  padding: 20px;
}

.f24-jfif-converter *,
.f24-jfif-converter *::before,
.f24-jfif-converter *::after {
  box-sizing: border-box;
}

.f24-jfif-converter__header {
  display: grid;
  gap: 6px;
}

.f24-jfif-converter__title {
  color: var(--f24-jfif-text);
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 0;
}

.f24-jfif-converter__note,
.f24-jfif-converter__expires,
.f24-jfif-converter__status {
  color: var(--f24-jfif-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.f24-jfif-converter__form {
  display: grid;
  gap: 12px;
}

.f24-jfif-converter__dropzone {
  align-items: center;
  background: var(--f24-jfif-soft);
  border: 1px dashed var(--f24-jfif-border);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-height: 112px;
  padding: 18px;
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.f24-jfif-converter__dropzone:focus-within,
.f24-jfif-converter__dropzone:hover {
  background: #eef7f3;
  border-color: var(--f24-jfif-accent);
}

.f24-jfif-converter__drop-title {
  color: var(--f24-jfif-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.f24-jfif-converter__drop-subtitle {
  color: var(--f24-jfif-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.f24-jfif-converter__input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.f24-jfif-converter__button,
.f24-jfif-converter__download {
  align-items: center;
  background: var(--f24-jfif-accent);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-height: 46px;
  padding: 12px 18px;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, opacity 160ms ease;
  width: 100%;
}

.f24-jfif-converter__button:hover,
.f24-jfif-converter__button:focus,
.f24-jfif-converter__download:hover,
.f24-jfif-converter__download:focus {
  background: var(--f24-jfif-accent-dark);
  color: #ffffff;
}

.f24-jfif-converter__button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.f24-jfif-converter__status[data-state="error"] {
  color: var(--f24-jfif-error);
}

.f24-jfif-converter__status[data-state="success"] {
  color: var(--f24-jfif-success);
}

.f24-jfif-converter__result {
  align-items: center;
  border-top: 1px solid var(--f24-jfif-border);
  display: grid;
  gap: 10px;
  padding-top: 16px;
}

.f24-jfif-converter__result[hidden] {
  display: none;
}

@media (min-width: 600px) {
  .f24-jfif-converter__form {
    grid-template-columns: 1fr 180px;
  }

  .f24-jfif-converter__button {
    align-self: stretch;
  }

  .f24-jfif-converter__result {
    grid-template-columns: 1fr auto;
  }
}
