/* CSS for the swiper and popup - Tailwind CSS is used for styling. */
/* The styles below are for a better user experience */

:root {
  --blue-200: #bfdbfe;
  --green-300: #86efac;
}

body.overflow-h {
  overflow: hidden;
  height: 100vh;
}

.delivery-btn:before {
  content: "\e811";
  font-family: "reshot" !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#selected-day-title {
  margin-top: 20px;
}

.flatpickr-calendar.inline {
  margin: 0 auto;
  direction: rtl;
}

.flatpickr-day.selected:hover,
.flatpickr-day.selected {
  background-color: var(--wd-primary-color);
  border-color: var(--wd-primary-color);
}

.delivery-card:before,
#time-slots-grid:before {
  --wd-anim-state: running;
  position: absolute;
  top: calc(50% - 9px);
  inset-inline-start: calc(50% - 9px);
  opacity: 1;
  z-index: 2;
  transition: opacity 0.25s ease;
  content: "";
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 0, 0, 0);
  border-left-color: currentColor;
  border-radius: 50%;
  vertical-align: middle;
  animation: wd-rotate 450ms infinite linear var(--wd-anim-state, paused);
}

.delivery-card.loading .delivery-content {
  transition: opacity 0.25s ease;
  opacity: 0;
  z-index: -1;
}

.delivery-card:not(.loading):before,
#time-slots-grid.done:before {
  opacity: 0;
  z-index: -1;
}

#time-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  min-height: 200px;
  position: relative;
}

@media (min-width: 1024px) {
  .woocommerce-checkout #time-slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-city .woo-billing-fields {
  display: grid;
  grid-template-columns: 1;
  gap: 16px;
  /* spacing between items */
}

.btn-wrap {
  bottom: 0;
  background: #fff;
  width: 100%;
  right: 0;
  padding: 15px 20px;
  border-top: 1px solid var(--brdcolor-gray-300);
}

.woocommerce-checkout .btn-wrap {
  padding: 20px 0 0;
  border-top: 0;
}

/* @media (min-width: 1024px) { */
/* #time-slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .step-city .woo-billing-fields {
    grid-template-columns: repeat(2, 1fr);
  } */
/* } */

/* Time slot card */
.time-slot {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.time-slot:hover:not(.full) {
  border-color: #d1d5db;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
}

.time-slot.full {
  background-color: #f3f4f6;
  border-color: #d1d5db;
  cursor: not-allowed;
}

.slot-text {
  font-weight: bold;
  color: var(--wd-widget-title-color);
}

.slot-message,
.slot-available {
  font-size: 0.875rem;
  /* 14px */
  color: var(--wd-text-color);
}

.slot-available.available-text {
  color: #16a34a;
  /* green */
}

#time-slots-grid .time-slot.is-selected {
  border-color: var(--wd-primary-color);
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 768px;
  margin: 0 auto;
}

.city-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-direction: column;
  gap: 10px;
}

.city-content .message {
  font-weight: 500;
}

