/* ========================================= */
/* --- KARTA PRODUKTU (GRID) - BEZ ZMIAN --- */
/* ========================================= */
.fbt-box-container {
  background: #fff;
  border: 1px solid #e1e1e1;
  margin: 5px 0;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  overflow: hidden;
}

.fbt-header-strip {
  background: #fff;
  padding: 25px 20px 15px;
  text-align: left;
  position: relative;
  z-index: 2;
  border-bottom: none;
}

.fbt-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #222;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.fbt-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #ea7404;
  position: absolute;
  bottom: 0;
  left: 0;
}

.fbt-grid-wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
  border-top: 1px solid #f1f1f1;
}

.fbt-product-cell {
  flex: 1;
  width: 33.33%;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid #f1f1f1;
  position: relative;
}

.fbt-product-cell:last-child {
    border-right: none;
}

.fbt-img-wrap {
  height: 120px !important; 
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 10px;
  padding: 5px !important;
  box-sizing: border-box;
  overflow: hidden;
}

.fbt-img-wrap a {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none;
}

.fbt-img-wrap img {
  min-width: 0 !important;
  min-height: 0 !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important; 
  margin: 0 auto !important;
  display: block !important;
  border: none !important;
}

.fbt-plus-absolute {
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  z-index: 10;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 2px 3px rgba(0,0,0,0.05);
}

.fbt-badge {
  font-size: 9px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.fbt-name {
  font-size: 11px;
  line-height: 1.3;
  height: 30px;
  overflow: hidden;
  text-align: center;
  margin: 0 0 8px;
  padding: 0 5px;
  width: 100%;
}

.fbt-name a {
  color: #333;
  text-decoration: none;
}
.fbt-name a:hover {
  color: #ea7404;
}

.fbt-price {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-top: auto;
}

.fbt-summary-cell {
  width: 240px;
  min-width: 240px;
  background: #fcfcfc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  border-left: none;
  flex-shrink: 0;
}

.fbt-total-label {
  font-size: 9px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 3px;
  letter-spacing: 0.5px;
}

.fbt-total-val {
  font-size: 22px;
  font-weight: 700;
  color: #ea7404;
  margin-bottom: 12px;
}

.fbt-btn-action {
  background-color: #ea7404 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 3px !important;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 11px;
  padding: 10px 15px;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s;
}

.fbt-btn-action:hover {
  background-color: #333 !important;
}

/* ================================================= */
/* --- MODAL STYLES (Wersja Finalna: Delicate) --- */
/* ================================================= */

#fbt-modal .modal-content {
    border: none;
    border-radius: 4px; /* Subtelne zaokrąglenie */
    box-shadow: 0 15px 50px rgba(0,0,0,0.15); /* Miękki cień */
    overflow: hidden;
}

/* HEADER - Czysty i przestronny */
#fbt-modal .modal-header {
    background: #fff;
    border-bottom: 1px solid #f9f9f9;
    padding: 30px 20px 20px;
    text-align: center;
    position: relative;
    display: block;
}

#fbt-modal .modal-title {
    font-size: 18px;
    font-weight: 600; /* Nie za grubo */
    color: #222;
    text-transform: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin: 0 auto;
}

/* IKONA SUKCESU (Sam ptaszek, większy) */
.fbt-success-icon-large {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    color: #ea7404; /* Pomarańczowy */
    display: inline-flex;
    font-size: 28px; /* Nieco większy niż tekst */
    box-shadow: none;
    margin: 0;
}

/* Przycisk zamknięcia */
#fbt-modal .close {
    position: absolute;
    right: 20px;
    top: 20px;
    opacity: 0.3;
    font-size: 24px;
    z-index: 10;
    font-weight: 300;
    color: #000;
    transition: opacity 0.2s;
}
#fbt-modal .close:hover {
    opacity: 1;
}

/* BODY - Lista produktów */
#fbt-modal .modal-body {
    padding: 0;
    background: #fff;
}

.fbt-modal-products-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 5px 40px 15px; /* Większy margines po bokach dla oddechu */
}

.fbt-modal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0; /* Więcej miejsca między produktami */
    border-bottom: 1px solid #f5f5f5;
}

.fbt-modal-item:last-child {
    border-bottom: none;
}

.fbt-modal-item-left {
    display: flex;
    align-items: center;
    gap: 20px; /* Większy odstęp zdjęcia od tekstu */
}

.fbt-modal-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border: none;
    padding: 0;
    background: #fff;
}

