/**
 * Locksmith ロック解除画面
 * 外側の余白は親（#locksmith-content .section / 記事本文）に任せる
 */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
パスワード入力
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.locksmith-passcode-container {
  padding: 0;
  padding: 4.8rem;
}

.locksmith-passcode-container .locksmith-resource-form {
  max-width: 56rem;
  margin: 0 auto;
  /* padding: 4rem 2.4rem; */
  border-radius: var(--num-r_S, 0.4rem);
  background: var(--color-wht, #fff);

  @media screen and (min-width: 768px) {
    /* padding: 4.8rem; */
  }
}

.locksmith-passcode-container .locksmith-resource-form > p {
  margin: 0;
}

.locksmith-passcode-container .locksmith-resource-form > p + p {
  margin-top: 1.6rem;

  @media screen and (min-width: 768px) {
    margin-top: 2.4rem;
  }
}

.locksmith-passcode-container label {
  display: block;
  color: var(--color-blk, #141414);
  font-family: var(--font-body-family);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.06rem;
}

.locksmith-passcode-container .locksmith-passcode {
  display: block;
  width: 100%;
  height: 4.8rem;
  min-height: 4.8rem;
  min-width: 0;
  margin: 0;
  padding: 0 1.6rem;
  border: 0.1rem solid var(--color-line, rgba(20, 20, 20, 0.2));
  border-radius: var(--num-r_S, 0.4rem);
  background: var(--color-wht, #fff);
  box-shadow: none;
  color: var(--color-blk, #141414);
  font-family: var(--font-body-family);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.06rem;

  &::before,
  &::after {
    content: none;
    display: none;
  }

  &:focus,
  &:focus-visible {
    outline: 0;
    box-shadow: none;
    border-color: var(--color-blk, #141414);
  }

  &.failed {
    border-color: #c00;
  }
}

.locksmith-passcode-container #locksmith_passcode_submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 4.8rem;
  min-height: 4.8rem;
  padding: 0 1.6rem;
  border: 0.1rem solid var(--color-blk, #141414);
  border-radius: var(--num-r_S, 0.4rem);
  background: var(--color-blk, #141414);
  box-shadow: none;
  color: var(--color-wht, #fff);
  font-family: var(--font-body-family);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.06rem;
  transition: color 0.3s ease, background 0.3s ease;

  &::before,
  &::after {
    content: none;
    display: none;
  }

  &:hover,
  &:focus,
  &:focus-visible {
    opacity: 1;
    outline: 0;
    box-shadow: none;
  }

  @media screen and (min-width: 768px) {
    &:not(:disabled):hover {
      background: var(--color-wht, #fff);
      color: var(--color-blk, #141414);
    }
  }

  &:disabled {
    cursor: not-allowed;
    opacity: 0.5;
  }

  .loading {
    display: none;
  }

  &:disabled .default {
    display: none;
  }

  &:disabled .loading {
    display: inline;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
パスワード以外
Locksmith の #locksmith-content .locksmith-content-inner
（max-width: 1200px / 左右 padding）を上書きする
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#locksmith-content .locksmith-content-inner,
.locksmith-content-inner {
  width: fit-content;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 4rem 2.4rem !important;
  border-radius: var(--num-r_S, 0.4rem);
  background: var(--color-wht, #fff);
  color: var(--color-blk, #141414);
  font-family: var(--font-body-family);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.06rem;
  overflow-wrap: anywhere;
  word-break: break-word;

  @media screen and (min-width: 768px) {
    padding: 4.8rem !important;
  }

  a:not(.button):not(.btn) {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.3rem;
    word-break: break-all;
  }

  a.button,
  a.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 4.8rem;
    min-height: 4.8rem;
    margin-top: 1.6rem;
    padding: 0 1.6rem;
    border: 0.1rem solid var(--color-blk, #141414);
    border-radius: var(--num-r_S, 0.4rem);
    background: var(--color-blk, #141414);
    box-shadow: none;
    color: var(--color-wht, #fff);
    font-family: var(--font-body-family);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.06rem;
    text-decoration: none;

    &::before,
    &::after {
      content: none;
      display: none;
    }

    &:hover,
    &:focus,
    &:focus-visible {
      opacity: 1;
      outline: 0;
      box-shadow: none;
    }

    @media screen and (min-width: 768px) {
      &:hover {
        background: var(--color-wht, #fff);
        color: var(--color-blk, #141414);
      }
    }
  }
}
