[id$="__exam-copy-order"],
[id$="__instructor-verify"],
[id$="__exam-copy-cart"],
[id$="__exam-copy-confirmation"] {
  background-color: #f9f9fb;
}

.supadu-exam-copy-modal {
  position: relative;
  background-color: white;
  max-width: 750px;
  width: 90%;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);

  h2 {
    font-size: 18px;
    margin-bottom: 24px;

    @media (min-width: 768px) {
      font-size: 32px;
    }
  }

  .modal-actions {
    margin-top: 32px;
    display: flex;
    gap: 32px;

    button,
    a {
      flex: 1 1 50%;
    }
  }
}

.supadu-exam-copy-button {
  button {
    &.disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
}

.supadu-exam-copy-item {
  padding: 16px;
  border: 1px solid #e7e4ec;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;

  img {
    max-width: 70px;
    height: min-content;
    box-shadow: 0 4px 14px #0000004d;
  }

  .item-details-container {
    display: flex;
    gap: 16px;
  }

  .item-main {
    flex: 1 1 0%;
  }

  .item-title {
    font-weight: 600;
    margin-bottom: 0;
  }

  .item-contributors {
    font-style: italic;
    font-size: 12px;
  }

  .item-format {
    margin-top: 16px;
    font-size: 14px;

    span {
      margin: 0 2px;
    }
  }

  .item-message,
  .item-message-mobile {
    font-size: 14px;
    margin-top: 16px;
    padding: 10px;
    border-radius: 5px;
    background-color: #f3f2f7;

    p {
      margin-bottom: 4px;
    }
  }

  .item-message {
    display: none;
  }

  .item-message-heading {
    font-weight: bold;
    font-size: 16px;
  }

  @media (min-width: 768px) {
    padding: 24px;

    .item-details-container {
      gap: 24px;
    }
  }

  @media (min-width: 1024px) {
    img {
      max-width: none;
    }

    .item-message {
      display: block;
    }

    .item-message-mobile {
      display: none;
    }
  }
}

.supadu-exam-copy-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(24, 16, 40, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;

  &.active {
    opacity: 1;
    visibility: visible;
  }
}

.supadu-exam-copy-icon-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #3e0c43;
  height: 36px;
  border-radius: 5px;
  font-size: 14px;
  margin-right: 4px;

  svg {
    margin-right: 8px;
    width: 24px;
    height: 24px;
  }

  span {
    display: none;
    @media (min-width: 768px) {
      display: block;
    }
  }

  .link-container {
    display: flex;
    align-items: center;
    padding-left: 8px;
    background-color: #f8d879;
    height: 100%;
    border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
    font-weight: 600;

    @media (min-width: 768px) {
      padding: 0 8px;
    }
  }

  .link-count {
    display: flex;
    align-items: center;
    padding: 0 8px;
    background-color: #f3bc44;
    height: 100%;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
    font-weight: 700;
  }
}

.supadu-exam-copy-cart-page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px;

  h1 {
    margin: 32px 0 16px;
    text-align: left;
  }

  .exam-copy-cart-page-container {
    display: flex;
    flex-direction: column;
    gap: 32px;

    @media (min-width: 768px) {
      flex-direction: row;
    }

    > div:first-child {
      background: #fff;
      padding: 24px 8px;
      border-bottom: 1px solid #ccc;
      width: 100%;

      @media (min-width: 768px) {
        padding: 24px;
        width: 50%;
        border-bottom: none;
      }
    }

    > div:nth-child(2) {
      background: #fff;
      padding: 24px 8px;
      width: 100%;

      @media (min-width: 768px) {
        padding: 24px;
        width: 50%;
      }

      h2 {
        font-size: 24px;
        margin-bottom: 0;
      }
    }

    .exam-copy-cart-signin {
      padding: 24px 0;
      border-bottom: 1px solid #ccc;

      p {
        font-size: 18px;
        margin-bottom: 24px;
      }
    }

    .exam-copy-cart-empty {
      display: none;
      margin-top: 24px;
      border: 1px solid #d4d0dd;
      border-radius: 5px;

      .exam-copy-cart-empty-main {
        padding: 24px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        p {
          margin: 16px 0 0;
          font-size: 18px;
          font-style: italic;
        }
      }

      .exam-copy-cart-empty-bottom {
        background-color: #f3f2f7;
        padding: 16px;
        text-align: center;

        p {
          margin: 0;
        }
      }
    }

    .exam-copy-cart {
      padding-top: 24px;

      .exam-copy-cart-item {
        margin: 16px 0;

        .exam-copy-cart-item-action {
          width: 100%;
          background-color: #e7e4ec;
          border-bottom-left-radius: 5px;
          border-bottom-right-radius: 5px;
          padding: 4px;

          button {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 36px;
            width: 115px;
            padding: 0 8px;
            color: #732c76;
            border-radius: 4px;
            font-weight: 500;
            transition: background-color 0.2s ease;

            &:hover {
              background-color: #d6d2de;
            }

            span {
              margin: 0 0 2px 4px;
            }
          }
        }
      }
    }

    .exam-copy-cart-continue {
      display: flex;
      flex-direction: column;

      p {
        padding: 12px 24px;
        border: 1px solid;
        font-weight: 500;
        border-radius: 5px;

        a {
          text-decoration: underline;
          font-weight: 600;
        }
      }

      a {
        margin-top: 24px;
        margin-left: auto;
      }
    }
  }
}

.supadu-exam-copy-verify-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;

  a {
    text-decoration: underline;
  }

  h1 {
    margin: 32px 0 16px;
    text-align: left;
  }

  .verify-content-container {
    padding: 48px;
    background: #fff;
    margin-bottom: 32px;
  }

  .verify-signin-container {
    padding: 48px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 32px;
    justify-content: center;
    align-items: center;
    border: 1px solid;
    border-radius: 4px;

    p {
      margin: 0;
      font-weight: 500;

      a {
        font-weight: 600;
      }
    }
  }
}

