/* ==========================================================================
   eDelikatesy - Dárkové balení celé objednávky (košík + detail produktu)
   Logika: js/darkove-baleni.js
   ========================================================================== */

/* Společné: fotka a text */
.gift-wrap-photo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}
.gift-wrap-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 1.45; }
.gift-wrap-text strong { font-size: 15px; }

/* Košík: zaškrtávací box */
.gift-wrap-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 24px;
  padding: 14px 18px 14px 16px;
  border: 2px solid #e3d3b2;
  border-radius: 10px;
  background: #fbf7ef;
  color: #333;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color .2s, background .2s, opacity .2s;
}
.gift-wrap-box:hover { border-color: #BD903E; color: #333; }
.gift-wrap-box.is-active { border-color: #BD903E; background: #f6edda; }
.gift-wrap-box.is-loading { opacity: .55; pointer-events: none; }

.gift-wrap-check {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 2px solid #BD903E;
  border-radius: 5px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
}
.gift-wrap-check i { visibility: hidden; }
.gift-wrap-box.is-active .gift-wrap-check { background: #BD903E; }
.gift-wrap-box.is-active .gift-wrap-check i { visibility: visible; }

.gift-wrap-price { flex: 0 0 auto; font-weight: 700; font-size: 16px; white-space: nowrap; }

@media (max-width: 480px) {
  .gift-wrap-box { flex-wrap: wrap; gap: 10px 12px; margin-top: 20px; }
  .gift-wrap-photo { flex-basis: 52px; width: 52px; height: 52px; }
  .gift-wrap-text { flex-basis: calc(100% - 100px); }
  .gift-wrap-price { margin-left: 34px; }
}

/* Řádek balení v tabulce košíku */
.gift-wrap-row .cart-p-image a { cursor: default; }
.gift-wrap-row .cart-p-image img { object-fit: cover; border-radius: 8px; }
.gift-wrap-qty { white-space: nowrap; }

/* Detail produktu: informační box nad cenou */
.gift-wrap-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 18px;
  padding: 12px 16px 12px 12px;
  border: 1px solid #e3d3b2;
  border-radius: 10px;
  background: #fbf7ef;
  color: #333;
}
.gift-wrap-info .gift-wrap-text strong i { color: #BD903E; margin-right: 4px; }
