/* DM Sans Regular */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.ttf') format('woff2'),
    url('../fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* DM Sans Medium */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Medium.ttf') format('woff2'),
    url('../fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

/* DM Sans SemiBold */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-SemiBold.ttf') format('woff2'),
    url('../fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

/* DM Sans Bold */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Bold.ttf') format('woff2'),
    url('../fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}


/* ============================================================  */



/* Inter is loaded from Google Fonts (see tailwind-config.blade.php's stylesheet link) - it
   serves the correctly-proportioned "Text" optical size for UI-scale text. This used to also
   register local @font-face rules for the same 'Inter' family from Inter_24pt-*.ttf files -
   the "24pt" static instance is Inter's DISPLAY optical size, built for large headline-scale
   text, with different letterform proportions (e.g. a shallower 'g' descender) than the size
   it was actually being used at here (14px UI labels). With both sources registered for the
   same family/weight, the local 24pt files were winning and rendering small text with
   headline-proportioned glyphs, which read as clipped/malformed at a glance. Removed so the
   correctly-sized Google Fonts Inter is used everywhere. */


body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

/* ====================================================================================================  */



/* Search bar custom */
.search-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 50px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  gap: 0;
}

.search-wrap input {
  border: none;
  outline: none;
  font-size: 14px;
  color: #374151;
  background: transparent;
  width: 100%;
}

.search-wrap input::placeholder {
  color: #9ca3af;
}

.search-divider {
  width: 1px;
  height: 26px;
  background: #e5e7eb;
  flex-shrink: 0;
  margin: 0 10px;
}

/* Below sm, the two fields become fully separate boxes (each draws its own
   background/border/shadow directly in the Blade markup) rather than sharing this one pill -
   a single tall card split by a mid-line divider read as one confusing, cramped field rather
   than two clearly separate ones. .search-wrap itself goes chromeless here and just spaces the
   two boxes apart; none of this touches the sm-and-up single-pill layout, which keeps
   .search-wrap's own background/border/shadow exactly as the reference has it. */
@media (max-width: 639px) {
  .search-wrap {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}

.co {
  color: #233d4e1a;
}

/* ==================================================================  */

/* swiper slider css  */

/* hero size */
.hero-swiper {
  height: 580px;
}

/* slide */
.hero-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
}

/* hero image */
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transition: transform 6s ease;
}

/* zoom animation */
.swiper-slide-active .hero-img {
  transform: scale(1);
}

/* dark overlay */
.hero-swiper .swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .70);
}

/* thumbnail card */
.thumb-card {
  position: relative;
  overflow: hidden;
}

/* progress overlay */
.thumb-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(254, 255, 255, 0.30);
  transform: scaleX(0);
  transform-origin: left;
  transition: none;
  z-index: 0;
}




.swiper-slide-thumb-active .thumb-card::before {
  transform: scaleX(2);
  transition: transform 4s linear 0.3s;
}

/* ========================================================  */

/* ── Select2 overrides ── */


.select2-container--default .select2-selection--single {
  border: 1px solid #e5e7eb !important;
  border-radius: 0.75rem !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 12px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 44px !important;
  padding-left: 0 !important;
  color: #374151 !important;
  font-size: 0.875rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #9ca3af !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px !important;
  right: 10px !important;
}

.select2-dropdown {
  border: 1px solid #e5e7eb !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  margin-top: 4px;
  overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #1E3A8A !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #eef4f7 !important;
  color: #1E3A8A !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #e5e7eb !important;
  border-radius: 0.5rem !important;
  padding: 6px 10px !important;
  font-size: 0.875rem !important;
  outline: none !important;
}

.select2-results__option {
  font-size: 0.875rem;
  padding: 8px 12px;
}

.select2-selection__clear {
  display: none !important;
}

/* ── Range slider ── */
.range-wrap {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}

.track-bg {
  position: absolute;
  width: 100%;
  height: 4px;
  background: #d1d5db;
  border-radius: 4px;
}

.track-fill {
  position: absolute;
  height: 4px;
  background: #1a2332;
  border-radius: 4px;
}

input[type=range] {
  -webkit-appearance: none;
  position: absolute;
  width: 100%;
  height: 4px;
  background: transparent;
  pointer-events: none;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #1a2332;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* ── Filter slide ── */
#filterMenu {
  transition: transform 0.3s ease;
}



/* accordion-content  */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 400ms ease, opacity 300ms ease;
  background-color: #fff;
}

.accordion-content.open {
  max-height: 500px;
  opacity: 1;
  border-radius: 12px;
}

.icon {
  transition: transform 300ms ease;
}

.icon.open {
  transform: rotate(135deg);
  /* plus → cross */
}


.accordion-item {
  transition: background-color 300ms ease;
}

.accordion-item.active {
  background-color: #fff;

}

/* service details thumb css */