.delivery-cost {
  display: inline-flex;
  border-radius: 6px;
  padding: 4px 12px;
  background-color: #16a34a;
  /* green-600 */
  color: white;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.delivery-price {
  padding-inline-start: 5px;
}

button.delivery-card {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  /* 16px */
  padding: 10px;
  /* 8 * 4 */
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.delivery-text h3 {
  font-size: 16px;
  font-weight: 700;
}

.delivery-text p {
  font-size: 14px;
  color: #4b5563;
  /* gray-600 */
  font-weight: 500;
}


button.delivery-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

button.delivery-card.delivery-home:hover {
  border-color: #3b82f6;
  /* blue */
}

button.delivery-card.delivery-pickup:hover {
  border-color: #22c55e;
  /* green */
}

.delivery-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.step-city label {
  text-align: start;
}

.delivery-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.details-box {
  padding: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.details-box h4 {
  margin-bottom: 0;
  font-size: 14px;
}

.pickup-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.details-box.green {
  border: 1px solid var(--green-300);
  /* green-300 */
}

.details-box.blue {
  border: 1px solid var(--blue-200);
  /* blue-200 */
}

.details-box.purple {
  border: 1px solid #e9d5ff;
  /* purple-200 */
}

.details-box.green .icon-box {
  color: #16a34a;
  /* green-600 */
  background-color: #dcfce7;
  /* green-100 */
}

.details-box.blue .icon-box {
  background-color: #dbeafe;
  /* blue-100 */
  color: #2563eb;
  /* blue-600 */
}

.details-box.purple .icon-box {
  color: #7e22ce;
  /* purple-700 */
  background-color: #f3e8ff;
  /* purple-100 */
}

.delivery-home .delivery-icon {
  background-color: #dbeafe;
  /* blue-100 */
}

.delivery-pickup .delivery-icon {
  background-color: #dcfce7;
  /* green-100 */
}

.delivery-home .delivery-icon:before {
  font-family: "woodmart-font";
  content: "\F11F";
  color: #2563eb;
  /* blue-600 */
}

.delivery-pickup .delivery-icon:before {
  font-family: "woodmart-font";
  content: "\F146";
  color: #16a34a;
  /* green-600 */
}

.wa-ic {
  margin: 20px 0;
  border: 0 !important;
}

.wa-ic:before {
  font-family: "woodmart-font";
  content: "\F175";
}

.btn-wrap {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}

.btn-wrap .save-btn,
.btn-wrap .close-popup-btn:not(.btn-style-link),
.btn-wrap .step-btn {
  width: 100%;
}

.alert-box {
  position: relative;
  width: 100%;
  border: 1px solid var(--blue-200);
  /* blue-200 */
  background-color: #eff6ff;
  /* blue-50 */
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #1e3a8a;
  /* blue-900 */
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
}

.alert-box.success {
  border-color: var(--green-300);
  /* green-300 */
  background-color: #f0fdf4;
  /* green-50 */
  color: #14532d;
  /* green-900 */
}

.alert-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-inline-end: 8px;
  margin-top: 3px;
  color: #2563eb;
  /* blue-600 */
}

.alert-text {
  line-height: 1.6;
}

.slot-message {
  display: inline-flex;
  align-items: center;
  border: 1px solid #fde68a;
  /* light amber border */
  background-color: #fff8e1;
  /* very light amber background */
  color: #92400e;
  /* dark amber text */
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition: all 0.2s ease;
}

.slot-available {
  display: flex;
  align-items: center;
  gap: 8px;
  /* space between dot and text */
  font-size: 14px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  /* green-500 */
}

.slot-available.full-text .status-dot {
  background-color: #ef4444;
  /* red */
}

.slot-available.semi-available-text .status-dot {
  background-color: #f59e0b;
  /* amber-500 */
}

.availability-text {
  color: #4b5563;
  /* gray-600 */
}

.delivery-alert {
  position: relative;
  margin-top: 10px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
  /* green-200 */
  background-color: #dcfce7;
  /* green-50 */
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  /* text-sm */
  color: #166534;
  /* text-green-900 */
}

.delivery-alert.error {
  border: 1px solid #fca5a5;
  /* light red border */
  background-color: #fee2e2;
  /* very light red background */
  color: #b91c1c;
  /* dark red text */
}

.delivery-alert .icon-check {
  position: relative;
  width: 20px;
  /* h-5 */
  height: 20px;
  color: #16a34a;
  /* text-green-600 */
  flex-shrink: 0;
}

.step-city #order_comments_field {
  grid-column: 1 / -1;
  /* span all columns */
}

.step-city textarea {
  min-height: 100px !important;
}

.custom-model-main .box-wrap {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  /* 16px */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.custom-model-main .btn:not(.btn-style-link) {
  border-radius: var(--btn-accented-brd-radius);
}

.delivery-fields-wrap input.error {
  border-color: #ca1919;
}

.fc .fc-toolbar-title {
  font-size: 20px;
}

.selected-details {
  text-align: start;
  display: grid;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  flex-direction: column;
}


.custom-model-main {}

.model-open {
  z-index: 999;
  opacity: 1;
  overflow: hidden;
}

.custom-model-inner .close-btn {
  position: absolute;
  right: 0;
  top: -30px;
  cursor: pointer;
  z-index: 99;
  font-size: 18px;
}

.custom-model-inner .close-btn a {
  color: #fff;
}

.pop-up-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.pop-up-content-wrap .step {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.step-inner {
  flex: 1;
  padding: 0 20px 20px;
  max-height: 100%;
  overflow: scroll;
}

.woocommerce-checkout .step-inner {
  padding: 0;
}

.pop-up-content-wrap .address-field {
  width: 100%;
  margin-bottom: 10px;
  float: none;
}

.woocommerce-account .pop-up-content-wrap .form-row {
  width: 100%;
}

.pop-up-content-wrap.loading button {
  pointer-events: none;
}

.pop-up-content-wrap .step-title {
  margin-bottom: 20px;
  text-align: start;
  justify-content: flex-start;
}

.pop-up-content-wrap .step-title .wd-action-btn {
  margin-inline-start: auto;
}

.pop-up-content-wrap .step-title .wd-action-btn a:after {
  display: none;
}

.woocommerce-checkout .pop-up-content-wrap .step-title .wd-action-btn {
  display: none;
}

.woocommerce-checkout .pop-up-content-wrap .step-title {
  padding: 0 0 5px 0;
}

.step-title h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}


.step-title h4 {
  font-size: 16px;
}

/* .woocommerce-checkout .step-title h3 {
  font-size: 18px;
} */

.message-wrap {
  font-size: 14px;
  margin-top: 10px;
}

.pop-up-content-wrap h3 {
  margin-bottom: 0;
}

.pop-up-content-wrap p {
  margin-bottom: 0;
}

.custom-model-wrap {
  height: 100%;
}

.custom-model-wrap .select2-container {
  z-index: 99999999999;
}

.fc-disabled {
  background-color: #f3f4f6;
  color: #999;
  pointer-events: none;
}

.fc-direction-rtl .fc-toolbar-ltr {
  flex-direction: row;
}

.fc-today-button.fc-button {
  display: none;
}

.fc .fc-daygrid-day-number {
  font-weight: bold;
}

.fc .fc-daygrid-day-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

.fc .fc-daygrid-event {
  pointer-events: none;
  background-color: transparent;
  border: 0;
  font-size: 12px;
}

.fc .fc-col-header-cell-cushion {
  font-size: 14px;
}

/* @media screen and (max-width: 799px) { */
.fc .fc-daygrid-day-top {
  flex-direction: column;
  align-items: flex-start;
  padding: 0 3px;
  gap: 0;
}

.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
  min-height: auto;
}

.fc .fc-daygrid-day-number {
  padding-inline: 0;
}

.fc .fc-col-header-cell-cushion {
  font-size: 12px;
}

.fc .fc-daygrid-event {
  font-size: 10px;
}

/* } */

.fc-col-header {
  pointer-events: none;
}

.fc-h-event .fc-event-main {
  color: inherit;
}

.fc-day:not(.fc-disabled):not(.fc-day-other):not(.fc-day-disabled) {
  cursor: pointer;
}

.fc-day:not(.fc-disabled):not(.fc-day-other):not(.fc-day-disabled):hover {
  background-color: #fff8e1;
}

.fc .fc-scrollgrid,
.fc .fc-scrollgrid-section table {
  margin: 0;
}

.step-btn.btn-waze {
  background-color: #1a8bb8;
  /* darker blue */
  color: #fff;
  border-color: #126a91;
}

.step-btn.btn-waze:hover {
  background-color: #126a91;
  border-color: #0d516f;
  color: #fff;
}

.step-btn.btn-google {
  background-color: #d93025;
  /* Google red */
  color: #fff;
  border-color: #b5271f;
}

.step-btn.btn-google:hover {
  background-color: #b5271f;
  border-color: #961f19;
  color: #fff;
}

.selected-dates-wrap {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 15px;
  border-radius: 8px;
  border: 2px solid var(--btn-accented-bgcolor);
  color: var(--btn-accented-bgcolor);
  font-weight: 500;
}

.selected-dates-inner {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
}

button:is(.checkout-show-delivery-btn) {
  width: auto;
}

.selected-dates-wrap button {
  margin-inline-start: auto;
}

/* @media screen and (max-width: 1200px) { */
.selected-dates-wrap {
  font-size: 14px;
}


/* } */

.customer-details .dropdown-wrap {
  border: 1px solid var(--color-gray-200);
  margin: 0 !important;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(79, 87, 67, 0.2);
}

.dropdown-header h3 {
  margin: 0;
}

.dropdown-header #selected-slot-details {
  font-size: 16px;
  font-weight: 300;
}

