/* custom styling */
/* Background Colours */
.bounce-twice {
  animation: fa-bounce 1s ease 2; /* <-- 2 times only */
}

#cart-count span {
  padding-top: 1px;
  padding-bottom: 1px;
}

.offcanvas .navbar-brand {
  width: 190px;
}

/* Product Image Constraints */
.object-fit-cover {
  object-fit: cover;
}

.object-fit-contain {
  object-fit: contain;
}

.product-img {
  display: block;
}

.navbar-brand {
  width: 400px;
}

ul.nav-tabs .rounded-pill.nav-link.active {
  background: #222221 !important;
  color: #ffffff;
}

/*
h1,h2,h3,h4,h5,h6 {
font-family: "erbaum", sans-serif !important;
font-weight: 400;
font-style: normal;
}
*/
.category-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-column-gap: 20px;
  grid-row-gap: 25px;
  width: 800px;
}

.payment-card-wrapper {
  transition: all 0.3s ease-in-out;
  border: 2px solid #ccc; /* Default border */
}
.payment-card-wrapper .payment-card {
  height: 100%;
}

/* When the input inside .payment-card is checked, apply styles to the card */
.payment-card-wrapper .payment-card:has(input[type=radio]:checked) {
  background-color: rgb(235, 241, 250);
  border-color: none;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

/* Ensure clicking the card removes the default focus outline */
.payment-card-wrapper .payment-card:has(input[type=radio]:checked) {
  outline: none !important;
  box-shadow: none !important;
}
.payment-card-wrapper .payment-card:has(input[type=radio]:checked) span {
  outline: none !important;
  box-shadow: none !important;
}

.payment-card:has(input[type=radio]:focus),
.payment-card:focus-within {
  border-color: none !important;
  box-shadow: none !important;
}

.payment-card-wrapper .payment-card input[type=radio]:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.payment-card-wrapper .payment-card input[type=radio]:focus-visible span {
  outline: none !important;
  box-shadow: none !important;
}

/* Optionally, add hover effect for better UX */
.payment-card-wrapper .payment-card:hover {
  border-color: #007bff;
  background-color: rgba(237, 247, 240, 0.05);
  cursor: pointer;
}

#categories a.nav-link.active {
  font-weight: bold;
  color: #A6C3CC !important;
}
#categories a.nav-link span.animate-target {
  border-bottom: #f1f1f1 solid 1px;
}

/* Checkout Icon */
.checkout-step {
  transition: opacity 0.3s ease;
}

.checkout-icon {
  margin-left: -2rem;
}

.check-icon {
  position: absolute;
  top: -1rem;
  right: -1rem;
  font-size: 20px;
  visibility: hidden;
}
.check-icon i {
  color: #222221;
}

.completed-step {
  margin-bottom: -3rem;
}
.completed-step .check-icon {
  position: absolute;
  top: -12p;
  right: -20px;
  font-size: 20px;
  visibility: visible;
  color: #B4CBD8 !important;
}

.edit-step {
  display: none;
}

.checkout-icon.confirmed {
  background-color: #B4CBD8 !important;
  color: #222221 !important;
}

.btn-confirmed {
  background-color: #B4CBD8 !important;
  opacity: 0.5;
  pointer-events: none;
  color: #fff;
}

.btn-fade-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.checkout-step .checkout-icon {
  opacity: 1 !important;
}

/* Reset opacity for icon and edit link inside dimmed (completed) steps */
.checkout-step.opacity-50 [data-step-element=header] {
  opacity: 1 !important;
}
