/* These styles are generated from project.scss. */

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

body{
	background-color: hsl(0, 0%, 98%);
}

h1,h2,h3,h4,h5,h6{
	color:hsl(0, 0%, 30%);
}

h5{
  min-height: 48px;
}

.box-element{
	box-shadow:hsl(0, 0%, 80%) 0 0 16px;
	background-color: #fff;
	border-radius: 4px;
	padding: 10px;
}

.thumbnail{
	width: 100%;
	height: 200px;
	-webkit-box-shadow: -1px -3px 5px -2px rgba(214,214,214,1);
    -moz-box-shadow: -1px -3px 5px -2px rgba(214,214,214,1);
    box-shadow: -1px -3px 5px -2px rgba(214,214,214,1);
}

.product{
	border-radius: 0 0 4px 4px;
}

.bg-dark{
	background-color: #4f868c!important;
}

#cart-icon{
	width:25px;
	display: inline-block;
	margin-left: 15px;
}

#cart-total{
	display: block;
	text-align: center;
	color:#fff;
	background-color: red;
	width: 20px;
	height: 25px;
	border-radius: 50%;
	font-size: 14px;
}

.col-lg-4, .col-lg-6, .col-lg-8, .col-lg-12, .col-md-4, .col-md-6{
	margin-top: 10px;
}

.checkout-total h6 {
  color: gray;
}

.btn{
	flex: 1 1 auto;
  padding: 10px;
  text-align: center;
  transition: 0.2s;
  background-size: 200% auto;
  border-radius: 50px;
}

.row-image{
	width: 65px;
  height: 65px;
  float: left;
  margin-right: 10px;
}

.avatar {
  width: 65px;
  height: 65px;
  float: left;
  /*margin-right: 10px;*/
}

.avatar img {
    width: 65px;
    height: 65px;

}

.form-field{
	width:250px;
	display: inline-block;
	padding: 5px;
}

.cart-row{
	display: flex;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ececec;
}

.quantity{
	display: inline-block;
	font-weight: 700;
	padding-right:10px;
}

.chg-quantity{
	width: 12px;
	cursor: pointer;
	display: block;
	margin-top: 5px;
	transition:.1s;
}

.chg-quantity:hover{
	opacity: .6;
}


.hidden{
	display: none!important;
}

/* Add-to-cart recommendations: native scrolling also survives HTMX OOB swaps. */
#add-to-cart-modal .modal-content {
  border-radius: 12px;
}

#add-to-cart-modal .modal-header,
#add-to-cart-modal .modal-footer {
  padding: 1rem;
}

.pdp-cart-confirmation {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  padding-right: .5rem;
}

.pdp-cart-confirmation-image {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

#add-to-cart-modal .modal-title,
#pdp-modal-addons-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.pdp-cart-confirmation p {
  font-size: .875rem;
  overflow-wrap: anywhere;
}

#pdp-modal-addon-recommendations {
  min-width: 0;
  padding: 1rem;
  background-color: #f8f9fa;
}

.pdp-addon-scroller {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #8a9299 #e9ecef;
}

.pdp-addon-scroller:focus-visible {
  outline: 2px solid #286090;
  outline-offset: 2px;
}

.pdp-addon-list {
  display: flex;
  gap: .75rem;
  margin: 0;
  padding: 2px 2px .75rem;
  list-style: none;
}

.pdp-addon-card {
  flex: 0 0 11.5rem;
  min-width: 0;
  padding: .75rem;
  border-radius: 8px;
  scroll-snap-align: start;
}

.pdp-addon-product {
  display: block;
  color: #343a40;
}

.pdp-addon-image-link {
  display: block;
}

.pdp-addon-image {
  display: block;
  width: 100%;
  height: 112px;
  margin-bottom: .75rem;
  object-fit: contain;
}

.pdp-addon-name {
  margin-bottom: .75rem;
  font-size: .875rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.pdp-addon-purchase {
  margin-top: auto;
}

.pdp-addon-details {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.pdp-addon-price {
  margin-bottom: .5rem;
  font-size: 1rem;
  font-weight: 600;
}

.pdp-addon-purchase .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  white-space: nowrap;
}

#add-to-cart-modal .modal-footer {
  flex-wrap: nowrap;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

#add-to-cart-modal .modal-footer .btn {
  flex: 1 1 0;
  min-height: 44px;
  margin: 0;
}

#add-to-cart-modal .modal-footer .btn + .btn {
  margin-left: .75rem;
}

/* Match the mobile accessory drawer while keeping the desktop Bootstrap modal. */
@media (max-width: 575.98px) {
  /* Leave a glimpse of the next accessory without squeezing the touch targets. */
  .pdp-addon-list--compact .pdp-addon-card {
    flex-basis: clamp(9rem, 42%, 10rem);
    padding: .625rem;
  }

  .pdp-page-addons .pdp-addon-list--compact .pdp-addon-card {
    flex-basis: clamp(8.5rem, 40%, 9.5rem);
  }

  #add-to-cart-modal {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  #add-to-cart-modal .modal-dialog {
    align-items: stretch;
    justify-content: flex-end;
    height: 100%;
    max-height: 100%;
    margin: 0;
  }

  #add-to-cart-modal .modal-content {
    max-height: calc(100% - 1rem);
    border: 0;
    border-radius: 16px 16px 0 0;
  }

  #add-to-cart-modal.fade .modal-dialog {
    transform: translateY(100%);
  }

  #add-to-cart-modal.show .modal-dialog {
    transform: none;
  }
}

@media (min-width: 576px) {
  .pdp-addon-scroller {
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .pdp-addon-list {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    padding-bottom: 2px;
  }

  .pdp-addon-card {
    width: 100%;
    padding: .75rem;
    flex-basis: auto;
    flex-direction: row;
    gap: .75rem;
  }

  .pdp-addon-image-link {
    flex: 0 0 35%;
    max-width: 160px;
  }

  .pdp-addon-image {
    margin-bottom: 0;
    height: 136px;
  }

  #add-to-cart-modal .modal-footer .btn {
    flex: 0 1 auto;
    min-width: 140px;
  }
}

@media (min-width: 768px) {
  .pdp-addon-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .pdp-page-addons .pdp-addon-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Datepicker */

.is-between {
  border-radius: 0 !important;
  background-color: #5599d4;
  color: white;
}

.is-selected {
  background-color: #286090;
  color: white;
}

.is-unavailable {
  background-color: #ff8080;
  color: gray;
}

/* Sticky footer styles ------------------------------------------- */
.footer {
  width: 100%;
  line-height: 35px; /* Vertically center the text there */
  background-color: black;
}

footer h6 {
	font-size: 15px;
	color: #fff;
}

footer li {
  font-size: 13px;
  color: white;
}

footer a {
  font-size: 13px;
  color: white;
}

footer a:hover {
  color: white;
}

/* Table styles */
.table-image td {
    vertical-align: middle;
}

.table-image th {
    vertical-align: middle;
}


.fa-stack[data-count]:after{
  position:absolute;
  right:0%;
  top:1%;
  content: attr(data-count);
  font-size:50%;
  padding:.6em;
  border-radius:999px;
  line-height:.75em;
  color: black;
  background: #fed040;
  text-align:center;
  min-width:2em;
  font-weight:bold;
}