/* NAZWA PRODUKTU - KLUCZOWA ZMIANA */
.fbt-modal-name {
    font-size: 14px; /* Nieco większa czytelność */
    font-weight: 400; /* Normalna waga */
    color: #333;
    line-height: 1.4;
    text-transform: none !important; /* WYMUSZENIE BRAKU DUŻYCH LITER */
    max-width: 300px;
}

/* CENA - Subtelna */
.fbt-modal-price {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
    margin-left: 20px;
}

/* PODSUMOWANIE - Minimalistyczne */
.fbt-modal-total-info {
    background: #fff; /* Białe tło, bez odcinania kolorem */
    border-top: 1px solid #f0f0f0;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
}

.fbt-modal-total-label {
    font-size: 12px;
    color: #888; /* Jasnoszary label */
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

.fbt-modal-total-value {
    font-size: 24px;
    font-weight: 700;
    color: #ea7404;
}

/* FOOTER */
#fbt-modal .modal-footer {
    background: #fff;
    border-top: none;
    padding: 0 40px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Przycisk Kontynuuj */
#fbt-modal .btn-secondary {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #666;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 4px;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}
#fbt-modal .btn-secondary:hover {
    border-color: #ccc;
    color: #222;
}

/* Przycisk Realizuj */
#fbt-modal .btn-primary {
    background: #ea7404;
    border: none;
    color: #fff;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    padding: 16px 40px; /* Większy przycisk */
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(234, 116, 4, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}
#fbt-modal .btn-primary:hover {
    background: #d36a04;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(234, 116, 4, 0.35);
}

