/**
 * CyliumDev - stephane@cyliumdev.fr
 * cyliumpseudopack front styles - theme agnostic (Classic + Hummingbird).
 * No aggressive hardcoded colors: inherits the theme palette via currentColor.
 */
.cylium-pseudopack {
  margin: 0.5rem 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.cylium-pseudopack__pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem 0.5rem;
  margin: 0;
}

.cylium-pseudopack__label {
  opacity: 0.7;
}

.cylium-pseudopack__sum {
  text-decoration: line-through;
  font-weight: 600;
}

.cylium-pseudopack__badge {
  display: inline-block;
  padding: 0.1em 0.6em;
  border: 1px solid currentColor;
  border-radius: 2em;
  font-weight: 700;
  font-size: 0.85em;
  white-space: nowrap;
}

.cylium-pseudopack__details {
  margin-top: 0.375rem;
}

.cylium-pseudopack__summary {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  opacity: 0.8;
}

.cylium-pseudopack__summary:hover,
.cylium-pseudopack__summary:focus {
  opacity: 1;
  text-decoration: underline;
}

.cylium-pseudopack__items {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.cylium-pseudopack__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0;
  border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}

.cylium-pseudopack__item:last-child {
  border-bottom: 0;
}

.cylium-pseudopack__thumb {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  max-width: 48px;
  object-fit: contain;
  border: 1px solid rgba(128, 128, 128, 0.25);
  border-radius: 0.25rem;
  background: #fff;
}

.cylium-pseudopack__item-body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
}

.cylium-pseudopack__qty {
  font-weight: 600;
  white-space: nowrap;
}

.cylium-pseudopack__name {
  color: inherit;
}

.cylium-pseudopack__combination {
  opacity: 0.7;
  font-size: 0.85em;
}

.cylium-pseudopack__item-price {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 600;
}

.cylium-pseudopack__total {
  margin: 0.5rem 0 0;
  opacity: 0.85;
}

/* ---------------------------------------------------------------------------
 * Native widget ({widget name='cyliumpseudopack' action='list'}).
 * Lives in this stylesheet rather than pseudopack-widget.css — that one covers
 * the Creative Elements widget (.cpp-ce-pack) and is not registered on the
 * front, so widget markup placed in a theme template would render unstyled.
 * Roomier than the .cylium-pseudopack block: the widget is meant for a tab or a
 * full-width section, not the narrow buy column.
 * ------------------------------------------------------------------------ */
.cpp-widget {
  font-size: 0.9375rem;
  line-height: 1.45;
}

.cpp-widget__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.cpp-widget__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cpp-widget__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}

.cpp-widget__item:last-child {
  border-bottom: 0;
}

.cpp-widget__thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  max-width: 56px;
  object-fit: contain;
  border: 1px solid rgba(128, 128, 128, 0.25);
  border-radius: 0.25rem;
  background: #fff;
}

.cpp-widget__qty {
  flex: 0 0 auto;
  font-weight: 600;
  white-space: nowrap;
}

.cpp-widget__label {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
}

.cpp-widget__name {
  color: inherit;
}

.cpp-widget__variant {
  opacity: 0.7;
  font-size: 0.85em;
}

.cpp-widget__item-price {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 600;
}

.cpp-widget__item-unit-price {
  display: block;
  opacity: 0.7;
  font-weight: 400;
  font-size: 0.85em;
}

.cpp-widget__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(128, 128, 128, 0.35);
}

.cpp-widget__sum-label {
  opacity: 0.7;
}

.cpp-widget__sum {
  text-decoration: line-through;
  font-weight: 600;
}

.cpp-widget__real {
  font-weight: 700;
}

.cpp-widget__saving {
  display: inline-block;
  padding: 0.1em 0.6em;
  border: 1px solid currentColor;
  border-radius: 2em;
  font-weight: 700;
  font-size: 0.85em;
  white-space: nowrap;
}
