@import "./parts/font.scss";
//Disable notices on the admin page
body:has(.dhl-ecom-sweden-admin) {
  .notice {
    display: none;
  }
}

@mixin gradient() {
  background: linear-gradient(
    90deg,
    rgb(255, 204, 0),
    rgb(255, 204, 0) 48%,
    rgb(255, 229, 127) 70%,
    rgb(255, 240, 178)
  );
}

@mixin heading() {
  font-family: "DHL";
  color: black;
  text-transform: uppercase;
}

@mixin button() {
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  border: none;
  appearance: none;
  background-color: #d40511;
  font-family: "DHL";
  font-weight: bold;
  font-size: 0.875rem;
  cursor: pointer;
  color: #ffffff;

  text-decoration: none;
  &:hover {
    color: white;
    background-color: #be040f;
  }

  &.button--secondary {
    background-color: transparent;
    border: 1px solid #d40511;
    color: black;
  }
}

@mixin input() {
  padding: 10px;
  background-color: white;
  border-radius: 4px;
  min-width: 250px;
}

.dhl-ecom-sweden-admin {
  position: fixed;
  top: 32px;
  left: 160px;
  background-color: white;

  overflow: scroll;

  width: calc(100% - 160px);
  height: calc(100% - 32px);

  .header {
    @include gradient();
    padding: 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  h1 {
    @include heading;
    font-size: 60px;
  }

  h3 {
    @include heading;
    font-size: 24px;
  }

  .container {
    padding: 24px;
  }

  ul {
    li {
      display: flex;
      align-items: center;
      gap: 8px;

      &.completed {
        p {
          text-decoration: line-through;
          opacity: 0.5;
        }
      }

      span {
        @include heading;
        font-size: 18px;
        background-color: #d40511;
        color: white;
        padding: 4px 8px;
        border-radius: 100%;
      }
    }
  }

  button,
  .button,
  input[type="submit"] {
    @include button();
  }

  .test_shipping {
    margin: 0 auto;
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    .test_shipping_options {
      display: flex;
      flex-direction: column;
      gap: 8px;

      input[type="text"] {
        @include input();
      }
    }

    .shipping_resluts {
      white-space: pre;
      height: 500px;
      overflow-y: scroll;
      border: 1px solid #ccc;
      padding: 10px;
      margin-top: 20px;
    }
  }
}
