/* Custom store UI overrides. Keep project-specific changes out of style.css. */

.order-view-btn {
  min-height: 38px;
  margin: 0;
  padding: 8px 16px !important;
  border: 1px solid #ff8a34 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #ed761f !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  box-shadow: none !important;
  white-space: nowrap;
}

.order-view-btn:hover,
.order-view-btn:focus {
  border-color: #ed761f !important;
  background: #fff7f1 !important;
  color: #d8600d !important;
  box-shadow: 0 3px 10px rgba(237, 118, 31, 0.12) !important;
}

.order-print-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  float: right;
  width: 38px;
  height: 38px;
  padding: 0 !important;
  border: 1px solid #e1e5ea !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #4e5664 !important;
  font-size: 17px !important;
  box-shadow: 0 2px 8px rgba(22, 34, 51, 0.06);
  transition: all 0.2s ease;
}

.order-print-btn:hover,
.order-print-btn:focus {
  border-color: #ff8a34 !important;
  background: #fff7f1 !important;
  color: #ed761f !important;
  box-shadow: 0 4px 12px rgba(237, 118, 31, 0.16);
  outline: none;
}

.orders-theme-loader {
  width: 100%;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 36px 0;
  color: #959caf;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.orders-loader-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
  color: #ed761f;
  box-shadow: 0 6px 18px rgba(237, 118, 31, 0.14);
}

.orders-loader-ring::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 4px solid #ffe2cd;
  border-top-color: #ff8a34;
  border-right-color: #ff8a34;
  border-radius: 50%;
  animation: orders-loader-spin 0.85s linear infinite;
}

.orders-loader-ring i {
  font-size: 20px;
  animation: orders-loader-pulse 1.2s ease-in-out infinite;
}

@keyframes orders-loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes orders-loader-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.72; }
  50% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .orders-loader-ring::before,
  .orders-loader-ring i {
    animation-duration: 1.8s;
  }
}

#viewOrderModal .order-status-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 0;
  width: 100%;
  margin: 4px 0 10px;
  padding: 10px 12px 8px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
}

#viewOrderModal .order-summary-strip {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr 1fr 0.9fr 1.1fr;
  gap: 10px;
  margin-bottom: 18px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#viewOrderModal .order-summary-item {
  position: relative;
  min-width: 0;
  min-height: 70px;
  padding: 12px 10px 11px 42px;
  overflow: hidden;
  border: 1px solid #f1dfcf;
  border-radius: 12px;
  background:
    radial-gradient(circle at 5% 0%, rgba(255, 164, 81, 0.13), transparent 42%),
    linear-gradient(135deg, #fffdfb 0%, #fff8f1 58%, #ffffff 100%);
  box-shadow: 0 7px 18px rgba(42, 51, 70, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#viewOrderModal .order-summary-item:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 123, 19, 0.28);
  box-shadow: 0 8px 18px rgba(38, 48, 68, 0.09);
}

#viewOrderModal .order-summary-item::before {
  position: absolute;
  top: 13px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: #fff0e2;
  color: #eb7b18;
  font-family: FontAwesome;
  font-size: 11px;
  box-shadow: inset 0 0 0 1px rgba(239, 123, 19, 0.12);
}

#viewOrderModal .order-summary-item:nth-child(1)::before {
  content: "\f02b";
}

#viewOrderModal .order-summary-item:nth-child(2)::before {
  content: "\f007";
}

#viewOrderModal .order-summary-item:nth-child(3)::before {
  content: "\f07a";
}

#viewOrderModal .order-summary-item:nth-child(4)::before {
  content: "\f09d";
}

#viewOrderModal .order-summary-item:nth-child(5)::before {
  content: "\f017";
}

#viewOrderModal .order-summary-item > span {
  display: block;
  margin-bottom: 6px;
  color: #929baa;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

#viewOrderModal .order-summary-item > strong {
  display: block;
  overflow: hidden;
  color: #202b42;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#viewOrderModal .order-summary-order > strong {
  color: #e66f09;
  font-size: 12px;
}

#viewOrderModal .order-summary-order small {
  display: block;
  margin: 3px 0 0 !important;
  font-size: 8px;
  line-height: 1.25;
}

#viewOrderModal .order-summary-status {
  width: max-content;
  max-width: none;
  padding: 5px 8px;
  overflow: visible;
  border-radius: 999px;
  font-size: 8px !important;
  letter-spacing: 0.01em;
  text-overflow: clip;
  white-space: nowrap;
}