.supadu-exam-copy-order-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;

  h1 {
    margin: 32px 0 16px;
    text-align: left;
  }
}

.supadu-exam-copy-form-signin,
.supadu-exam-copy-confirmation-signin {
  text-align: center;
  padding: 64px 32px;
}

.supadu-exam-copy-form {
  label {
    display: block;
    margin-bottom: 8px;
  }

  input,
  select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8em 15px;
    height: 50px;
  }

  textarea {
    width: 100%;
  }

  input::placeholder {
    opacity: 0.5;
  }

  input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    margin: 0 6px 2px 0;
    padding: 0;
    font: inherit;
    width: 18px;
    height: 18px;
    border: 2px solid var(--input-border-color);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
  }

  input[type="radio"]::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f3bc44;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease-in-out;
  }

  input[type="radio"]:checked {
    border-color: #f3bc44;
  }

  input[type="radio"]:checked::before {
    transform: translate(-50%, -50%) scale(1);
  }

  input[type="checkbox"] {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    padding: 0;
    margin: 0 8px 4px 0;
    accent-color: #f3bc44;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--input-border-color);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
  }

  input[type="checkbox"]::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
  }

  input[type="checkbox"]:checked {
    background-color: #f3bc44;
  }

  input[type="checkbox"]:checked::before {
    opacity: 1;
  }

  .form-box {
    border: 1px solid #e7e4ec;
    border-radius: 5px;
    margin-bottom: 32px;
    background: #fff;

    > h4 {
      margin: 0;
      padding: 16px;
      border-bottom: 1px solid #e7e4ec;
      font-size: 1.1rem;
    }

    .form-content {
      padding: 16px 32px;
    }
  }

  .form-actions {
    display: flex;
    justify-content: flex-end;
    padding: 16px 32px;
  }

  .form-bottom-margin {
    margin-bottom: 16px;
  }

  .form-bottom-margin-large {
    margin-bottom: 32px;
  }

  .one-third,
  .two-thirds {
    flex: 1 1 100% !important;
  }

  @media (min-width: 768px) {
    .one-third,
    .two-thirds {
      flex: 1 1 50% !important;
    }
  }

  @media (min-width: 1024px) {
    .one-third {
      flex: 1 1 33% !important;
    }

    .two-thirds {
      flex: 1 1 66% !important;
    }
  }

  .grid-2 {
    display: flex;
    gap: 32px;

    > div {
      flex: 1 1 50%;
    }
  }

  .grid-3 {
    display: flex;
    gap: 32px;

    > div {
      flex: 1 1 33%;
    }
  }

  .item-left {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #e7e4ec;

    img {
      margin-bottom: 32px;
      width: 40%;
    }

    p {
      margin-bottom: 8px;
    }
  }

  .item-right {
    padding: 32px;
  }

  .hidden {
    display: none;
  }

  @media (max-width: 1299px) {
    .grid-2,
    .grid-3 {
      gap: 16px;
    }

    .item-right {
      padding: 32px 16px;
    }
  }

  @media (max-width: 1023px) {
    .grid-2,
    .grid-3 {
      flex-wrap: wrap;
    }

    .grid-2 > div,
    .grid-3 > div {
      flex: 1 1 100%;
    }

    .form-actions {
      justify-content: center;
    }
  }
}

.supadu-exam-copy-confirmation-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;

  h1 {
    margin: 32px 0 16px;
    text-align: left;
  }

  .supadu-exam-copy-item {
    border: none;

    .item-message,
    .item-message-mobile {
      display: none;
    }
  }

  .exam-order-container {
    display: flex;
    flex-direction: column;
  }

  #exam-order-address {
    p {
      margin-bottom: 4px;
    }
  }

  .exam-order-block {
    border-radius: 5px;
    border: 1px solid #e7e4ec;
    background: #fff;
    margin-bottom: 24px;

    > h4 {
      margin: 0;
      padding: 16px;
      border-bottom: 1px solid #e7e4ec;
      font-size: 1.1rem;
    }

    .block-content {
      padding: 16px;
    }

    .summary-row {
      display: flex;
      justify-content: space-between;

      &:last-child {
        font-weight: bold;
      }
    }
  }

  .exam-order-left {
    flex: 0 0 100%;
  }

  .exam-order-right {
    flex: 0 0 100%;
  }

  @media (min-width: 768px) {
    .exam-order-container {
      flex-direction: row;
      gap: 24px;
    }

    .exam-order-left {
      flex: 0 1 66%;
    }

    .exam-order-right {
      flex: 0 0 33%;
    }
  }

  @media (min-width: 1024px) {
    .exam-order-left {
      flex: 0 1 70%;
    }

    .exam-order-right {
      flex: 0 0 30%;
    }
  }
}

/**
  Product Page
**/
.sf-book-content__reviews blockquote:before {
  display: none;
}

.sf-book-content__reviews blockquote {
  font-style: normal;
}

.sf-formats {
  padding: 15px 0;
  margin: 15px 0 0 0;
  border-top: 1px solid #16141424;
  border-bottom: 1px solid #16141424;
}

.detail .product-form .quantity-submit-row .quantity-submit-row__submit {
  margin-top: 30px;
  margin-bottom: 30px;
}

.detail .price-container {
  margin-bottom: 10px;
}

.detail .price-container .price .price__default {
  line-height: 40px;
}

.detail .product-form .input-row {
  margin: 0 0 15px 0;
}

.detail buy-buttons.buy-buttons-row.block {
  margin-top: 5px;
}
