/* Dashboard Page Styling */
.tracking-dashboard-cards {
  max-width: 1200px;
  margin-bottom: 2em;
  width: 100%;
}
.tracking-card {
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  padding: 2em;
  margin-bottom: 0;
  box-sizing: border-box;
  transition: box-shadow 0.2s;
}
.tracking-card:hover {
  box-shadow: 0 4px 16px #0002;
}
.tracking-card-full {
  width: 100%;
  margin-bottom: 2em;
}
.tracking-card-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  gap: 4%;
  margin-bottom: 0;
}
.tracking-card-half {
  flex: 1 1 48%;
  min-width: 260px;
  max-width: 48%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tracking-card h2 {
  margin-top: 0;
  font-size: 1.2em;
}
.tracking-card-desc {
  margin-bottom: 1em;
  color: #444;
  font-size: 1em;
}
.tracking-card-shortcode {
  margin-bottom: 1em;
}
.tracking-card code {
  background: #f3f3f3;
  padding: 2px 6px;
  border-radius: 4px;
}
.tracking-card ul {
  font-size: 1em;
  margin: 0 0 1em 1.2em;
}
.tracking-card a.button {
  text-decoration: none;
  align-self: flex-start;
}
.tracking-card-version {
  font-size: 0.95em;
  color: #888;
}
.tracking-welcome-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
}
.tracking-welcome-col1 {
  flex: 2 1 0;
  min-width: 0;
}
.tracking-welcome-col2 {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  gap: 1em;
}
.tms-logo {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .tracking-card-row {
    flex-direction: column;
    gap: 2em;
  }
  .tracking-card-half {
    max-width: 100%;
    width: 100%;
    margin-bottom: 2em;
  }
}
@media (max-width: 700px) {
  .tracking-welcome-flex {
    flex-direction: column;
    gap: 1em;
    align-items: stretch;
  }
  .tracking-welcome-col2 {
    margin-top: 1em;
  }
}
@media (max-width: 600px) {
  .tracking-dashboard-cards {
    padding: 0 0.5em;
  }
  .tracking-card {
    padding: 1em;
  }
  .tracking-card h2 {
    font-size: 1em;
  }
}

/* Plugin styling */

form.tracking-input-form, .tracking-input-form{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 0 1.5rem 0;
}

input.tracking-input-field{
    flex: 1 1 auto;
    padding: 0.5em;
    border: 1px solid #f5f5f7;
    border-radius: 4px;
    font-size: 1em;
}

input.tracking-input-field:focus, .tracking-input-field:focus {
  outline: none;
  border-color: var(--e-global-color-secondary, #34BDF4);
  background-color: #fff;
}

input.tracking-submit-button{
    flex: 0 0 auto;
    padding: 0.65em 1em;
    border: none;
    border-radius: 4px;
    background:  #F6B100;
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    height: 100%;
}

input.tracking-submit-button:hover, input.tracking-submit-button:focus {
    background:  #221b45;
}


.tracking-row {
  display: flex;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 1.5rem;
  border-radius: 4px;
}

.tracking-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.tracking-col-icon {
  flex: 0 0 10%;
  align-items: start;
  justify-content: center;
  text-align: center;
  min-width: 40px;
}

.tracking-icon {
  font-size: 1.5em;
  color: #FFF;
}

.tracking-col-desc {
  flex: 1 1 auto;
  justify-content: flex-start;
  color: #23282d;
  padding-left: 8px;
  min-width: 120px;
  word-break: break-word;
  white-space: normal;
}

.tracking-status-text {
  font-weight: 600;
  color: var(--e-global-color-primary, #221b45);
}

.tracking-custom-description {
  font-weight: 300;
  margin-top:4px; 
  font-size:0.9em; 
}

.tracking-col-date {
  flex: 0 0 25%;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  min-width: 80px;
}
.tracking-date-top {
  display: flex;
  gap: 6px;
  font-size: 0.7em;
  flex-wrap: wrap;
}
.tracking-date-time {
  font-size: 0.6em;
  font-style: italic;
  margin-top: 2px;
}

.tracking-error-message {
    color: red;
    background-color: rgba(255, 255, 255, 0.5); 
    padding: 0.5em 1em;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 500;
    margin: 0;
}

.tracking-widget-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}
.tracking-form-container {
    width: 100%;
    display: block;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

form.tracking-input-form {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start; /* of space-between als je dat wilt */
    align-items: center;
    gap: 1rem;
    padding: 0; /* geen extra padding aan de zijkanten */
    box-sizing: border-box;
}

/* mobile version plugin */
@media (max-width: 600px) {
    form.tracking-input-form {
        flex-direction: column;
        align-items: stretch;
    }

    .tracking-col-icon{
      display: none;
    }

    .tracking-row{
      flex-direction: column;
      gap: 1em;
      justify-content: flex-start;
    }

  .tracking-col{
    display: flex;
    flex-direction: column;
    justify-content: start;
    min-width: 0;
  }

    .tracking-col-date {
      display: flex;
      flex-direction: column;
      gap: 1em;
      justify-content: flex-start;
      align-items: start;
    }
}