/* Thumbnail overlay and selection */
.thumb {
  position: relative;
  overflow: hidden;
}

.thumb img {
  display: block;
}

.thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.10);
  /* default overlay */
  transition: background 200ms ease, opacity 200ms ease;
  pointer-events: none;
  z-index: 10;
}

.thumb.thumb-selected::after {
  background: transparent;
}

.thumb.thumb-selected {
  z-index: 20;
}


/* Pagination dots */
.card-swiper .swiper-pagination {
  bottom: 18px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.card-swiper .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: #ADB3BB;
  opacity: 1;
  border-radius: 50%;
  transition: all 0.2s;

}


.card-swiper .swiper-pagination-bullet-active {
  background: #FBD23C;
  width: 18px;
  border-radius: 3px;
}


/* Booking page style */

.section-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #D1D5D9;
  margin-bottom: 14px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.section-body {
  padding: 0 20px 20px;
  display: none;
}

.section-card.open .section-body {
  display: block;
}

.chevron-icon {
  transition: transform 0.2s;
  color: #9ca3af;
  transform: rotate(180deg);
}

.section-card.open .chevron-icon {
  transform: rotate(0deg);
}

/* Add-On Services: scroll after 3 items instead of growing the page */
#addons-grid {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

/* ── Custom Calendar ── */
.cal-wrap {
  width: 100%;
  border-bottom: 1px solid #D1D5D9;
  padding-bottom: 10px;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cal-month-label {
  font-size: 16px;
  font-weight: 400;
  color: #111827;
}

.cal-nav {
  width: 30px;
  height: 30px;
  border: none;
  background: #f3f4f6;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: background 0.15s;
}

.cal-nav:hover {
  background: #e5e7eb;
}

.cal-grid {
  width: 100%;
  border-collapse: collapse;
}

.cal-grid th {
  font-size: 16px;
  font-weight: 600;
  color: #252C38;
  text-align: center;
  padding: 4px 0 8px;
  width: calc(100%/7);
}

.cal-grid td {
  text-align: center;
  padding: 3px 0;
}

.cal-day {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 16px;
  color: #374151;
  cursor: pointer;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
  font-weight: 400;
}

.cal-day:hover:not(.disabled):not(.other-month) {
  background: #f3f4f6;
  color: #111827;
}

.cal-day.today {
  border: 1.5px solid #1e3a5f;
  color: #1e3a5f;
  font-weight: 700;
}

.cal-day.selected {
  background: #1e3a5f !important;
  color: #fff !important;
  font-weight: 400;
  border: none;
}

.cal-day.other-month {
  color: #ADB3BB;
  cursor: default;
}

.cal-day.disabled {
  color: #ADB3BB;
  cursor: not-allowed;
}

/* Service items */
.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #D1D5D9;
  border-radius: 12px;
  transition: border-color 0.15s, background-color 0.15s;
}

.service-item.selected {
  border-color: #112B79;
  background: #F5F7F9;
}

/* .service-item:last-child{border-bottom:none;padding-bottom:0;} */
.service-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.service-name {
  font-size: 14px;
  font-weight: 400;
  color: #374253;
}

.service-price {
  font-size: 16px;
  font-weight: 600;
  color: #112B79;
  margin-top: 2px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.qty-btn.minus {
  background: #f3f4f6;
  color: #6b7280;
}

.qty-btn.minus:hover {
  background: #e5e7eb;
}

.qty-btn.plus {
  background: #1e3a5f;
  color: #fff;
}

.qty-btn.plus:hover {
  background: #162d4a;
}

.qty-num {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  min-width: 16px;
  text-align: center;
}

/* Add-ons */
.addon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.addon-card {
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s;
}

.addon-card.selected {
  border-color: #1e3a5f;
  background: #f0f4f9;
}

.addon-name {
  font-size: 14px;
  font-weight: 400;
  color: #374253;
  margin-bottom: 4px;
}

.addon-price {
  font-size: 16px;
  font-weight: 600;
  color: #112B79;
}

.addon-radio {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.addon-card.selected .addon-radio {
  border-color: #1e3a5f;
  background: #1e3a5f;
}

.addon-card.selected .addon-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  display: block;
}

.badge-rec {
  display: inline-block;
  font-size: 10px;
  font-weight: 400;
  background: #FBD23C;
  color: #1D232C;
  padding: 0.5px 7px;
  border-radius: 8px;
}

/* Time slots */
.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.time-slot {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.time-slot:hover {
  border-color: #9ca3af;
}

.time-slot.selected {
  border-color: #1e3a5f;
  background: #f0f4f9;
}

.time-slot-text {
  font-size: 11.5px;
  font-weight: 500;
  color: #374151;
  margin-top: 3px;
}

.time-slot.selected .time-slot-text {
  color: #1e3a5f;
  font-weight: 700;
}

/* Form */
.form-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-input:focus {
  border-color: #1e3a5f;
}

.input-wrap {
  position: relative;
  margin-bottom: 12px;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 17px;
  pointer-events: none;
}

textarea.form-input {
  padding-left: 14px;
  resize: none;
  min-height: 90px;
}

.addr-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  color: #111827;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
  margin-bottom: 10px;
}

.addr-input::placeholder {
  color: #9ca3af;
}

.addr-input:focus {
  border-color: #1e3a5f;
}

.loc-btn {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  transition: all 0.15s;
}

.loc-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.map-box {
  width: 100%;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
  background: #e5e7eb;
}

.map-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  color: #ef4444;
  font-size: 28px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 4px;
  cursor: pointer;
}

