/* ==== CRP / Rental overrides (rollback set) ==== */

/* Only hide classic ATC on rental products (when CRP box is present) */
body.product #crp-box ~ .product-prices + .product-add-to-cart .add-to-cart,
body.product #crp-box ~ .product-prices + .product-add-to-cart .product-quantity {
  display: none !important;
}

/* Ensure classic ATC is visible on normal products (no CRP box) */
body.product:not(:has(#crp-box)) .product-add-to-cart,
body.product:not(:has(#crp-box)) .product-add-to-cart .add-to-cart,
body.product:not(:has(#crp-box)) .product-add-to-cart .product-quantity {
  display: block !important;
}

/* CRP buttons look/states */
#crp-box .crp-btn {
  display: inline-block;
  padding: .625rem 1rem;
  border-radius: 4px;
  line-height: 1.2;
  cursor: pointer;
  border: 0;
  transition: opacity .15s ease, filter .15s ease;
  text-align: center;
  user-select: none;
}
#crp-box .crp-btn--primary { background:#25b9d7; color:#fff; }
#crp-box .crp-btn--outline  { background:#f5f5f5; color:#333; }

#crp-box .crp-btn.is-disabled,
#crp-box .crp-btn[disabled] {
  filter: grayscale(1);
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

/* date inputs layout */
#crp-box .crp-row { display:flex; gap:.5rem; flex-wrap:wrap; }

/* ---- Cart page: rental info tidy & prevent vertical letters ---- */
body#cart .crp-cart-lines,
body#order .crp-cart-lines {
  margin-top:.25rem;
  font-size:.9375rem;
}
body#cart .crp-cart-line,
body#order .crp-cart-line {
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap:.75rem;
  white-space: nowrap;           /* <– stops stacked characters */
}
body#cart .crp-cart-line .crp-k,
body#order .crp-cart-line .crp-k { color:#666; }
body#cart .crp-cart-line .crp-v,
body#order .crp-cart-line .crp-v { font-weight:600; }

/* fallback in case some theme rule set a writing-mode earlier */
body#cart .crp-cart-lines, body#order .crp-cart-lines { writing-mode: horizontal-tb; }

/* Mini tweaks */
.product-customization { margin-top:0; }
/* Verberg het 'Quantity' label */
.product-quantity .control-label { 
  display: none !important; 
}
/* Breek geen datum/waarden per karakter in de cart */
#cart .product-line-info,
#cart .label,
#cart .value,
.cart .product-line-info,
.cart .label,
.cart .value {
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* Op kleine schermen wel normale wrap toelaten */
@media (max-width: 768px) {
  #cart .product-line-info,
  .cart .product-line-info {
    white-space: normal !important;
  }
}

/* Optisch: waarden rechts uitlijnen in samenvatting */
#cart .cart-summary-line .value { text-align: right; }
/* Buttons module */
#crp-check, #crp-book { cursor: pointer; transition: opacity .2s ease; }
#crp-book.disabled, #crp-check.disabled,
#crp-book[disabled], #crp-check[disabled] {
  opacity: .45 !important;
  pointer-events: none !important;
}
/* PDP: verberg quantity-label en aanverwante rommel */
.product-quantity label,
#product-quantity-label,
.product-quantities { display: none !important; }

/* CART: CRP fee-regels (Huurkosten/Borg) niet bewerkbaar */
.cart-overview .cart-item.crp-fee .qty,
.cart-overview .cart-item.crp-fee .remove-from-cart { display: none !important; }
.cart-overview .cart-item.crp-fee .product-line-info .label a { pointer-events: none; text-decoration: none; }

/* CART: datum/meta in 1 nette regel */
.crp-cart-meta { margin-top: .35rem; font-size: 14px; line-height: 1.35; }
.crp-cart-meta .crp-row { display: flex; gap: .5rem; align-items: center; white-space: nowrap; }
.crp-cart-meta .crp-sep { margin: 0 .25rem; }

/* Zorg dat de rechter kolom niet wrapt in smalle stukjes */
.cart-overview .product-line-grid-right { max-width: 360px; }
/* CRP: samengestelde regel altijd op één lijn, goed leesbaar */
.crp-cartinfo-text { 
  display:block; 
  white-space: nowrap; 
  word-break: normal; 
  overflow-wrap: normal; 
  margin-top:.35rem; 
  font-size:14px; 
  line-height:1.35;
}

/* Fee-regels (Huurkosten/Borg): qty & prullenbak verbergen (reeds ok, houden zo) */
.cart-overview .cart-item.crp-fee .qty,
.cart-overview .cart-item.crp-fee .remove-from-cart { display:none !important; }

/* Banner bovenaan de cart */
.crp-cart-banner { 
  background:#e8f4fb; 
  border:1px solid #cce7f6; 
  color:#0b5c7a; 
  padding:.6rem .8rem; 
  border-radius:4px; 
  margin:10px 0 15px;
  font-size:14px;
}
/* Verberg de inline CRP-regel onder het product; banner blijft staan */
#cart .cart-overview .product-line-grid-body .crp-cartinfo-text{display:none!important;}
/* ==== CRP Cart polish ==== */

/* Verberg 'Quantity' label + spinner algemeen op de cart */
#cart .cart-overview .product-line-actions .qty input[type="number"]::-webkit-outer-spin-button,
#cart .cart-overview .product-line-actions .qty input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
#cart .cart-overview .product-line-actions .qty input[type="number"] {
  appearance: textfield;
}

/* Fee-regels (Huurkosten/Borg) onbewerkbaar + prullenbak weg */
#cart .cart-overview .cart-item.crp-fee .qty,
#cart .cart-overview .cart-item.crp-fee .cart-line-product-actions {
  visibility: hidden; /* behoudt layout, verbergt controls */
  height: 0;
}
#cart .cart-overview .cart-item.crp-fee .product-line-grid-right .price {
  float: right;
}

/* Nette info-banner bovenin de cart */
.crp-cart-banner{
  background:#e8f1ff;
  border:1px solid #cfe0ff;
  color:#003a8c;
  padding:10px 14px;
  border-radius:8px;
  margin:6px 0 14px 0;
  font-weight:600;
}

/* Samengevoegde datumregels (enkelvoudig, strak uitgelijnd) */
.crp-cart-meta{ margin-top:6px; font-size:14px; line-height:1.35; color:#333; }
.crp-cart-meta .crp-row{ display:block; }

/* Verticale/losse tekst verbergen die CRP soms injecteert in de right-col */
#cart .cart-overview .product-line-grid-right .product-line-info {
  display: none !important;
}

/* Verberg "Quantity" label-tekst die sommige thema's renderen */
#cart .cart-overview .product-line-actions .qty label,
#cart .cart-overview .product-line-grid-right .label {
  display: none !important;
}

/* Producttitel + verplaatste crp-cartinfo-text in brede kolom netjes */
#cart .cart-overview .product-line-grid-body .crp-cartinfo-text{
  display:block !important;
  margin-top:4px;
  font-size:14px;
  color:#222;
}

/* Buttons van CRP duidelijk disabled-staat geven */
.crp-btn.is-disabled,
.crp-btn[disabled]{
  opacity:.5; cursor:not-allowed;
}


