/* Container */
#config-summary {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Header */
#config-summary .config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  margin-bottom: 20px;
  background: #737373;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

/* Cards */
#config-summary .config-card {
  border-bottom: 1px solid #999;
  padding: 5px;
  margin-bottom: 2px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 14px;
  color: #333;
}

/* Card label and value */
#config-summary .config-label {
  font-weight: 400;
  color: #333;
  flex: 1 1 40%;
  margin-bottom: 4px;
}

#config-summary .config-value {
  flex: 1 1 55%;
  text-align: right;
  color: #333;
  white-space: pre-wrap;
}

#config-summary .config-card.total-card .config-label {
  font-weight: 700;
  color: #333;
  border-bottom: none !important;
}

#config-summary .config-card.total-card .config-value {
  font-weight: 700;
  color: #333;
  border-bottom: none !important;
}

#config-summary .config-image-wrap {
  width: 100%;
  overflow: hidden;
  margin-bottom: 1px;
}

#config-summary .config-product-image {
  max-width: 100%;
  height: auto;
  display: block;
}

.config-card .config-value li,
.config-card .config-value ul {
  padding: 2px;
  margin: 0;
}

/* IMAGE CONTAINER */
#config-image {
  width: 100%;
  margin-bottom: 1px;
}

/* CROP FRAME */
#config-image .config-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-image: linear-gradient(to top, #999, #666) !important;
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: brightness(1.15) contrast(0.9);
}

#config-image .config-image-inner {
  width: 100%;
}

/* IMAGE */
#config-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 768px) {
  #config-image .config-image-wrap {
    aspect-ratio: auto;
    filter: brightness(1.15) contrast(0.9);
  }

  #config-image img {
    height: auto;
    object-fit: contain;
  }
  #config-image .config-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
  }
}

#config-summary .config-cart-btn {
  margin-top: 35px;
  margin-right: 0;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  background-color: #ff7a00; /* Shopify-ish */
  color: #fff;
  border: 1px solid #ff7a00;
  cursor: pointer;
  transition: background 0.2s;
}

#config-summary .config-cart-btn:hover {
  background-color: #fff;
  color: #ff7a00;
}

/* Buttons */

#config-summary .config-amend-btn,
#config-summary .config-share-btn {
  margin-top: 35px;
  margin-right: 3px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #737373;
  border-radius: 8px;
  background-color: #737373;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

#config-summary .config-btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

#config-summary .config-cart-btn {
  margin-left: auto;
}

#config-summary .config-amend-btn:hover,
#config-summary .config-share-btn:hover {
  color: #333;
  background-color: #fff;
  border: 1px solid #8f8f8f;
}

.config-value ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.config-value li {
  margin: 0;
  padding: 2px 0;
}