#viewOrderModal .order-summary-status.is-pending {
  background: #fff1d8;
  color: #a96808;
}

#viewOrderModal .order-summary-status.is-active {
  background: #e4f3ff;
  color: #1672ad;
}

#viewOrderModal .order-summary-status.is-success {
  background: #dcf7e9;
  color: #087a4b;
}

#viewOrderModal .order-summary-status.is-danger {
  background: #ffe4e7;
  color: #c93645;
}

#viewOrderModal .order-summary-status.is-muted {
  background: #e9edf2;
  color: #667085;
}

#viewOrderModal .order-contact-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 2px;
  border: 1px solid #e7ebf0;
  border-radius: 14px;
  background: #e7ebf0;
  box-shadow: 0 8px 24px rgba(32, 43, 66, 0.05);
}

#viewOrderModal .order-popup-overview .order-contact-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 68px;
  margin: 0 !important;
  padding: 13px 52px 13px 52px;
  background: #fff;
}

#viewOrderModal .order-contact-item::before {
  position: absolute;
  top: 16px;
  left: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: #fff3e8;
  color: #ed7b16;
  font-family: FontAwesome;
  font-size: 12px;
}

#viewOrderModal .order-contact-date::before { content: "\f073"; }
#viewOrderModal .order-contact-mobile::before { content: "\f095"; }
#viewOrderModal .order-contact-address::before { content: "\f041"; }
#viewOrderModal .order-contact-location::before { content: "\f05a"; }

#viewOrderModal .order-contact-address,
#viewOrderModal .order-contact-location {
  grid-column: 1 / -1;
}

#viewOrderModal .order-contact-label {
  display: block;
  margin-bottom: 4px;
  color: #929baa;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

#viewOrderModal .order-contact-item > strong {
  color: #344054;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#viewOrderModal .order-contact-item .mapmarker {
  position: absolute;
  top: 50%;
  right: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transform: translateY(-50%);
}

#viewOrderModal .order-contact-item .mapmarker > a:not(.order-copy-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #dde2e8;
  border-radius: 8px;
  background: #fff;
  color: #ef7b13;
}

#viewOrderModal .order-contact-item .order-copy-button {
  float: none;
  margin: 0;
}

body #viewOrderModal .order-popup-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 12px !important;
  color: #172033;
  font-size: 16px;
  font-weight: 800;
}

body #viewOrderModal .order-popup-section-title::before {
  content: "\f03a";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #fff0e2, #ffe4ca);
  color: #eb7610;
  font-family: FontAwesome;
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(239, 123, 19, 0.12);
}

body #viewOrderModal .order-items-card {
  overflow: hidden;
  border: 1px solid #e5e9ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(32, 43, 66, 0.05);
}

body #viewOrderModal .order-items-card .card-body {
  padding: 10px;
}

body #viewOrderModal .order-item-row {
  margin: 0 0 8px !important;
  padding: 14px 15px 14px 18px !important;
  border: 0;
  border-radius: 10px !important;
  background: #f8fafc !important;
  box-shadow: inset 3px 0 0 #f39a4b;
}

body #viewOrderModal .order-item-row:last-child {
  margin-bottom: 0 !important;
}

body #viewOrderModal .order-item-name {
  color: #253047;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

body #viewOrderModal .order-item-price {
  padding: 4px 9px;
  border-radius: 8px;
  background: #fff2e7;
  color: #d96808;
  font-size: 12px;
  font-weight: 800;
}

body #viewOrderModal .order-note-card {
  border: 1px solid #f0dfc8;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffdf9 0%, #fff8ed 100%);
  box-shadow: 0 7px 20px rgba(32, 43, 66, 0.045);
}

#viewOrderModal .order-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  align-items: stretch;
  gap: 14px;
  margin: 18px 0 24px;
}

#viewOrderModal .order-support-notes {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body #viewOrderModal .order-support-notes .order-note-card {
  flex: 1 1 auto;
  margin-bottom: 0 !important;
}

body #viewOrderModal .order-support-notes .order-note-card + .order-note-card {
  margin-top: 10px;
}

body #viewOrderModal .order-note-card .card-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
}

#viewOrderModal .order-note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #ffead2;
  color: #e87510;
  font-size: 13px;
}

#viewOrderModal .order-note-content {
  min-width: 0;
}