.custom-check {
  width: 16px;
  height: 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.15s;
}

.custom-check.checked {
  background: #2563EB;
  border-color: #2563EB;
}

.check-label {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.check-label a {
  color: #1e3a5f;
  font-weight: 600;
  text-decoration: none;
}

/* Job details scroll  */


/* Marquee swiper styles */
.marquee-swiper {
  padding: 1rem 0;
}

.marquee-swiper .swiper-wrapper {
  align-items: center;
}

.marquee-swiper .swiper-slide {
  width: 280px;
  flex-shrink: 0;
}

.marquee-swiper .swiper-slide img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem;
}

@media (min-width: 1024px) {
  .marquee-swiper .swiper-slide {
    width: 440px;
  }

  .marquee-swiper .swiper-slide img {
    height: 400px;
  }
}

@media (max-width: 640px) {
  .marquee-swiper .swiper-slide {
    width: 220px;
  }

  .marquee-swiper .swiper-slide img {
    height: 160px;
  }
}





/* Trending service card: arrow button default bg-primary, hover → bg-title + icon rotate -45deg */
.trend-btn {
  background-color: #3662E3;
  transition: background-color 0.3s ease;
}

.trend-btn i {
  color: #ffffff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.trend-btn:hover {
  background-color: #263D4F;
}

.trend-btn:hover i {
  transform: rotate(-45deg);
  color: #ffffff;
}

/* ── Booking page: address dropdown ── */
.addr-dropdown-wrap {
  position: relative;
}

.addr-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  color: #111827;
}

.addr-dropdown-trigger .icon-base {
  color: #9ca3af;
  transition: transform 0.15s;
}

.addr-dropdown-wrap.open .addr-dropdown-trigger .icon-base {
  transform: rotate(180deg);
}

.addr-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12);
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
}

/* ── Booking page: address cards ── */
.address-card-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s;
  margin-bottom: 10px;
}

.address-card-item.selected {
  border-color: #1e3a5f;
  background: #f0f4f9;
}

.address-card-item .address-card-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  background: #fff;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.address-card-item.selected .address-card-radio {
  border-color: #1e3a5f;
  background: #1e3a5f;
}

.address-card-item.selected .address-card-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

/* ── Booking page: staff cards ── */
.staff-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.staff-card.selected {
  border-color: #1e3a5f;
  background: #f0f4f9;
}

.staff-card img,
.staff-card .staff-avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.staff-card .staff-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #9ca3af;
}

.staff-card-name {
  font-size: 14px;
  font-weight: 500;
  color: #374253;
}

.staff-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  background: #fff;
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-card.selected .staff-radio {
  border-color: #1e3a5f;
  background: #1e3a5f;
}

.staff-card.selected .staff-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

/* ── Payment Method Modal ─────────────────────────────────────────────────── */

/* Wallet option card (shown above the gateway grid when balance > 0) */
.pm-wallet-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
}

.pm-wallet-card .wallet-payment-gateway-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.pm-wallet-card .wallet-payment-gateway-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2563EB;
  cursor: pointer;
  flex-shrink: 0;
}

.pm-wallet-card .wallet-payment-gateway-wrapper label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  margin: 0;
}

.pm-wallet-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #2563EB;
}

