/* font-weight 	CSS Equivalent
.fw-light	300	font-weight: 300;
.fw-normal	400	font-weight: 400;
.fw-semibold	600	font-weight: 600;
.fw-bold	700	font-weight: 700;
.fw-bolder	relative	heavier than parent */

:root {
  --header-h: 64px;
}

@font-face {
  font-family: 'Roboto';
  src: url('roboto.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  padding-top: var(--header-h);
  font-family: 'Roboto', sans-serif;
  color: #333f50 !important;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
  scroll-behavior: smooth; /* optional: smooth jump */
  scroll-padding-top: var(--header-h); /* offset when scrolling to #ids */
}

.text-color {
  color: #333f50 !important;
}
.text-white {
  color: #fffff0 !important;
}
.text-blue {
  color: #1976d2 !important;
}
.text-red {
  color: #cc0000 !important;
}
.text-green {
  color: #198754 !important;
}
.text-purple {
  color: #6f42c1 !important;
}
.text-action {
  color: #20c997 !important;
}
a,
a:visited,
a:hover,
a:active {
  color: #333f50 !important;
  text-decoration: none;
}
small,
.small {
  font-size: 0.75em;
}

/* payment methods */
.pm-item {
  border: 0;
  border-bottom: 1px solid var(--bs-border-color);
  border-radius: 0;
  padding: 0.85rem 1rem;
}

.pm-item:last-of-type {
  border-bottom: 0; /* no line on the last item */
}

.btn-check:checked + .pm-item {
  background: rgba(var(--bs-primary-rgb), 0.06);
  box-shadow: inset 0 0 0 2px rgba(var(--bs-primary-rgb), 0.35);
}

.btn-check:focus + .pm-item {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* right-side radio icon */
.pm-radio {
  width: 18px;
  height: 18px;
  border: 2px solid var(--bs-secondary-color);
  border-radius: 50%;
  position: relative;
  flex: 0 0 18px;
}

.btn-check:checked + .pm-item .pm-radio {
  border-color: var(--bs-primary);
}

.btn-check:checked + .pm-item .pm-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bs-primary);
}

