/* Sam drawer — post-add upsell (montaż, gwarancja) */

.tw-sam-error {
  margin: 0;
  padding: 10px 22px;
  font-size: 13px;
  line-height: 1.4;
  color: #8b1e1e;
  background: #fdecec;
  border-bottom: 1px solid #f5c4c4;
}

.tw-cart-drawer__body--configure {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 0;
}

.tw-sam-added {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--tw-line-soft, #ecefed);
}

.tw-sam-added__thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--tw-paper-2, #f4f7f5);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.tw-sam-added__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tw-sam-added__name {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.35;
  color: var(--tw-ink, #0b0f0d);
}

.tw-sam-added__meta {
  margin: 0;
  font-size: 13px;
  color: var(--tw-ink-muted, #5c6560);
}

.tw-sam-care {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 22px 12px;
}

.tw-sam-care__lead {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tw-mint-600, #1fb37c);
  margin: 0 0 14px;
}

.tw-sam-block {
  margin-bottom: 20px;
}

.tw-sam-block__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.tw-sam-block__num {
  font-family: var(--tw-mono, "IBM Plex Mono", monospace);
  font-size: 11px;
  color: var(--tw-ink-muted, #5c6560);
}

.tw-sam-block__title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.tw-sam-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tw-sam-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--tw-line-soft, #ecefed);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tw-sam-option:has(input:checked) {
  border-color: var(--tw-mint-500, #2bc88e);
  background: var(--tw-mint-050, #f1faf5);
}

.tw-sam-option.is-recommended {
  border-color: var(--tw-mint-400, #5fd4a8);
}

.tw-sam-option input {
  margin-top: 3px;
  accent-color: var(--tw-mint-600, #1fb37c);
  flex-shrink: 0;
}

.tw-sam-option__body {
  flex: 1;
  min-width: 0;
}

.tw-sam-option__label {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--tw-ink, #0b0f0d);
}

.tw-sam-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--tw-mint-600, #1fb37c);
  color: #fff;
}

.tw-sam-option__price {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--tw-ink, #0b0f0d);
}

.tw-sam-option__price--muted {
  font-weight: 500;
  color: var(--tw-ink-muted, #5c6560);
}

.tw-sam-footer {
  flex-shrink: 0;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--tw-line-soft, #ecefed);
  background: var(--tw-paper-2, #f4f7f5);
}

.tw-sam-breakdown {
  margin: 0 0 10px;
  font-size: 13px;
}

.tw-sam-breakdown__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.tw-sam-breakdown__row dt {
  color: var(--tw-ink-muted, #5c6560);
  font-weight: 400;
}

.tw-sam-breakdown__row dd {
  margin: 0;
  font-weight: 600;
}

.tw-sam-breakdown__row--discount dd {
  color: var(--tw-mint-600, #1fb37c);
}

.tw-sam-footer__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 14px;
  font-size: 14px;
}

.tw-sam-footer__total strong {
  font-size: 20px;
  font-weight: 700;
}

.tw-sam-footer__cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tw-sam-footer__cta .tw-btn.is-ghost {
  width: 100%;
  justify-content: center;
}

.tw-sam-footer__checkout {
  width: 100%;
  justify-content: center;
}

.tw-sam-footer__note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--tw-ink-muted, #5c6560);
}

/* PDP flush configurator */
.tw-flush-config {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--tw-line-soft, #ecefed);
  border-radius: 12px;
  background: #fff;
}

.tw-flush-config__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}

.tw-flush-config__hint {
  font-size: 13px;
  color: var(--tw-ink-muted, #5c6560);
  margin: 0 0 16px;
  line-height: 1.5;
}

.tw-flush-config__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.tw-flush-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--tw-line-soft, #ecefed);
  border-radius: 10px;
  cursor: default;
  height: 100%;
}

.tw-flush-card__img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 8px;
}

.tw-flush-card__name {
  font-size: 12px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.tw-flush-card__badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--tw-mint-600, #1fb37c);
}

.tw-flush-card__price {
  font-size: 12px;
  font-weight: 600;
}

.tw-flush-card__price del {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--tw-ink-muted, #5c6560);
}

.tw-flush-card__qty {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}

.tw-flush-card__step {
  width: 28px;
  height: 28px;
  border: 1px solid var(--tw-line-soft, #ecefed);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.tw-flush-card__input {
  width: 36px;
  text-align: center;
  border: 0;
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  -moz-appearance: textfield;
}

.tw-flush-config__note {
  margin: 12px 0 0;
  font-size: 12px;
  color: #b45309;
}

.tw-pdp-configurator:empty {
  display: none;
}

/* Cart / drawer recommendations */
.tw-sam-recs {
  margin: 0 22px 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--tw-mint-050, #f1faf5);
  border: 1px solid var(--tw-mint-200, #b8ebd4);
}

.tw-sam-recs__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tw-ink, #0b0f0d);
}

.tw-sam-recs__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tw-sam-recs__item {
  padding: 10px 0;
  border-top: 1px solid rgba(11, 15, 13, 0.08);
}

.tw-sam-recs__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.tw-sam-recs__product {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
}

.tw-sam-recs__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tw-sam-recs__btn {
  font-size: 12px;
  padding: 8px 12px;
}

.tw-sam-recs__hint {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--tw-ink-muted, #5c6560);
}
