/*

SHOPIFY OVERRIDE
not sorry

*/

/*

CART and toggle
this remains an iframe, so internal styles to the iframe are in shopify.js

*/

.shopify-buy-frame--cart {
  left: 0 !important;
  right: auto !important;
  transform: translateX(-100%) !important;
  -webkit-transform: translateX(-100%) !important;
  /* increase to cover 10px of awful irremovable shadow bs */
  width: calc(100% + 10px) !important;
  max-width: calc(100% + 10px) !important;
}

@media screen and (min-width: 475px) { /* optical breakpoint */
  .shopify-buy-frame--cart {
    max-width: 375px !important;
    border-right: 1px solid #111;
  }
}

.shopify-buy-frame--cart.is-active {
  /* translate to cover 10px of awful irremovable shadow bs */
  transform: translateX(-0.625rem) !important;
  -webkit-transform: translateX(-0.625rem) !important;
}

/* little cart icon, small screens */
.shopify-buy-frame--toggle {
  top: auto !important;
  right: 0.5rem !important; /* mirror filter */
  left: auto !important;
  bottom: 1px !important;
  transform: scale(0.85) !important; /* override weird default translation */
  -webkit-transform: scale(0.85) !important; /* override weird default translation */
}

/* cart icon desktop variation */
@media screen and (min-width: 800px) {
  .shopify-buy-frame--toggle {
    top: auto !important;
    right: 26px !important; /* centre of icon matches centre of morsels logo */
    left: auto !important;
    bottom: 15px !important; /* optical */
    transform: scale(1) !important; /* override weird default translation */
    -webkit-transform: scale(1) !important; /* override weird default translation */
  }
}


/*

BUY BUTTON and wrapper(s);
nb this is ejected from the default iframe
see https://shopify.github.io/buy-button-js/advanced/#custom-styling-without-iframes

*/

/* improve button behaviour*/
.shopify-buy-frame--product {
  width: 100%;
  max-width: 100% !important;
}

.shopify-buy__btn-wrapper {
  margin-top: 0;
  display: inline-block;
}

.shopify-buy__btn {
  width: auto;
  text-align: left;
  transition: none;
  color: blue;
  margin: 0 !important;
  background-color: transparent;
  border-radius: 0px;
}

.shopify-buy__btn:hover {
  color: blue;
  text-decoration: none;
  background-color: transparent;
  border-bottom: 1px solid blue;
}

.shopify-buy__btn:focus {
  background-color: transparent;
  color: white;
  outline: none;
}
