.catalogueProduct .buyRow {gap:20px;}
.catalogueProduct .buyRow button:disabled {cursor:default;opacity:.5;}
#mobilePurchaseBar[hidden] {display:none;}
#mobilePurchaseBar .purchaseItem {display:none;}
body:has(dialog[open]) #mobilePurchaseBar {visibility:hidden;}

@media (min-width:768px) {
  #mobilePurchaseBar {
    position:fixed;inset:auto 0 0;z-index:60;
    box-sizing:border-box;height:82px;padding:15px;
    display:flex;align-items:center;gap:10px;
    color:#282728;background:#fff;border-block:1px solid #eee;
    box-shadow:0 -3px 10px rgba(0,0,0,.05);
    font:400 14px/21px Arimo,Arial,sans-serif;
  }
  #mobilePurchaseBar .purchaseItem {
    flex:1;min-width:0;display:flex;align-items:center;gap:16px;
  }
  .purchaseItemPhoto {width:50px;height:50px;object-fit:contain;flex:none;}
  .purchaseItemText {flex:1;min-width:0;overflow:hidden;}
  .purchaseItemTitle {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#333;}
  .purchaseItemPrice {display:flex;gap:10px;white-space:nowrap;color:#d22d24;}
  .purchaseItemPrice del {color:#999;}
  #mobilePurchaseBar .mobilePurchaseOptions,
  #mobilePurchaseBar .mobilePurchaseActions {display:flex;align-items:center;gap:10px;}
  #mobilePurchaseBar .mobilePurchaseOptions {min-width:0;}
  #mobilePurchaseVariant {
    min-width:118px;max-width:min(23vw,390px);height:48px;
    padding:0 16px;color:inherit;background:white;border:1px solid #d4d4d4;
    font:inherit;text-overflow:ellipsis;
  }
  #mobilePurchaseBar .mobilePurchaseStepper {
    box-sizing:border-box;width:144px;height:48px;
    display:grid;grid-template-columns:1fr 50px 1fr;border:1px solid #d4d4d4;flex:none;
  }
  #mobilePurchaseBar .mobilePurchaseStepper :is(input,button) {
    min-width:0;width:100%;padding:0;border:0;background:white;color:inherit;
    font:inherit;text-align:center;appearance:textfield;
  }
  #mobilePurchaseBar .mobilePurchaseStepper button {position:relative;font-size:0;}
  #mobilePurchaseBar .mobilePurchaseStepper button::before,
  #mobilePurchaseBar .mobilePurchaseStepper [data-quantity-step="1"]::after {
    content:"";position:absolute;top:50%;left:50%;width:15px;height:1px;
    background:currentColor;transform:translate(-50%,-50%);
  }
  #mobilePurchaseBar .mobilePurchaseStepper [data-quantity-step="1"]::after {
    width:1px;height:15px;
  }
  #mobilePurchaseBar .mobilePurchaseStepper input::-webkit-inner-spin-button {appearance:none;}
  #mobilePurchaseBar .mobilePurchaseActions button {
    width:116px;height:48px;padding:0 12px;font:inherit;white-space:nowrap;
  }
  #mobilePurchaseAdd {color:#282728;background:#f3fe33;border:1px solid #282728;}
  #mobilePurchaseBuy {color:white;background:#405de6;border:0;}
  #mobilePurchaseBar .mobilePurchaseActions button:disabled {opacity:.5;cursor:default;}
  body:has(#mobilePurchaseBar:not([hidden])) footer {padding-bottom:82px;}
  body:has(#mobilePurchaseBar:not([hidden])) .trustBadge {visibility:hidden;}
  body:has(#mobilePurchaseBar:not([hidden])) #storeContactTrigger {z-index:61;}
}

@media (max-width:767px) {
  .catalogueProduct .buyRow {gap:15px;}
  #mobilePurchaseBar {
    position:fixed;
    z-index:60;
    inset:auto 0 0;
    box-sizing:border-box;
    padding:15px 15px calc(15px + env(safe-area-inset-bottom));
    background:white;
    border-top:1px solid #eaeaea;
    padding-top:14px;
    color:#282728;
    font:400 14px/1.4 Arimo,Arial,sans-serif;
  }
  #mobilePurchaseBar .mobilePurchaseOptions,
  #mobilePurchaseBar .mobilePurchaseActions {
    display:grid;
    gap:10px;
    grid-template-columns:minmax(0,1fr) 122px;
  }
  #mobilePurchaseBar .mobilePurchaseOptions:has(select[hidden]) {display:flex;justify-content:flex-end;}
  #mobilePurchaseBar .mobilePurchaseActions {
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin-top:15px;
  }
  #mobilePurchaseBar :is(select, button, input) {
    margin:0;
    border-radius:0;
    color:inherit;
    background:white;
    font:inherit;
  }
  #mobilePurchaseVariant {
    width:100%;
    min-width:0;
    height:48px;
    padding:0 9px;
    border:1px solid #ccc;
    text-overflow:ellipsis;
  }
  #mobilePurchaseBar .mobilePurchaseStepper {
    display:grid;
    grid-template-columns:1fr 28px 1fr;
    width:122px;
    height:48px;
    box-sizing:border-box;
    border:1px solid #ccc;
  }
  #mobilePurchaseBar .mobilePurchaseStepper :is(button,input) {min-width:0;border:0;text-align:center;padding:0;}
  #mobilePurchaseBar .mobilePurchaseStepper button {font-size:20px;}
  #mobilePurchaseBar .mobilePurchaseStepper input {width:100%;appearance:textfield;-moz-appearance:textfield;}
  #mobilePurchaseBar .mobilePurchaseStepper input::-webkit-inner-spin-button {appearance:none;}
  #mobilePurchaseBar .mobilePurchaseActions button {min-width:0;height:48px;padding:0 4px;}
  #mobilePurchaseBar #mobilePurchaseAdd {border:1px solid #282728;background:#f3fe33;color:#282728;}
  #mobilePurchaseBar #mobilePurchaseBuy {border:1px solid #405de6;background:#405de6;color:white;}
  #mobilePurchaseBar .mobilePurchaseActions button:disabled {opacity:.5;cursor:default;}
  body:has(#mobilePurchaseBar:not([hidden])) footer {padding-bottom:calc(141px + env(safe-area-inset-bottom));}
}