/* --- MOBILE --- */
@media (max-width: 991px) {
  .fbt-grid-wrapper { flex-direction: column; }
  .fbt-product-cell { 
    width: 100%; flex-direction: row; border-right: none; border-bottom: 1px solid #eee; text-align: left; padding: 10px 15px; 
  }
  .fbt-plus-absolute { display: none; }
  .fbt-img-wrap { 
    width: 60px !important; height: 60px !important; margin-right: 15px; margin-bottom: 0; padding: 0 !important; 
  }
  .fbt-name { text-align: left; height: auto; margin-bottom: 2px; }
  .fbt-summary-cell { width: 100%; padding: 15px; border-top: 1px solid #eee; }
  
  /* Modal Mobile */
  #fbt-modal .modal-footer { flex-direction: column; padding: 20px 20px 30px;}
  #fbt-modal .btn-primary, #fbt-modal .btn-secondary { width: 100%; justify-content: center; }
  .fbt-modal-total-info { flex-direction: column; align-items: center; gap: 5px; text-align: center; padding: 20px; }
  .fbt-modal-item { padding: 10px 0; }
  .fbt-modal-name { max-width: 200px; font-size: 12px; }
  .fbt-modal-products-list { padding: 5px 20px 15px; }
}
/* BIGBIO individual add-ons. Shared by product card and cart confirmation. */
.bb-addons{margin:18px 0 0;padding:14px 0 0;border-top:1px solid #e8eaed;color:#202326;min-width:0}
.bb-addons .bb-addons-title{font-size:17px;line-height:1.3;font-weight:700;text-transform:none;letter-spacing:0;margin:0 0 10px;padding:0;text-align:left}
.bb-addons .bb-addons-list{display:grid;gap:0}
.bb-addons .bb-addon{display:grid;grid-template-columns:48px minmax(0,1fr) auto 88px;align-items:center;gap:8px 12px;border-bottom:1px solid #edf0f2;padding:9px 0;min-width:0;background:#fff}
.bb-addons .bb-addon:last-child{border-bottom:0}
.bb-addons .bb-addon-image{display:block;height:48px;width:48px}
.bb-addons .bb-addon-image img{display:block;width:100%;height:100%;object-fit:contain}
.bb-addons .bb-addon-info{min-width:0;line-height:1.4}
.bb-addons .bb-addon-name{display:block;font-size:13px;font-weight:400;line-height:1.4;text-transform:none;color:#252a2f;text-decoration:none;overflow-wrap:anywhere}
.bb-addons .bb-addon-name:hover{text-decoration:underline;color:#c75b00}
.bb-addons .bb-addon-min{display:block;font-size:11px;color:#6b7076}
.bb-addons .bb-addon-price{font-size:14px;line-height:1.4;color:#1e252a;white-space:nowrap}
.bb-addons .bb-addon-form{margin:0;padding:0;border:0;min-width:0}
.bb-addons .bb-addon-button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:38px;border:1px solid #ff7900;border-radius:4px;background:#fff;color:#d66200;font-size:13px;line-height:1.2;font-weight:500;padding:8px 9px;cursor:pointer;text-transform:none;letter-spacing:0;box-shadow:none;text-decoration:none}
.bb-addons .bb-addon-button:hover{background:#fff4e9;color:#ba5200}
.bb-addons .bb-addon-button:disabled{opacity:.65;cursor:wait}
.bb-addons .bb-addon-button i{font-size:20px;line-height:1;margin:0}
.bb-addons .bb-addon-button:focus-visible{outline:2px solid #c65c00;outline-offset:3px}
.bb-addons .bb-addon-status{grid-column:2/-1;margin:0;color:#23702f;font-size:12px;line-height:1.5}
.bb-addons .bb-addon-status.is-error{color:#a52828}
.bb-addons [hidden]{display:none!important}
#blockcart-modal .bb-addons{margin:10px 0;padding:12px 16px}
@media(max-width:575px){
 .bb-addons .bb-addon{grid-template-columns:42px minmax(0,1fr) 82px;gap:3px 9px;padding:9px 0}
 .bb-addons .bb-addon-image{grid-row:1/3;width:42px;height:48px}
 .bb-addons .bb-addon-info{grid-column:2;grid-row:1}
 .bb-addons .bb-addon-price{grid-column:2;grid-row:2;font-size:14px}
 .bb-addons .bb-addon-form,.bb-addons .bb-addon>.bb-addon-button{grid-column:3;grid-row:1/3}
 .bb-addons .bb-addon-button{min-height:42px;padding:9px 7px}
 .bb-addons .bb-addon-status{grid-row:3;grid-column:1/-1}
}

/* BIGBIO V4b: two individually selectable products, side by side. */
.bb-addons .bb-addons-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.bb-addons .bb-addon{grid-template-columns:54px minmax(0,1fr) 44px;grid-template-rows:1fr auto;align-items:start;gap:8px 10px;padding:12px;border:1px solid #e8eaed;border-radius:5px}
.bb-addons .bb-addon:last-child{border-bottom:1px solid #e8eaed}
.bb-addons .bb-addon-image{grid-column:1;grid-row:1/3;width:54px;height:74px;align-self:center}
.bb-addons .bb-addon-info{grid-column:2/4;grid-row:1}
.bb-addons .bb-addon-name{font-size:12px;line-height:1.45;text-transform:uppercase;font-weight:500}
.bb-addons .bb-addon-price{grid-column:2;grid-row:2;align-self:center;font-size:14px}
.bb-addons .bb-addon-form,.bb-addons .bb-addon>.bb-addon-button{grid-column:3;grid-row:2;align-self:center}
.bb-addons .bb-addon-button{width:44px;height:44px;min-height:44px;padding:0;background:#ff7900;color:#fff;border-color:#ff7900;gap:0}
.bb-addons .bb-addon-button:hover{background:#df6800;border-color:#df6800;color:#fff}
.bb-addons .bb-addon-button i{font-size:23px}
.bb-addons .bb-addon-button:disabled i{opacity:.6}
.bb-addons .bb-addon-button .bb-addon-button-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.bb-addons .bb-addon-choice{grid-column:2/4!important;grid-row:3!important;width:auto;height:36px;min-height:36px;background:#fff;color:#c45a00;font-size:12px;padding:4px 8px;gap:5px;justify-self:end}
.bb-addons .bb-addon-status{grid-column:1/-1;grid-row:4}
@media(min-width:768px) and (max-width:1100px),(max-width:575px){
 .bb-addons .bb-addons-list{gap:10px}
 .bb-addons .bb-addon{grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:72px 1fr auto;gap:8px;padding:10px}
 .bb-addons .bb-addon-image{grid-column:1/-1;grid-row:1;width:100%;height:72px}
 .bb-addons .bb-addon-info{grid-column:1/-1;grid-row:2}
 .bb-addons .bb-addon-name{font-size:11px;line-height:1.4}
 .bb-addons .bb-addon-price{grid-column:1;grid-row:3;font-size:13px}
 .bb-addons .bb-addon-form,.bb-addons .bb-addon>.bb-addon-button{grid-column:2;grid-row:3}
 .bb-addons .bb-addon-choice{grid-column:1/-1!important;grid-row:4!important}
 .bb-addons .bb-addon-status{grid-row:5}
}