#viewOrderModal .order-note-content > span {
  display: block;
  margin-bottom: 4px;
  color: #a06229;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body #viewOrderModal .order-note-content p {
  margin: 0 !important;
  color: #414b5f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

body #viewOrderModal .order-description-card {
  border-color: #dce5ef;
  background: linear-gradient(135deg, #fbfdff 0%, #f4f8fc 100%);
}

#viewOrderModal .order-description-card .order-note-icon {
  background: #e8f1fb;
  color: #3b75ad;
}

#viewOrderModal .order-description-card .order-note-content > span {
  color: #52769a;
}

body #viewOrderModal .order-total-box {
  position: relative;
  width: min(100%, 370px);
  margin: 0;
  padding: 47px 18px 14px;
  overflow: hidden;
  border: 1px solid #e3e7ed;
  border-radius: 14px;
  background: linear-gradient(155deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 28px rgba(32, 43, 66, 0.07);
}

body #viewOrderModal .order-total-box::before {
  content: "Order Summary";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  padding: 12px 18px;
  border-bottom: 1px solid #e8ebef;
  background: #fbfcfd;
  color: #202b42;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body #viewOrderModal .order-total-box > div {
  margin: 0 !important;
  padding: 8px 0;
  border-bottom: 1px dashed #e3e7ec;
  color: #667085;
  font-size: 12px;
  font-weight: 600 !important;
  line-height: 1.35;
}

body #viewOrderModal .order-total-box > div:last-child {
  margin-top: 4px !important;
  padding: 12px 0 2px;
  border-top: 0;
  border-bottom: 0;
  color: #e56f0b;
  font-size: 16px;
  font-weight: 800 !important;
}

#viewOrderModal .order-status-progress.has-terminal-step {
  grid-template-columns: repeat(5, minmax(100px, 1fr));
}

#viewOrderModal .order-status-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  color: #a5adba;
  text-align: center;
  transition: color 0.25s ease;
}

#viewOrderModal .order-status-step:not(:last-of-type)::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 15px;
  left: calc(50% + 19px);
  width: calc(100% - 38px);
  height: 3px;
  border-radius: 4px;
  background: #dfe5eb;
  transition: background-color 0.3s ease;
}

#viewOrderModal .order-status-step.is-complete:not(:last-of-type)::after {
  background: #18ad70;
}

#viewOrderModal .order-status-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 6px;
  border: 3px solid #eef2f5;
  border-radius: 50%;
  background: #b7bec7;
  color: #ffffff;
  font-size: 12px;
  box-shadow: 0 0 0 3px #ffffff;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

#viewOrderModal .order-status-step.is-complete {
  color: #087a4b;
}

#viewOrderModal .order-status-step.is-complete .order-status-step-icon {
  border-color: #d9f5e9;
  background: #0aa568;
}

#viewOrderModal .order-status-step.is-current {
  color: #df7413;
}

#viewOrderModal .order-status-step.is-current .order-status-step-icon {
  border-color: #ffe3c8;
  background: #f28a2b;
  box-shadow: 0 0 0 4px #fff2e5;
}

#viewOrderModal .order-status-step.is-terminal-step {
  color: #df4652;
}

#viewOrderModal .order-status-step.is-terminal-step .order-status-step-icon {
  border-color: #fde0e3;
  background: #e84f5b;
  box-shadow: 0 0 0 4px #fff0f2;
}

#viewOrderModal .order-status-step strong {
  color: currentColor;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

#viewOrderModal .order-status-step small {
  margin-top: 3px;
  color: #8390a2;
  font-size: 8px;
  line-height: 1.25;
}

#viewOrderModal .order-status-stopped {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #fff1f2;
  color: #d9414b;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

#viewOrderModal .order-status-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 10px -6px -6px;
  padding: 14px;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  background: linear-gradient(135deg, #f9fbfd 0%, #f4f7fa 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#viewOrderModal .order-status-primary-actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  width: auto;
  margin: 0;
}

#viewOrderModal .order-status-primary-actions > div {
  width: auto;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  flex: 0 0 auto;
}

#viewOrderModal .order-status-primary-actions > .col-md-6:not(.orderManagementOptionButton) {
  display: none;
}

#viewOrderModal .order-status-primary-actions .orderManagementOptionButton {
  display: flex !important;
  gap: 10px;
}

