
.carryon-co2-widget {
    
    width:46%;
    float:left;
    margin-right:20px;
  max-width: 640px;
  padding: 5px 25px;
  padding-bottom:20px;
  background: #f9f9fb;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* Form fields */
.carryon-co2-widget label {
  display: block;
  margin-top: 10px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #444;
}

.carryon-co2-widget select,
.carryon-co2-widget input[type="number"],
.searchable-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 14px;
  background-color: #fff;
  font-size: 15px;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  transition: border 0.3s, box-shadow 0.3s;
}

.carryon-co2-widget select:focus,
.carryon-co2-widget input[type="number"]:focus,
.searchable-input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0,122,255,0.2);
  outline: none;
}

.carryon-co2-widget .calculate-btn {
  background-color: #000000;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 14px;
  margin-top: 10px;
  margin-right: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.carryon-co2-widget .calculate-btn:hover {
  background-color: #005fce;
}

/* Results - modern iOS card style */
.co2-result-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.result-card {
  flex: 1 1 calc(50% - 12px);
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 140px;
  animation: fadeInCard 0.3s ease-in-out;
}

.result-card .card-title {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  margin-bottom: 6px;
}

.result-card .card-value {
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.result-card.highlight {
  background: #e6f9f0;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Mobile scrolling for cards */
@media (max-width: 600px) {
 /* .co2-result-cards {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .result-card {
    flex: 0 0 80%;
    scroll-snap-align: center;
  }*/
  .carryon-co2-widget { width:100%; margin-right:0px;}
  #co2_result { width:100%; float:left;}
}


.searchable-wrapper {
  position: relative;
  margin-bottom: 12px;
}
.searchable-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-bottom: 5px;
}
.searchable-list {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  position: relative;
  z-index: 10;
}
.searchable-item {
  padding: 8px 10px;
  cursor: pointer;
}
.searchable-item:hover {
  background-color: #f0f0f0;
}