.dropdown-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: start;
  cursor: pointer;
}

.dropdown-wrap:not(.disabled) .dropdown-header::after {
  font-size: var(--wd-arrow-icon-size, 24px);
  font-family: "woodmart-font";
  content: "\f129";
  transition: all 0.15s ease;
  transform-origin: center;
}

.dropdown-wrap:not(.disabled).open .dropdown-header::after {
  transform: rotate(180deg);
}

.dropdown-body {
  text-align: start;
  padding-top: 20px;
  overflow: hidden;
  /* keep good rendering when revealed */
  will-change: opacity, transform;
}

form.woocommerce-checkout #customer_details {
  max-width: 48%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.petit-cashback-btn {
  min-width: 120px;
}

button:is(.petit-cashback-btn),
.selected-dates-wrap .btn,
.btn:not(.btn-style-link).close-popup-btn {
  border-radius: var(--btn-accented-brd-radius);
  color: var(--btn-accented-color);
  box-shadow: var(--btn-accented-box-shadow);
  background-color: var(--btn-accented-bgcolor);
}

.fc .fc-button-primary {
  color: var(--btn-accented-color);
  box-shadow: var(--btn-accented-box-shadow);
  background-color: var(--btn-accented-bgcolor);
}

.subsection-title {
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
}

.woocommerce-additional-fields {
  padding-top: 10px;
  border-top: 1px solid #ccc;
  clear: both;
}