#viewOrderModal .order-status-primary-actions a,
#viewOrderModal .order-status-actions > div > button,
#viewOrderModal .order-status-actions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 124px;
  min-height: 46px;
  margin: 0 !important;
  padding: 11px 20px !important;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#viewOrderModal .order-status-primary-actions .rightCheckButton::after,
#viewOrderModal .order-status-primary-actions .closedMarkButton::after {
  content: attr(title);
  margin-left: 8px;
}

#viewOrderModal .order-status-primary-actions .markAsDeliveryBtn {
  min-width: 178px;
}

#viewOrderModal .order-status-primary-actions .rightCheckButton {
  border: 1px solid #18a96b !important;
  background: linear-gradient(135deg, #20b878, #10975f) !important;
  color: #ffffff !important;
  box-shadow: 0 7px 16px rgba(16, 151, 95, 0.22);
}

#viewOrderModal .order-status-primary-actions .closedMarkButton {
  border: 1px solid #eb5a65 !important;
  background: linear-gradient(135deg, #f36772, #df4753) !important;
  color: #ffffff !important;
  box-shadow: 0 7px 16px rgba(223, 71, 83, 0.2);
}

#viewOrderModal .order-status-primary-actions .markAsDeliveryBtn {
  border: 1px solid #20ad57 !important;
  background: linear-gradient(135deg, #28b95e, #159847) !important;
  color: #ffffff !important;
  box-shadow: 0 7px 16px rgba(21, 152, 71, 0.22);
}

#viewOrderModal .order-status-primary-actions .ReadyToPickUpButotn {
  min-width: 194px;
  border: 1px solid #34415d !important;
  background: linear-gradient(135deg, #34415d, #202b43) !important;
  color: #ffffff !important;
  box-shadow: 0 7px 16px rgba(32, 43, 67, 0.22);
}

#viewOrderModal .order-status-actions .btn-danger {
  min-width: 154px;
  border: 1.5px solid #ee4b57 !important;
  background: #ffffff !important;
  color: #e73f4a !important;
  box-shadow: 0 5px 12px rgba(231, 63, 74, 0.1);
}

#viewOrderModal .order-status-primary-actions .markAsDeliveryBtn::before,
#viewOrderModal .order-status-actions .btn-danger::before {
  display: inline-block;
  margin-right: 9px;
  font-family: FontAwesome;
  font-size: 14px;
  font-weight: normal;
}

#viewOrderModal .order-status-primary-actions .markAsDeliveryBtn::before {
  content: "\f00c";
}

#viewOrderModal .order-status-actions .btn-danger::before {
  content: "\f00d";
}

#viewOrderModal .order-status-primary-actions a:hover,
#viewOrderModal .order-status-actions button:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

#viewOrderModal .order-status-primary-actions a:active,
#viewOrderModal .order-status-actions button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(32, 43, 67, 0.14);
}

#viewOrderModal .order-status-primary-actions a:focus-visible,
#viewOrderModal .order-status-actions button:focus-visible {
  outline: 3px solid rgba(255, 164, 81, 0.3);
  outline-offset: 2px;
}

#viewOrderModal .order-status-actions .is-action-disabled {
  pointer-events: none !important;
  opacity: 0.52;
}

#viewOrderModal .order-status-actions .is-action-loading {
  pointer-events: none !important;
  opacity: 1;
  cursor: wait;
}

#viewOrderModal .order-status-actions .is-action-loading .fa-spinner {
  margin-right: 9px;
}

.is-view-order-loading {
  pointer-events: none !important;
  cursor: wait !important;
  opacity: 0.78;
}

.is-view-order-loading .fa-spinner {
  margin-right: 8px;
}

#viewOrderModal .order-status-actions > .col-md-6 {
  width: auto;
  max-width: none;
  padding: 0;
  flex: 0 0 auto;
}

body #viewOrderModal .modal-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 17px 24px !important;
  overflow: hidden;
  border-bottom: 1px solid #e8ebf0;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 164, 81, 0.12), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #fffaf5 100%);
}

body #viewOrderModal .modal-header::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -72px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 123, 19, 0.10), transparent 68%);
  pointer-events: none;
}

body #viewOrderModal .modal-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #172033;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

body #viewOrderModal .modal-title::after {
  content: "Order information and status";
  display: block;
  margin-top: 3px;
  color: #8a94a5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