/* ── Payment gateway logo grid — 5 columns in a row ── */
.payment-gateway-wrapper > ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 400px) {
  .payment-gateway-wrapper > ul {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ── Compact Card tile ── */
.payment-gateway-wrapper > ul > li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  padding: 6px 8px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.payment-gateway-wrapper > ul > li:hover {
  border-color: #9ca3af;
}

/* ── Selected: brand blue border matching Confirm & Pay button ── */
.payment-gateway-wrapper > ul > li.selected,
.payment-gateway-wrapper > ul > li.active {
  border: 2px solid #2563EB;
  outline: none;
}

.payment-gateway-wrapper > ul > li.selected::after,
.payment-gateway-wrapper > ul > li.active::after {
  content: none;
}

/* ── Inner .img-select wrapper — strip all inherited decoration ──────────
   Old frontend CSS gives .img-select a box-shadow and margin which
   appear as a white inner box. Force everything transparent/zero.      */
.payment-gateway-wrapper > ul > li .img-select {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Logo image — natural aspect ratio, no stretching, crisp rendering ── */
.payment-gateway-wrapper > ul > li .img-select img,
.payment-gateway-wrapper > ul > li > img {
  display: block;
  max-height: 36px;
  max-width: 74px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ── Booking page: responsive fixes on the mockup's fixed-width panels ── */
.booking-summary-panel {
  width: 100%;
}

/* Compatibility shim: PaymentGatewayRenderHelper's extra-field markup (manual
   payment transaction id / attachment) is written against Bootstrap utility
   classes, which frontend_new's Tailwind theme doesn't load. */
.d-none {
  display: none !important;
}

.payment_gateway_extra_field_information_wrap .form-control,
.payment_gateway_extra_field_information_wrap input[type="text"],
.payment_gateway_extra_field_information_wrap input[type="file"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 8px;
}

/* ==========================================================================
   Comprehensive Mobile Optimizations for All frontend_new Pages
   ========================================================================== */

/* ── Global Touch & Viewport Utilities ────────────────────────────────── */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Mobile Container Spacing ─────────────────────────────────────────── */
@media (max-width: 639px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* ── Mobile Page Header & Breadcrumb Banner ───────────────────────────── */
@media (max-width: 767px) {
  .banner-breadcrumb-section {
    margin-top: 4.5rem !important;
  }
  .banner-breadcrumb-box {
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
    gap: 0.5rem !important;
  }
  .banner-breadcrumb-title {
    font-size: 1.625rem !important;
    line-height: 2rem !important;
  }
}

/* ── Mobile Booking Calendar & Time Slots ─────────────────────────────── */
@media (max-width: 480px) {
  .cal-grid th {
    font-size: 13px !important;
    padding: 3px 0 6px !important;
  }
  .cal-day {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
  }
  .time-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  .time-slot {
    padding: 6px 4px !important;
  }
  .time-slot-text {
    font-size: 10.5px !important;
  }
  .addon-grid {
    grid-template-columns: 1fr !important;
  }
  .service-item {
    padding: 8px 10px !important;
    gap: 8px !important;
  }
  .service-img {
    width: 44px !important;
    height: 44px !important;
  }
  .service-price {
    font-size: 14px !important;
  }
}

/* ── Mobile Modals (Payment Modal & Add Address Modal) ────────────────── */
@media (max-width: 639px) {
  #paymentGatewayModal,
  #addAddressModal > div {
    max-width: 100% !important;
    width: calc(100vw - 24px) !important;
    padding: 18px 16px !important;
    border-radius: 14px !important;
    max-height: 90vh !important;
  }
  #paymentGatewayModal h3 {
    font-size: 18px !important;
  }
  #paymentGatewayModal p {
    font-size: 13px !important;
  }
  .pm-wallet-card {
    padding: 8px 10px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .pm-wallet-balance {
    align-self: flex-end !important;
  }
  .payment-gateway-wrapper > ul {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }
  .payment-gateway-wrapper > ul > li {
    height: 48px !important;
    padding: 4px 6px !important;
  }
  .payment-gateway-wrapper > ul > li .img-select img,
  .payment-gateway-wrapper > ul > li > img {
    max-height: 28px !important;
    max-width: 60px !important;
  }
  #orderNowBtn {
    height: 44px !important;
    font-size: 14px !important;
  }
}

/* ── Mobile Filter Drawer ─────────────────────────────────────────────── */
@media (max-width: 639px) {
  .filter-sidebar {
    width: 88vw !important;
    max-width: 310px !important;
    padding: 1.25rem 1rem !important;
  }
}

/* ── Mobile Service Details & Provider Details ────────────────────────── */
@media (max-width: 767px) {
  .svc-gallery-main {
    height: 240px !important;
  }
  .svc-thumb-strip button {
    height: 70px !important;
  }
  .provider-achievements-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .provider-header-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }
}

/* ── Mobile Category & Subcategory Cards ──────────────────────────────── */
@media (max-width: 639px) {
  .category-card-item {
    min-height: 220px !important;
    padding: 1rem !important;
  }
  .category-card-item p.font-heading {
    font-size: 1.35rem !important;
    line-height: 1.75rem !important;
    margin-top: 0.75rem !important;
  }
}

/* ── Mobile Blog & Comments ───────────────────────────────────────────── */
@media (max-width: 639px) {
  .ph-comment-group .ph-reply-wrapper {
    padding-left: 0.75rem !important;
    margin-left: 0.25rem !important;
    border-left-width: 2px !important;
  }
  .ph-comment-card {
    padding: 0.875rem !important;
  }
  .ph-comment-avatar {
    width: 32px !important;
    height: 32px !important;
  }
}