/* =========================================================
   ECO CERTIFICATE & TREE TRACKER
========================================================== */

.shiftify-dashboard {

  position: relative;

  background:
    linear-gradient(180deg,
      #ffffff 0%,
      #fbfcfd 55%,
      #f8fafb 100%) !important;

  color: #18283b;
  padding: 32px 0 40px;


}

/* =========================================================
   SECTION HEADER
========================================================== */

.shiftify-dashboard .shiftify-eyebrow {

  display: inline-flex;

  align-items: center;

  color: #ff5a1f;

  background: #fff4ee;

  border: 1px solid #ffd9ca;

  padding: 6px 13px;

  border-radius: 50px;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.5px;

}


.shiftify-title-badge {

  display: inline-flex;

  align-items: center;

  gap: 5px;

  margin-left: 8px;

  padding: 5px 10px;

  background: #f5f8fb;

  border: 1px solid #dfe6ed;

  border-radius: 50px;

  color: #31506d;

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 0.6px;

  vertical-align: middle;

}


.shiftify-dashboard .one-tree-eyebrow-icon {

  color: #398149;

}


.shiftify-dashboard .shiftify-main-title {

  color: #10243b;

  line-height: 1.15;

  font-weight: 800;

}


.shiftify-dashboard .shiftify-main-title span {

  color: #ff5a1f;

  text-shadow: none;

}


.shiftify-dashboard .shiftify-description {

  color: #657587;

  max-width: 700px;

  margin: 8px 0 18px;

  font-size: 12px;

  line-height: 1.55;

}


/* =========================================================
   MAIN GRID
========================================================== */

.shiftify-dashboard-grid {

  display: grid;

  grid-template-columns:
    minmax(0, 1fr) minmax(0, 1fr);

  gap: 18px;

  align-items: stretch;

}


/* =========================================================
   CARDS
========================================================== */

.shiftify-card {

  position: relative;

  padding: 20px;

  background: #ffffff !important;

  border: 1px solid #dfe5eb !important;

  border-radius: 14px;

  box-shadow:
    0 4px 16px rgba(24, 40, 59, 0.045) !important;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;

  overflow: hidden;

}


.shiftify-card::before {

  content: "";

  position: absolute;

  width: 110px;

  height: 110px;

  top: -65px;

  right: -55px;

  background: #f3f7fa;

  border-radius: 50%;

  pointer-events: none;

}


.shiftify-card:hover {

  transform: translateY(-2px);

  border-color: #cfd9e2 !important;

  box-shadow:
    0 9px 25px rgba(24, 40, 59, 0.08) !important;

}


/* =========================================================
   CARD HEADER
========================================================== */

.shiftify-card-header {

  position: relative;

  z-index: 2;

  display: flex;

  align-items: center;

  gap: 11px;

  margin-bottom: 12px;

}


.shiftify-card-icon {

  width: 42px;

  height: 42px;

  flex: 0 0 42px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 11px;

  font-size: 19px;

}


.shiftify-card-icon--green {

  background: #edf8ef;

  border: 1px solid #d5ead9;

}


.shiftify-card-icon--earth {

  background: #edf7f4;

  border: 1px solid #d5e9e1;

}


.shiftify-card-label {

  display: block;

  margin-bottom: 3px;

  color: #64806c;

  font-size: 8px;

  font-weight: 800;

  letter-spacing: 1px;

  text-transform: uppercase;

}


.shiftify-card h3 {

  margin: 0;

  color: #17304a !important;

  font-size: 17px;

  font-weight: 750;

  line-height: 1.25;

}


/* =========================================================
   DESCRIPTION
========================================================== */

.shiftify-card-description {

  position: relative;

  z-index: 2;

  margin: 0 0 17px;

  color: #6b7a89;

  font-size: 11px;

  line-height: 1.55;

}


.shiftify-card-description strong {

  color: #3e6f4a;

  font-weight: 700;

}


/* =========================================================
   SEARCH
========================================================== */

.shiftify-search-wrapper {

  position: relative;

  z-index: 2;

}


.shiftify-search-wrapper label {

  display: block;

  margin-bottom: 6px;

  color: #35495c;

  font-size: 10px;

  font-weight: 700;

}


.shiftify-search-group {

  display: flex;

  align-items: stretch;

  padding: 3px;

  background: #f8fafb;

  border: 1px solid #d8e1e8;

  border-radius: 9px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;

}


.shiftify-search-group:focus-within {

  border-color: #7da68a;

  box-shadow:
    0 0 0 3px rgba(61, 129, 74, 0.07);

}


.shiftify-search-group input {

  width: 100%;

  min-width: 0;

  border: 0;

  outline: 0;

  padding: 9px 10px;

  background: transparent;

  color: #29445b;

  font-size: 11px;

  font-weight: 600;

}


.shiftify-search-group input::placeholder {

  color: #9aa7b3;

  font-weight: 400;

}


.shiftify-search-group input:focus {

  outline: none;

  box-shadow: none;

}


.shiftify-search-group button {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 6px;

  flex: 0 0 auto;

  padding: 8px 13px;

  border: 0;

  border-radius: 7px;

  background: #398149;

  color: #ffffff;

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 0.3px;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;

}


.shiftify-search-group button:hover {

  background: #2f6e3b;

  transform: translateY(-1px);

}


.shiftify-button-arrow {

  font-size: 13px;

  line-height: 1;

}


.shiftify-error-message {

  margin-top: 7px;

  padding: 8px 10px;

  background: #fff6f3;

  border: 1px solid #f2d7ce;

  border-radius: 7px;

  color: #a64b42;

  font-size: 10px;

  line-height: 1.4;

}


/* =========================================================
   TREE RESULT
========================================================== */

.shiftify-tree-result {

  position: relative;

  z-index: 2;

  margin-top: 17px;

  padding: 14px;

  background:
    linear-gradient(145deg,
      #f8fbf9,
      #ffffff);

  border: 1px solid #dce6df;

  border-radius: 12px;

  animation:
    shiftifyResultIn 0.3s ease forwards;

}


.shiftify-result-top {

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 10px;

  padding-bottom: 10px;

  margin-bottom: 11px;

  border-bottom: 1px solid #e8edf0;

}


.shiftify-verified-badge {

  display: inline-flex;

  align-items: center;

  gap: 4px;

  margin-bottom: 5px;

  padding: 4px 7px;

  background: #edf8ef;

  border: 1px solid #d3e8d7;

  border-radius: 50px;

  color: #398149;

  font-size: 8px;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.3px;

}


.shiftify-verified-badge span {

  display: flex;

  align-items: center;

  justify-content: center;

  width: 13px;

  height: 13px;

  border-radius: 50%;

  background: #4b9257;

  color: #ffffff;

  font-size: 8px;

}


.shiftify-result-top h4 {

  margin: 0;

  color: #24435a;

  font-size: 15px;

  font-weight: 700;

}


.shiftify-tree-id-badge {

  flex: 0 0 auto;

  padding: 5px 8px;

  background: #f5f8fa;

  border: 1px solid #dce4e9;

  border-radius: 7px;

  text-align: right;

}


.shiftify-tree-id-badge small {

  display: block;

  color: #8b98a3;

  font-size: 7px;

  text-transform: uppercase;

}


.shiftify-tree-id-badge strong {

  color: #4c6c59;

  font-size: 9px;

  letter-spacing: 0.4px;

}


/* =========================================================
   TREE RESULT CONTENT
========================================================== */

.shiftify-result-content {

  display: grid;

  grid-template-columns:
    90px minmax(0, 1fr);

  gap: 12px;

}


.shiftify-tree-photo {

  position: relative;

  height: 95px;

  overflow: hidden;

  background: #edf4ee;

  border-radius: 9px;

  border: 1px solid #d7e3da;

}


.shiftify-tree-photo img {

  display: block;

  width: 100%;

  height: 100%;

  object-fit: cover;

}


.shiftify-photo-label {

  position: absolute;

  left: 5px;

  right: 5px;

  bottom: 5px;

  padding: 4px;

  background: rgba(255, 255, 255, 0.94);

  border-radius: 5px;

  color: #3e7148;

  font-size: 7px;

  font-weight: 800;

  text-align: center;

  letter-spacing: 0.3px;

}


/* =========================================================
   DETAILS
========================================================== */

.shiftify-tree-details {

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 7px;

}


.shiftify-detail {

  display: flex;

  align-items: flex-start;

  gap: 6px;

  padding: 7px;

  background: #fbfcfc;

  border: 1px solid #e7ecef;

  border-radius: 7px;

}


.shiftify-detail--full {

  grid-column: 1 / -1;

}


.shiftify-detail-icon {

  flex: 0 0 auto;

  font-size: 12px;

}


.shiftify-detail small {

  display: block;

  margin-bottom: 2px;

  color: #8a969f;

  font-size: 7px;

  font-weight: 600;

  text-transform: uppercase;

  letter-spacing: 0.2px;

}


.shiftify-detail strong {

  display: block;

  color: #425b4a;

  font-size: 9px;

  line-height: 1.35;

  word-break: break-word;

}


/* =========================================================
   GLOBAL METRICS
========================================================== */

.shiftify-metrics-grid {

  position: relative;

  z-index: 2;

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 8px;

  margin-bottom: 13px;

}


.shiftify-metric {

  display: flex;

  align-items: center;

  gap: 8px;

  min-width: 0;

  padding: 9px;

  background: #f9fbfc;

  border: 1px solid #e1e8ed;

  border-radius: 9px;

}


.shiftify-metric-icon {

  width: 30px;

  height: 30px;

  flex: 0 0 30px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 8px;

  font-size: 14px;

}


.shiftify-metric-icon--green {

  background: #eaf7ec;

}


.shiftify-metric-icon--orange {

  background: #fff2ea;

}


.shiftify-metric-icon--dark-green {

  background: #e5f4e7;

}


.shiftify-metric-icon--leaf {

  background: #edf6ed;

}


.shiftify-metric-content {

  min-width: 0;

}


.shiftify-metric-content span {

  display: block;

  margin-bottom: 2px;

  color: #7a8791;

  font-size: 7px;

  line-height: 1.2;

}


.shiftify-metric-content strong {

  color: #315d3a;

  font-size: 13px;

  font-weight: 750;

  line-height: 1.1;

}


.shiftify-metric-content small {

  margin-left: 2px;

  color: #829087;

  font-size: 7px;

}


.shiftify-metric--carbon {

  border-color: #eee1da;

}


.shiftify-metric--carbon .shiftify-metric-content strong {

  color: #a56345;

}


.shiftify-metric--reduced .shiftify-metric-content strong {

  color: #3b8750;

}


.shiftify-metric--percentage {

  border-color: #dcebe0;

}


.shiftify-metric--percentage .shiftify-metric-content strong {

  color: #28713b;

}


/* =========================================================
   IMPACT BOX
========================================================== */

.shiftify-impact-box {

  position: relative;

  z-index: 2;

  padding: 14px;

  background:
    linear-gradient(135deg,
      #f3f8f4 0%,
      #f9fbfa 100%);

  border: 1px solid #dce8df;

  border-radius: 11px;

}


.shiftify-impact-top {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;

  margin-bottom: 11px;

}


.shiftify-impact-label {

  display: block;

  margin-bottom: 3px;

  color: #63806a;

  font-size: 7px;

  font-weight: 800;

  letter-spacing: 0.6px;

}


.shiftify-impact-top h4 {

  margin: 0;

  color: #315d3a;

  font-size: 12px;

  font-weight: 700;

}


.shiftify-impact-percentage {

  text-align: right;

}


.shiftify-impact-percentage strong {

  display: block;

  color: #398149;

  font-size: 20px;

  line-height: 1;

}


.shiftify-impact-percentage span {

  display: block;

  margin-top: 3px;

  color: #819087;

  font-size: 7px;

  text-transform: uppercase;

}


/* =========================================================
   PROGRESS
========================================================== */

.shiftify-progress-track {

  width: 100%;

  height: 7px;

  overflow: hidden;

  background: #dfe9e1;

  border-radius: 20px;

}


.shiftify-progress-fill {

  height: 100%;

  background:
    linear-gradient(90deg,
      #75ad7d,
      #398149);

  border-radius: inherit;

  transition:
    width 0.8s ease;

}


.shiftify-progress-labels {

  display: flex;

  justify-content: space-between;

  margin-top: 5px;

  color: #87958a;

  font-size: 7px;

}


/* =========================================================
   IMPACT MESSAGE
========================================================== */

.shiftify-impact-message {

  position: relative;

  z-index: 2;

  display: flex;

  align-items: center;

  gap: 7px;

  margin-top: 11px;

  padding-top: 10px;

  border-top: 1px solid #e5ebe7;

}


.shiftify-impact-leaf {

  font-size: 14px;

}


.shiftify-impact-message p {

  margin: 0;

  color: #718077;

  font-size: 9px;

  line-height: 1.45;

}


/* =========================================================
   BOTTOM MESSAGE
========================================================== */

.shiftify-dashboard .eco-carbon-bottom-message {

  background: #f7f9fb;

  border: 1px solid #e1e7ec;

  border-radius: 50px;

  padding: 8px 15px;

}


.shiftify-dashboard .eco-carbon-bottom-message p {

  color: #5c7182;

  font-size: 9px;

}


/* =========================================================
   ANIMATION
========================================================== */

@keyframes shiftifyResultIn {

  from {

    opacity: 0;

    transform: translateY(6px);

  }

  to {

    opacity: 1;

    transform: translateY(0);

  }

}


/* =========================================================
   TABLET
========================================================== */

@media (max-width: 991px) {

  .shiftify-dashboard-grid {

    grid-template-columns: 1fr;

  }

}


/* =========================================================
   MOBILE
========================================================== */

@media (max-width: 600px) {

  .shiftify-card {

    padding: 17px;

    border-radius: 12px;

  }

  .shiftify-card-header {

    gap: 9px;

  }

  .shiftify-card-icon {

    width: 38px;

    height: 38px;

    flex-basis: 38px;

    font-size: 17px;

    border-radius: 9px;

  }

  .shiftify-card h3 {

    font-size: 15px;

  }

  .shiftify-search-group {

    flex-direction: column;

    padding: 3px;

  }

  .shiftify-search-group button {

    width: 100%;

  }

  .shiftify-result-top {

    flex-direction: column;

  }

  .shiftify-tree-id-badge {

    text-align: left;

  }

  .shiftify-result-content {

    grid-template-columns: 1fr;

  }

  .shiftify-tree-photo {

    height: 150px;

  }

  .shiftify-tree-details {

    grid-template-columns: 1fr;

  }

  .shiftify-detail--full {

    grid-column: auto;

  }

  .shiftify-metrics-grid {

    grid-template-columns: 1fr;

  }

  .shiftify-impact-top {

    align-items: flex-start;

  }

  .shiftify-dashboard .eco-carbon-bottom-message {

    border-radius: 12px;

  }

}