body #viewOrderModal .order-modal-back {
  position: relative;
  z-index: 1;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin-right: 13px;
  border: 1px solid #f0d5bb;
  border-radius: 11px;
  background: #fff7ef;
  color: #df7010;
  box-shadow: 0 5px 13px rgba(239, 123, 19, 0.10);
}

body #viewOrderModal .order-modal-back:hover,
body #viewOrderModal .order-modal-back:focus {
  border-color: #ef7b13;
  background: #ef7b13;
  color: #fff;
  box-shadow: 0 7px 16px rgba(239, 123, 19, 0.22);
  transform: translateX(-1px);
}

body #viewOrderModal .modal-header .close {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin-left: auto;
  padding: 0;
  border: 1px solid #e2e6eb;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.88);
  opacity: 1;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

body #viewOrderModal .modal-header .close img {
  width: 13px;
  height: 13px;
  opacity: 0.65;
}

body #viewOrderModal .modal-header .close:hover,
body #viewOrderModal .modal-header .close:focus {
  border-color: #f1b8bd;
  background: #fff0f1;
  opacity: 1;
  transform: rotate(4deg);
  outline: none;
}

body #viewOrderModal .modal-header .close:hover img,
body #viewOrderModal .modal-header .close:focus img {
  opacity: 0.9;
}

body #viewOrderModal .modal-body {
  scrollbar-width: thin;
  scrollbar-color: #efa05a #fff3e8;
}

body #viewOrderModal .modal-body::-webkit-scrollbar {
  width: 7px;
}

body #viewOrderModal .modal-body::-webkit-scrollbar-track {
  margin: 6px 0;
  border-radius: 999px;
  background: #fff3e8;
}

body #viewOrderModal .modal-body::-webkit-scrollbar-thumb {
  border: 2px solid #fff3e8;
  border-radius: 999px;
  background: linear-gradient(180deg, #f6ad69 0%, #e97816 100%);
}

body #viewOrderModal .modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ef9848 0%, #dc690a 100%);
}

body #postponeMealModal .modal-dialog {
  width: calc(100% - 32px);
  max-width: 760px;
  margin: 24px auto;
}

body #postponeMealModal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(24, 32, 48, 0.22);
}

body #postponeMealModal .modal-body {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 20px 26px 26px !important;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #efa05a #fff3e8;
}

body #postponeMealModal .modal-body::-webkit-scrollbar {
  width: 7px;
}

body #postponeMealModal .modal-body::-webkit-scrollbar-track {
  background: #fff3e8;
}

body #postponeMealModal .modal-body::-webkit-scrollbar-thumb {
  border: 2px solid #fff3e8;
  border-radius: 999px;
  background: #eb7b18;
}

#postponeMealModal .postpone-modal-header {
  position: relative;
  z-index: 15;
  display: flex;
  align-items: center;
  min-height: 76px;
  margin: 0;
  padding: 17px 24px !important;
  border-bottom: 1px solid #e8ebf0;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 164, 81, 0.12), transparent 34%),
    linear-gradient(135deg, #fff 0%, #fff9f3 100%);
}

#postponeMealModal .postpone-modal-header::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -72px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 123, 19, 0.10), transparent 68%);
  pointer-events: none;
}

body #postponeMealModal .postpone-modal-back {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin-right: 13px;
  padding: 0;
  border: 1px solid #efd5bc;
  border-radius: 11px;
  background: #fff7ef;
  color: #df7010;
  font-size: 14px;
  box-shadow: 0 5px 13px rgba(239, 123, 19, 0.10);
}

body #postponeMealModal .postpone-modal-back:hover,
body #postponeMealModal .postpone-modal-back:focus {
  border-color: #ef7b13;
  background: #ef7b13;
  color: #fff;
  outline: none;
}

body #postponeMealModal .postpone-modal-header .modal-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #172033;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

body #postponeMealModal .postpone-modal-header .modal-title::after {
  content: "Review and reschedule this meal";
  display: block;
  margin-top: 3px;
  color: #8a94a5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

body #postponeMealModal .postpone-modal-header .close {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin-left: auto;
  padding: 0;
  border: 1px solid #e2e6eb;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.88);
  opacity: 1;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

body #postponeMealModal .postpone-modal-header .close img {
  width: 13px;
  height: 13px;
  opacity: .65;
}

body #postponeMealModal .postpone-modal-header .close:hover,
body #postponeMealModal .postpone-modal-header .close:focus {
  border-color: #f1b8bd;
  background: #fff0f1;
  opacity: 1;
  transform: rotate(4deg);
  outline: none;
}