.form-row label {
  font-size: 13px;
  font-weight: 500;
}

div.woocommerce-shipping-fields:not(:has(> #ship-to-different-address)) {
  display: block;
}

form.woocommerce-checkout> :is(.customer-details, .woocommerce-NoticeGroup)>* {
  margin-bottom: 0 !important;
}

.shipping-address-wrap {
  margin-bottom: 15px;
}

.woocommerce-form-login.hidden-form,
.woocommerce-form-coupon,
.woocommerce-thankyou-order-received {
  background-color: #fff;
}

html .wd-buy-now-btn {
  border: 1px solid;
}

.bundle_form div.bundle_price:before {
  content: "סה״כ:";
}

.bundle_form div.bundle_price {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  margin-bottom: 20px !important;
}

.bundle_form div.bundle_price p.price,
.single-product .bundle_form div.bundle_price p.price {
  margin-bottom: 0;
}

body.woocommerce-cart .wd-button-wrapper:has(.delivery-btn) {
  display: none;
}

.woocommerce-info {
  font-weight: 500;
  border: 1px solid var(--blue-200) !important;
}

:is(div.woocommerce-error, ul.woocommerce-error) {
  border: 1px solid #fca5a5;
  /* light red border */
  background-color: #fee2e2;
  /* very light red background */
  color: #b91c1c;
  /* dark red text */
  font-weight: 500;
}

.woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-form-login-toggle .woocommerce-info {
  border: 0 !important;
}

.woocommerce-message {
  font-weight: 500;
  border: 1px solid var(--green-300) !important;
}

.pickup-address.hide {
  display: none !important;
}

.show-password-input {
  display: none !important;
}

.delivery-fields-toggle.box-wrap {
  text-align: center;
}

.wd-shipping-progress-bar {
  display: none;
}