/* Standalone ready-bundle module. Every rule is scoped to .rb-module. */
.rb-module {
  --rb-primary: #0577ac;
  --rb-primary-dark: #05608b;
  --rb-heading: #214650;
  --rb-text: #4b6470;
  --rb-muted: #60757d;
  --rb-border: #dce8ec;
  --rb-page: #f3f8fa;
  --rb-green: #537731;
  --rb-soft-green: #edf4e6;
  margin: 30px 0;
  color: var(--rb-heading);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.rb-module,
.rb-module * {
  box-sizing: border-box;
}

.rb-module [hidden] {
  display: none !important;
}

.rb-module .rb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}

.rb-module .rb-intro {
  flex: 1 1 340px;
  min-width: 0;
}

.rb-module .rb-card-brand {
  margin: 0 0 6px;
  color: var(--rb-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}

.rb-module .rb-heading {
  margin: 0;
  color: var(--rb-heading);
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  text-transform: none;
  overflow-wrap: anywhere;
}

.rb-module .rb-size-label {
  display: flex;
  flex: 0 1 170px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  color: var(--rb-heading);
  font-size: 14px;
  font-weight: 600;
}

.rb-module .rb-size {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 44px;
  padding: 10px 32px 10px 14px;
  border: 1px solid var(--rb-border);
  border-radius: 10px;
  color: var(--rb-heading);
  background: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
}

.rb-module .rb-status {
  margin: 0 0 16px;
  color: var(--rb-text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.rb-module .rb-status:empty {
  margin-bottom: 0;
}

.rb-module .rb-status.rb-error {
  padding: 12px 14px;
  border: 1px solid #efcfca;
  border-radius: 10px;
  color: #a7332e;
  background: #fff6f4;
}

.rb-module .rb-success {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #d3e2c4;
  border-radius: 12px;
  color: var(--rb-green);
  background: var(--rb-soft-green);
  overflow-wrap: anywhere;
}

.rb-module .rb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}

.rb-module .rb-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--rb-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(33, 70, 80, .035);
}

.rb-module .rb-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.rb-module .rb-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rb-primary);
}

.rb-module .rb-icon {
  display: block;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rb-module .rb-size-badge {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  padding: 6px 11px;
  border-radius: 7px;
  color: var(--rb-primary);
  background: #e9f5fb;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.rb-module .rb-card-title {
  margin: 0 0 18px;
  color: var(--rb-heading);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  text-transform: none;
  overflow-wrap: anywhere;
}

.rb-module .rb-products {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.rb-module .rb-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.rb-module .rb-product-image {
  display: block;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  padding: 3px;
  border: 1px solid #edf2f4;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
}

.rb-module .rb-product-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.rb-module .rb-product-name {
  display: block;
  color: var(--rb-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.rb-module .rb-product-count {
  display: block;
  margin-top: 4px;
  color: var(--rb-muted);
  font-size: 12px;
  line-height: 1.45;
}

.rb-module .rb-summary {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e8eff2;
}

.rb-module .rb-count {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 9px;
  border-radius: 7px;
  color: var(--rb-green);
  background: var(--rb-soft-green);
  font-size: 13px;
  font-weight: 600;
}

.rb-module .rb-total-label {
  display: block;
  margin-bottom: 2px;
  color: var(--rb-muted);
  font-size: 12px;
}

.rb-module .rb-total {
  display: block;
  margin: 0;
  color: var(--rb-heading);
  font-size: 29px;
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.rb-module .rb-unavailable {
  margin: 0 0 18px;
  color: var(--rb-muted);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.rb-module .rb-card-unavailable .rb-actions {
  margin-top: auto;
}

.rb-module .rb-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.rb-module .rb-add,
.rb-module .rb-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--rb-primary);
  border-radius: 10px;
  color: #fff;
  background: var(--rb-primary);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  touch-action: manipulation;
}

.rb-module .rb-add {
  width: 100%;
}

.rb-module .rb-retry {
  margin: 0 0 18px;
}

.rb-module .rb-add:hover,
.rb-module .rb-retry:hover {
  border-color: var(--rb-primary-dark);
  background: var(--rb-primary-dark);
}

.rb-module .rb-add:disabled,
.rb-module .rb-retry:disabled,
.rb-module .rb-size:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.rb-module .rb-customize,
.rb-module .rb-cart-link {
  color: var(--rb-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.rb-module .rb-customize {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px;
  font-size: 14px;
  text-align: center;
}

.rb-module a[aria-disabled="true"] {
  opacity: .6;
  cursor: not-allowed;
}

.rb-module :is(button, select, a):focus-visible {
  outline: 3px solid var(--rb-primary) !important;
  outline-offset: 3px;
}

.rb-module .rb-noscript {
  margin: 20px 0 0;
  color: var(--rb-text);
  font-size: 14px;
  line-height: 1.6;
}

/* The delivery content comes from the existing trusted server-side partial. */
.rb-module .rb-delivery {
  margin-top: 14px;
}

.rb-module .rb-delivery:empty {
  display: none;
}

.rb-module .niksi-delivery-progress {
  padding: 12px;
  border: 1px solid var(--rb-border);
  border-radius: 10px;
  background: var(--rb-page);
}

.rb-module .niksi-delivery-title {
  margin: 0 0 9px;
  color: var(--rb-heading);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.rb-module .niksi-delivery-track {
  height: 6px;
  overflow: hidden;
  border-radius: 10px;
  background: #dfe9df;
}

.rb-module .niksi-delivery-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--rb-green);
}

.rb-module .niksi-delivery-note {
  margin: 8px 0 0;
  color: var(--rb-muted);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 991px) {
  .rb-module .rb-grid {
    grid-template-columns: 1fr;
  }

  .rb-module .rb-card {
    padding: 20px;
  }
}

@media (max-width: 479px) {
  .rb-module .rb-size-label {
    flex-basis: 100%;
  }

  .rb-module .rb-card {
    padding: 16px;
  }

  .rb-module .rb-heading {
    font-size: 25px;
  }

  .rb-module .rb-card-title {
    font-size: 21px;
  }

  .rb-module .rb-product-image {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
  }
}
