/* ---------------------------- a tags  */
a {
  color:#d44311;
}

/* ---------------------------- specific parent container so we can reset a few things */
.zspl-wrap,
.zspl-wrap p {
  color: black;
  font-size: 16px;
}

/* ---------------------------- for the header section */
.zspl-header {
  padding: 1rem 0 0;
  display: grid;
  grid-template-columns: 100px auto;
  grid-template-rows: auto;
  align-items: end;
}

.zspl-header img {
  height: 100px;
  grid-column: 1 / 2;
}

.zspl-header h1 {
  grid-column: 2 / 3;
  font-size: 1.5rem;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #ccc;
  color: #404142;

  @media screen and (min-width: 768px) {
    height: 100px;
    line-height: 165px;
  }
}

/* makes sure all subsequent divs shoved into the header by WP take up all the columns */
.zspl-header div {
  grid-column: 1 / 3;
}

/* ---------------------------- tab section */
.zspl-tab-parent {
  border-bottom: 1px solid #cdd5d4;
  margin-top: 2rem;
}

/* wrapper that holds the a-tags */
.zspl-tab-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  padding: 0 1rem;
  margin-bottom: 1.5rem;
}

@media screen and (min-width:768px) {
  .zspl-tab-wrapper {
    flex-direction: row;
    align-items: center;
    padding: 0;
    margin-bottom:0;
  }
}

.zspl-tab-wrapper a {
  padding: 0.7rem;
  margin: 0.5rem 0;
  text-decoration: none;
  background: #cdd5d4;
  border: 1px solid #bac7c4;
  color: black;
  transition: 0.5s;
  width: 100%;
}

@media screen and (min-width:768px) {
  .zspl-tab-wrapper a {
    border-radius: 5px 5px 0 0;
    margin: 0 0.25rem;
    width: auto;
    border-bottom: 0;
    width: auto;
  }
}

.zspl-tab-wrapper a:hover,
.zspl-tab-wrapper a:focus,
.zspl-tab-wrapper a.active {
  background: white;
  color: #d44311;
  border-color: #cdd5d4;
}



/* ---------------------------- first box: connection status and entering key */
.zspl-status-parent {
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin: 1.5rem 0;
}

@media screen and (min-width:768px) {
  .zspl-status-parent {
    flex-direction: row;
  }
}

.zspl-conn-status,
.zspl-account-status {
  border: 1px solid #cdd5d4;
  padding: 1rem;
  margin: 1rem;
}

.zspl-title-white {
  color: black;
  background: #cdd5d4;
  padding: 1rem;
  margin: 0;
  font-size: 1rem;
}

.zspl-conn-status span {
  color: #d44311;
}

.zspl-conn-info a {
  color: #d1f388;
}

.zspl-conn-info a:hover,
.zspl-conn-info a:focus {
  color: white;
}

.zspl-conn-info  {
  border: 1px solid #cdd5d4;
  border-top: 0;
  padding: 1rem;
  background: white;
}

.zspl-conn-info h2 {
  font-size: 1.1rem;
  text-align: center;
  color: white;
  background: rgba(0,0,0,0.5);
  padding: 1rem;
  margin: 0;
  font-weight: normal;
}


/* ---------------------------- for form fields. somewhat matching what the app has */
@media screen and (min-width:768px) {
  .zspl-form p,
  .zspl-sync-settings p,
  .zspl-manual-sync p,
  .zspl-tax-mapping p {
    padding-left: 1rem;
  }
}

.zspl-form p + small,
.zspl-sync-settings p + small  {
  padding-left: 0;
}

.zspl-form input,
.zspl-form select,
.zspl-manual-sync input,
.zspl-tax-mapping select {
  border: 1px solid #444;
  border-radius: 0;
  min-height: 3rem;
  width: 180px; /* making sure they're all the same size. comes into play on mac */
}

.zspl-form .form-table p.submit,
.zspl-manual-sync .form-table p.submit,
.zspl-tax-mapping .form-table p.submit {
  padding-bottom: 1rem !important;
}

/* undoes what previous declaration did */
.zspl-form input[type=checkbox] {
  min-height: 1rem;
  max-width: 1rem;
}

/* and styles them for mobile, making sure the checkboxes here sit side by side with the label */
.zspl-sync-settings-form .form-table th,
.zspl-sync-settings-form .form-table td {
  display: table-cell;
}


/* styling the select field to match the text fields */
.wp-admin .zspl-form select, .zspl-form select {
  padding: 0.7rem;
  min-width: 180px;
}

/* centering vertically */
.zspl-wrap .form-table th {
  vertical-align: middle;
  font-size: 0.9rem;
  width: 220px; /* overwriting WP defaults */
}

@media screen and (min-width:768px) {
.zspl-wrap .form-table th {
    padding-left: 1rem;
  }
}


/* sub titles in form */
.zspl-form h2,
.zspl-sync-settings h2,
.zspl-manual-sync  h2,
.zspl-tax-mapping h2,
#zspl-tab-inventory h2 {
  color: #085a70;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1rem;
  margin-top: 2rem;
  background: #cdd5d4;
}

.zspl-form h2:nth-of-type(1) {
  margin-top: 0;
}

/* restyling all the buttons to match app */
.zspl-form input[type="submit"],
.zspl-sync-settings .button-primary,
.zspl-manual-sync .button-primary,
.zspl-tax-mapping input[type="submit"] {
  background: #d44311;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  border: 0;
  font-size: 0.9rem;
}


/* ---------------------------- tax section */
.zspl-dekstop-subtitles th,
.zspl-dekstop-subtitles td {
  font-weight: 700;
  color: #085a70;
  font-size: 0.9rem;
  vertical-align: middle;
}

@media screen and (max-width:768px) {
  .zspl-dekstop-subtitles  {
    display: none;
  }
}


/* ---------------------------- tacked on class to remove all margins */
.remove-margin {
  margin: 0;
}
.remove-padding {
  padding: 0 !important;
}