body #postponeMealModal .postpone-modal-header .close:hover img,
body #postponeMealModal .postpone-modal-header .close:focus img {
  opacity: .9;
}

body #postponeMealModal #postponeCurrentItemDate,
body #postponeMealModal #itemNewDate {
  position: relative;
  align-items: center;
  margin: 0 0 9px !important;
  padding: 13px 15px;
  border: 1px solid #f0d8c0;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffaf5 0%, #fff2e6 100%);
}

body #postponeMealModal #itemNewDate {
  margin-top: 18px !important;
}

body #postponeMealModal .pp_date_heading {
  margin: 0 !important;
  color: #d96c0d !important;
  font-size: 12px;
  font-weight: 800 !important;
}

body #postponeMealModal .postpone-item-card {
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #e3e8ee !important;
  border-radius: 12px;
  background: #fff !important;
  box-shadow: 0 7px 20px rgba(32, 43, 66, 0.06) !important;
}

body #postponeMealModal .postpone-item-card .card-header {
  padding: 13px 15px !important;
  background: #fff !important;
}

body #postponeMealModal #postponeCurrentItemSummary,
body #postponeMealModal #itemSummary {
  color: #3d475a;
  font-size: 12px !important;
  line-height: 1.55;
}

#postponeMealModal #postponeCurrentItemSummary > a,
#postponeMealModal #itemSummary > a {
  cursor: pointer;
}

#postponeMealModal #postponeCurrentItemSummary > a > i,
#postponeMealModal #itemSummary > a > i {
  position: relative;
  z-index: 2;
  transition: transform .32s cubic-bezier(.4, 0, .2, 1), color .2s ease;
  transform-origin: center;
}

#postponeMealModal #postponeCurrentItemSummary > a:not(.collapsed) > i,
#postponeMealModal #itemSummary > a:not(.collapsed) > i {
  color: #ef7b13;
  transform: rotate(180deg);
}

#postponeMealModal #postponeCurrentItemSummary .collapsing,
#postponeMealModal #itemSummary .collapsing {
  overflow: hidden;
  opacity: .65;
  transition: height .38s cubic-bezier(.4, 0, .2, 1), opacity .24s ease;
}

#postponeMealModal #postponeCurrentItemSummary .collapse.show,
#postponeMealModal #itemSummary .collapse.show {
  animation: postponeItemsReveal .3s ease both;
}

@keyframes postponeItemsReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body #postponeMealModal #postponeCurrentItemSummary .collapse > .row > div,
body #postponeMealModal #itemSummary .collapse > .row > div {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding-right: 20px !important;
  padding-left: 20px !important;
}

body #postponeMealModal #postponeCurrentItemSummary .collapse > .row > div:nth-child(even),
body #postponeMealModal #itemSummary .collapse > .row > div:nth-child(even) {
  justify-content: flex-end;
}

body #postponeMealModal #postponeCurrentItemSummary .collapse > .row,
body #postponeMealModal #itemSummary .collapse > .row {
  width: calc(100% - 32px) !important;
  margin-right: 16px !important;
  margin-left: 16px !important;
}

body #postponeMealModal #postponeCurrentItemSummary > .row:last-child,
body #postponeMealModal #itemSummary > .row:last-child {
  align-items: center;
  margin-top: 6px !important;
  padding: 10px 20px 0;
  border-top: 1px dashed #dfe4ea;
}

body #postponeMealModal #modal_specific_date_buttons,
body #postponeMealModal #postpone_same_items_div {
  min-height: 48px;
  margin: 14px 0 !important;
  padding: 9px 12px;
  border: 1px solid #e5e9ee;
  border-radius: 11px;
  background: #fafbfc;
}

#postponeMealModal .postpone-options-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

body #postponeMealModal .postpone-options-row #modal_specific_date_buttons,
body #postponeMealModal .postpone-options-row #postpone_same_items_div {
  width: 100%;
  margin: 0 !important;
  align-items: center !important;
  justify-content: space-between !important;
}

body #postponeMealModal #postpone_same_items_div .switch {
  margin: 0 0 0 10px;
  align-self: center;
}

body #postponeMealModal #postponePreferredDatelbl,
body #postponeMealModal #postpone_same_items_div > label:first-child {
  margin: 0;
  color: #4b5567;
  font-size: 12px !important;
  font-weight: 700;
}

