/* Main settings */
.toplevel_page_zjedz-my-settings #wpcontent {
  padding: 0;
}

.toplevel_page_zjedz-my-settings #wpcontent #wpbody-content {
  padding-bottom: 0;
}

#zjedzmy-settings {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 32px);
}

/* Header */
#zjedzmy-settings-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background-color: #2b2a29;
  line-height: 2rem;
}

#zjedzmy-settings-header h1 {
  padding: 0;
  color: #fff;
}

#zjedzmy-settings-header-logo {
  display: flex;
  flex-shrink: 0;
  background-image: url("../assets/images/zjedz-my-logo_white.svg");
  background-size: contain;
  width: 150px;
  aspect-ratio: 133 / 35;
}

#zjedzmy-settings-save-button {
  margin-left: auto;
  font-size: 1rem;
  height: 3rem;
  width: 6rem;
  background: #fc0;
  border-color: #fc0;
  color: #2b2a29;
  font-weight: 700;
  box-shadow: none;
}

/* Content */
#zjedzmy-settings-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0 auto;
  padding: 0 1rem;
}

#zjedzmy-settings-description {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 80rem;
}

#zjedzmy-settings-description-logo {
  background-image: url("../assets/images/banner-1544x500.png");
  width: 100%;
  aspect-ratio: 1544 / 500;
  background-size: cover;
}

/* Footer */
#zjedzmy-settings-footer {
  display: flex;
  max-width: 80rem;
  width: 100%;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 1rem;
  margin: 1rem auto 0;
  background-color: #2b2a29;
  color: #999;
  font-size: 1rem;
}

.developer-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#bee-devs-logo {
  display: flex;
  flex-shrink: 0;
  background-image: url("../assets/images/bee_devs_logo_small.png");
  background-size: contain;
  aspect-ratio: 127 / 191;
  width: 4rem;
}

/* Forms */
#zjedzmy-settings-form table th {
  width: 16rem;
  line-height: 1rem;
  vertical-align: middle;
}

#zjedzmy-settings-form table tr.form-field-comment th {
  line-height: 0;
  padding: 0;
}

#zjedzmy-settings-form table tr.form-field-comment td {
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  line-height: 0;
  position: relative;
  bottom: 1rem;
}

/* Common classes */
.background-image-center {
  background-repeat: no-repeat;
  background-position: center;
}

.no-decorations-link {
  color: inherit;
  text-decoration: none;
  border: none;
  padding: 0;
  margin: 0;
}

.no-decorations-link:hover {
  color: #fc0;
}

.no-decorations-link:focus {
  box-shadow: none;
}

.admin-settings-field:is(input, select) {
  border: 0.1rem solid #fc0;
  padding: 0.4rem;
  border-radius: 0.2rem;
}

.toplevel_page_zjedz-my-settings #zjedzmy-settings-form .admin-settings-field:is(input, select) {
  width: 21rem;
}

.line-height-1-5 {
  line-height: 1.5rem;
}

/* Media queries */
@media screen and (max-width: 782px) {
  #zjedzmy-settings-form table tr.form-field-comment td {
    bottom: 0.5rem;
  }
}

@media screen and (max-width: 480px) {
  /* Header in column layout for small screens */
  #zjedzmy-settings-header {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0.75rem;
  }

  #zjedzmy-settings-header h1 {
    font-size: 1.5rem;
    margin: 0;
  }

  /* Hide the dash in mobile view */
  #zjedzmy-settings-header h1:first-of-type {
    display: none;
  }

  #zjedzmy-settings-header-logo {
    width: 80%;
  }

  #zjedzmy-settings-save-button {
    margin-left: 0;
    width: 100%;
  }

  /* Adjustments for the content section */
  #zjedzmy-settings-content {
    padding: 0 0.75rem;
  }

  .toplevel_page_zjedz-my-settings #zjedzmy-settings-form .admin-settings-field:is(input, select) {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #zjedzmy-settings-form table th {
    width: 100%;
    display: block;
    padding-bottom: 0.5rem;
  }

  #zjedzmy-settings-form table td {
    width: 100%;
    display: block;
    padding-top: 0.25rem;
  }
}