.googlepay-button {
  margin: 32px;
  height: 48px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-pay-button {
  -webkit-appearance: -apple-pay-button;
  -apple-pay-button-type: plain;
  margin: 32px;
  height: 48px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: -webkit-named-image(apple-pay-logo-black);
  background-size: 100% calc(60% + 2px);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  transition: background-color 0.15s;
  cursor: pointer;
}

.mywidth {
  margin-left: 50px;
  margin-right: 50px;
}

.amount-col {
  min-width: 14ch;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.amount-label {
  margin-right: 1rem;
  text-align: right;
}
.strikethrough {
  text-decoration: line-through;
  opacity: 0.6;
}

#applepay-button {
  transition: opacity 0.2s ease;
}
.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.badge-pending {
  background-color: #ffc107;
}
.badge-overdue {
  background-color: #de3441;
}

.mt-6 {
  margin-top: 5rem !important;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.avatartop {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-radius: 0.5rem;
  /* border-top-left-radius: 1rem !important;
  border-bottom-right-radius: 1rem !important; */
}

.lazy-portrait {
  background: url('img/portrait.jpg') center center no-repeat;
  background-size: cover;
}
.lazy-landscape {
  background: url('img/landscape.jpg') center center no-repeat;
  background-size: cover;
}

.m-77 {
  margin: 0.1rem !important;
}

.img-shopping {
  padding: 0.05rem;
  background-color: #fff;
  /* border: 1px solid #dee2e6;  */
  border-radius: 0.5rem;
  margin: 10px 10px 10px 20px; /* Optional margin for spacing */
  /* margin: top right bottom left; */
}

.img-shopping-top {
  padding: 0rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  /* margin: 20px 10px 10px 10px;  */
  /* margin: top right bottom left; */
}

.card-img-fixed {
  width: 100%; /* take full card width */
  height: auto; /* keep aspect ratio */
  display: block; /* removes inline gap issues */
}

/* Price badge */
.price-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #de3441;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 400;
  padding: 2px 8px;
  border-radius: 12px; /* rounded pill shape */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-badge2 {
  position: absolute;
  top: 12px;
  right: -12px;
  background-color: #de3441;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 400;
  padding: 2px 8px;
  border-radius: 12px; /* rounded pill shape */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-badge3 {
  position: absolute;
  top: 15px;
  right: 60px;  
  /* color: #ffffff; */
  /* background: #de3441; */
  background: #e6f4ea;
  color: #198754;
  font-size: 1rem;
  font-weight: 400;
  padding: 2px 8px;
  border-radius: 12px; /* rounded pill shape */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Solid Custom Blue */
/* .btn-custom,
.btn-custom:link,
.btn-custom:visited {
  background-color: #1976d2 !important;
  border-color: #1976d2 !important;
  color: #ffffff !important; 
  text-decoration: none !important; 
}
.btn-custom:hover,
.btn-custom:focus,
.btn-custom:active {
  background-color: #1565c0 !important;
  border-color: #1565c0 !important;
  color: #ffffff !important;
}
.btn-outline-custom,
.btn-outline-custom:link,
.btn-outline-custom:visited {
  background-color: transparent !important;
  border-color: #1976d2 !important;
  color: #1976d2 !important; 
  text-decoration: none !important;
}
.btn-outline-custom:hover,
.btn-outline-custom:focus,
.btn-outline-custom:active {
  background-color: #1976d2 !important;
  border-color: #1976d2 !important;
  color: #ffffff !important; 
} 
.my-gradient {
  background: linear-gradient(150deg, #f0f6f9 0%, #f0f6f9 100%);
} */

/* Solid Custom Button (Red) */
.btn-custom,
.btn-custom:link,
.btn-custom:visited {
  background-color: #de3441 !important;
  border-color: #de3441 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}
.btn-custom:hover,
.btn-custom:focus,
.btn-custom:active {
  background-color: #bb2d3b !important;
  border-color: #b02a37 !important;
  color: #ffffff !important;
}
.btn-outline-custom,
.btn-outline-custom:link,
.btn-outline-custom:visited {
  background-color: transparent !important;
  border-color: #de3441 !important;
  color: #de3441 !important;
  text-decoration: none !important;
}
.btn-outline-custom:hover,
.btn-outline-custom:focus,
.btn-outline-custom:active {
  background-color: #de3441 !important;
  border-color: #de3441 !important;
  color: #ffffff !important;
}

.my-gradient {
  background: linear-gradient(150deg, #fcfcfc 0%, #fffafa 100%);
}

.form-select {
  border: 1px solid #de3441 !important;
}
.form-select option:checked {
  background-color: #de3441 !important;
  color: #ffffff !important;
}
.form-select option:hover {
  background-color: #de3441 !important;
  color: #ffffff !important;
}
.form-select:focus {
  border-color: #de3441 !important;
}
.form-select option:focus {
  background-color: #de3441 !important;
  color: #ffffff !important;
}
.form-check-input {
  accent-color: #de3441; /* red checkmark and box */
  border-color: #de3441 !important;
}
.form-check-input:checked {
  background-color: #de3441 !important;
  border-color: #de3441 !important;
}
.form-check-input:focus {
  border-color: #de3441 !important;
}

/* Your custom color */
.text-custom {
  color: #de3441 !important;
}
.bg-warning-custom {
  background-color: #edef8e;
  color: #1a1a1a;
}
.bg-custom {
  background-color: #de3441 !important;
  color: #ffffff !important;
}
.bg-topmenu {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}
.custom-pastel {
  background-color: #f3eee8;
}

.badge-custom {
  background: #f9eced;
  color: #de3441;
  font-size: 0.75rem;
}
.badge-paid {
  background: #e6f4ea;
  color: #198754;
  font-size: 0.75rem;
}

/* This is for selected payment option/ewallet/credit card */
.btn-check:checked + .pm-item {
  border-color: #de3441 !important;
  background-color: #fdecee !important;
  color: #de3441 !important;
}
.pm-item .pm-radio {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  position: relative;
}
.btn-check:checked + .pm-item .pm-radio {
  border-color: #de3441;
  background-color: #de3441;
}
.btn-check:checked + .pm-item,
.pm-item.active {
  border-color: #de3441 !important;
  background-color: #fdecee !important; /* light red */
  color: #de3441 !important;
  box-shadow: 0 0 0 0.25rem rgba(222, 52, 65, 0.25) !important;
}
.btn-check:focus + .pm-item {
  outline: none !important;
  box-shadow: 0 0 0 0.25rem rgba(222, 52, 65, 0.25) !important;
  border-color: #de3441 !important;
}
.pm-check {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: transparent;
  transition: all 0.2s ease;
}
.btn-check:checked + .pm-item .pm-check {
  border-color: #de3441;
  background-color: #de3441;
  color: #fff;
}

/* remove arrows for number inputs */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type='number'] {
  -moz-appearance: textfield; /* for Firefox */
}