body #postponeMealModal #btnPostponePreferredDate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 10px !important;
  padding: 0 !important;
  border: 1px solid #efc79f;
  border-radius: 9px;
  background: #fff3e8;
  color: #df7010;
  font-size: 14px !important;
  box-shadow: none;
}

body #postponeMealModal #btnPostponePreferredDate:hover,
body #postponeMealModal #btnPostponePreferredDate:focus,
body #postponeMealModal #btnPostponePreferredDate:active {
  border-color: #efc79f !important;
  background: #fff3e8 !important;
  color: #df7010 !important;
  box-shadow: 0 0 0 3px rgba(239, 123, 19, 0.10) !important;
  outline: none;
}

body #postponeMealModal #btnPostponePreferredDate i,
body #postponeMealModal #btnPostponePreferredDate:hover i,
body #postponeMealModal #btnPostponePreferredDate:focus i,
body #postponeMealModal #btnPostponePreferredDate:active i,
body #postponeMealModal #btnPostponePreferredDate.active i {
  color: #df7010 !important;
}

.datepicker table tr td.day:not(.disabled),
.datepicker table tr th.prev,
.datepicker table tr th.next,
.datepicker table tr th.datepicker-switch,
.datepicker table tr td span:not(.disabled) {
  cursor: pointer;
}

body #postponeMealModal #postponeItemTotal {
  padding: 15px 17px;
  border: 1px solid #f0d8bd;
  border-radius: 13px;
  background: linear-gradient(135deg, #fffaf4 0%, #ffefdf 100%);
  box-shadow: none;
}

body #postponeMealModal .postpone-total-row {
  margin: 16px 0 0 !important;
}

body #postponeMealModal .postpone-total-row > .col-lg-12 {
  padding: 0;
}

body #postponeMealModal #postponeItemTotal p {
  margin: 0 !important;
  padding: 6px 0;
  color: #50596a !important;
  font-size: 12px;
  line-height: 1.45;
}

body #postponeMealModal #postponeItemTotal p:last-child {
  margin-top: 5px !important;
  padding-top: 11px;
  border-top: 1px dashed #e3c8ab;
  color: #d96c0d !important;
  font-size: 14px;
  font-weight: 800;
}

body #postponeMealModal .postpone-modal-footer {
  margin-top: 18px !important;
  padding-top: 16px;
  border-top: 1px solid #e9edf1;
}

body #postponeMealModal #btn-postpone-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 145px;
  min-height: 42px;
  margin: 0 !important;
  padding: 10px 20px;
  border: 1px solid #df6905 !important;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5943e 0%, #ef7b13 55%, #df6905 100%) !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  opacity: 1;
  text-shadow: 0 1px 1px rgba(126, 53, 0, 0.16);
  box-shadow: 0 8px 19px rgba(232, 117, 16, 0.22);
}

body #postponeMealModal #btn-postpone-checkout:hover,
body #postponeMealModal #btn-postpone-checkout:focus {
  border-color: #d96400 !important;
  background: linear-gradient(135deg, #ee8530 0%, #e66f0a 100%) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(232, 117, 16, 0.28);
}

body #postponeMealModal #btn-postpone-checkout[disabled] {
  border-color: #efb985 !important;
  background: #f7c99f !important;
  color: rgba(255, 255, 255, 0.92) !important;
  opacity: 1 !important;
  text-shadow: none;
  box-shadow: none;
  cursor: not-allowed;
}

#postponeMealModal .is-postpone-loading {
  position: relative;
}

#postponeMealModal .postpone-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: inherit;
  background: rgba(255, 252, 248, 0.82);
  color: #b85c0b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(2px);
}

#postponeMealModal .postpone-loading-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid #f0cfaf;
  border-radius: 14px;
  background: #fff;
  color: #ef7b13;
  font-size: 20px;
  box-shadow: 0 10px 25px rgba(239, 123, 19, 0.16);
}

body #viewOrderModal .order-status-card {
  overflow: hidden;
  margin-top: 6px;
  border: 1px solid #e2e7ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(32, 43, 66, 0.07);
}

body #viewOrderModal .order-status-card .card-body {
  padding: 0;
}

body #viewOrderModal .order-status-card h4 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 !important;
  padding: 15px 18px;
  border-bottom: 1px solid #e9edf2;
  background: linear-gradient(135deg, #fbfcfd 0%, #fff8f1 100%);
  color: #1f2a40;
  font-size: 14px;
  font-weight: 800;
}

body #viewOrderModal .order-status-card h4::before {
  content: "\f0ae";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #ffead7;
  color: #e87510;
  font-family: FontAwesome;
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(239, 123, 19, 0.12);
}

body #viewOrderModal .order-status-progress {
  gap: 0;
  margin: 0;
  padding: 15px 16px 17px;
  background: #fff;
}

body #viewOrderModal .order-status-step {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body #viewOrderModal .order-status-step.is-complete {
  border: 0;
  background: transparent;
}

body #viewOrderModal .order-status-step.is-current {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body #viewOrderModal .order-status-step.is-terminal-step {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body #viewOrderModal .order-status-step:not(:last-of-type)::after {
  top: 15px;
  left: calc(50% + 19px);
  width: calc(100% - 38px);
  height: 3px;
}

body #viewOrderModal .order-status-step strong {
  font-size: 10px;
  font-weight: 800;
}

body #viewOrderModal .order-status-step small {
  margin-top: 3px;
  font-size: 8px;
}

body #viewOrderModal .order-status-actions {
  margin: 0;
  padding: 13px 16px;
  border: 0;
  border-top: 1px solid #e9edf2;
  border-radius: 0;
  background: #fafbfc;
  box-shadow: none;
}

body #viewOrderModal .order-status-primary-actions a,
body #viewOrderModal .order-status-actions > div > button,
body #viewOrderModal .order-status-actions > button {
  min-height: 38px;
  padding: 9px 16px !important;
  border-radius: 9px;
  font-size: 12px;
}

@media (max-width: 767.98px) {
  body #postponeMealModal .modal-dialog {
    width: calc(100% - 20px);
    margin: 10px auto;
  }

  body #postponeMealModal .modal-body {
    max-height: calc(100vh - 20px);
    padding: 16px 16px 20px !important;
  }

  #postponeMealModal .postpone-modal-header {
    min-height: 68px;
    padding: 14px 16px !important;
  }

  body #postponeMealModal .postpone-modal-header .modal-title {
    font-size: 18px;
  }

  body #postponeMealModal .postpone-modal-header .modal-title::after {
    font-size: 8px;
  }

  #postponeMealModal .postpone-options-row {
    grid-template-columns: 1fr;
  }

  body #postponeMealModal #postponeCurrentItemDate > div,
  body #postponeMealModal #itemNewDate > div {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    text-align: left !important;
  }

  body #postponeMealModal #postponeCurrentItemDate .time,
  body #postponeMealModal #itemNewDate .time {
    margin-top: 5px;
  }

  body #viewOrderModal .modal-header {
    min-height: 68px;
    padding: 14px 16px !important;
  }

  body #viewOrderModal .modal-title {
    font-size: 18px;
  }

  body #viewOrderModal .modal-title::after {
    font-size: 8px;
  }

  #viewOrderModal .order-support-grid {
    grid-template-columns: 1fr;
  }

  body #viewOrderModal .order-total-box {
    width: 100%;
  }

  #viewOrderModal .order-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #viewOrderModal .order-summary-item {
    min-height: 66px;
  }

  #viewOrderModal .order-summary-item:last-child {
    grid-column: 1 / -1;
  }

  #viewOrderModal .order-contact-panel {
    grid-template-columns: 1fr;
  }

  #viewOrderModal .order-contact-address,
  #viewOrderModal .order-contact-location {
    grid-column: auto;
  }

  #viewOrderModal .order-popup-overview .order-contact-item {
    padding-right: 52px;
  }

  #viewOrderModal .order-status-progress {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  body #viewOrderModal .order-status-step {
    align-items: flex-start;
    min-height: 38px;
    padding-left: 44px;
    text-align: left;
  }

  #viewOrderModal .order-status-step-icon {
    position: absolute;
    top: 0;
    left: 0;
  }

  #viewOrderModal .order-status-step:not(:last-of-type)::after {
    display: none;
  }

  #viewOrderModal .order-status-actions,
  #viewOrderModal .order-status-primary-actions {
    width: 100%;
  }

  #viewOrderModal .order-status-actions > .col-md-6,
  #viewOrderModal .order-status-primary-actions > div,
  #viewOrderModal .order-status-primary-actions a,
  #viewOrderModal .order-status-actions button {
    width: 100%;
  }
}
