/* Order Products Styles - v0.1.0 - Quick Order Theme */
:root {
  --op-gap: 16px;
  --op-radius: 10px;
  --op-bg: #fff;
  --op-muted: #666;
  --op-border: #e1e8ed;
  --op-primary: #bf0716;
  --op-primary-dark: #a1000d;
  --op-danger: #e74c3c;
  --op-success: #4caf50;
  --op-bg-light: #f8f4ed;
  --height-modal: 650px;
}

@charset "utf-8";
html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  font-family: sans-serif;
}
.op-modal,
.op-cart,
.op-confirm-modal,
.cart-add {
  body {
    margin: 0;
  }

  article,
  aside,
  details,
  figcaption,
  figure,
  footer,
  header,
  main,
  menu,
  nav,
  section,
  summary {
    display: block;
  }

  audio,
  canvas,
  progress,
  video {
    display: inline-block;
  }

  audio:not([controls]) {
    display: none;
    height: 0;
  }

  progress {
    vertical-align: baseline;
  }

  [hidden],
  template {
    display: none;
  }

  a {
    background-color: transparent;
  }

  a:active,
  a:hover {
    outline-width: 0;
  }

  abbr[title] {
    border-bottom: none;
    text-decoration: none;
  }

  b,
  strong {
    font-weight: inherit;
    font-weight: bolder;
  }

  dfn {
    font-style: italic;
  }

  mark {
    background-color: #ff0;
    color: #000;
  }

  small {
    display: inline-block;
    font-size: 80%;
  }

  img {
    border-style: none;
  }

  svg:not(:root) {
    overflow: hidden;
  }

  button,
  input,
  select,
  textarea {
    font: inherit;
  }

  optgroup {
    font-weight: 700;
  }

  button,
  input,
  select {
    overflow: visible;
  }

  button,
  select {
    text-transform: none;
  }

  [type="button"],
  [type="reset"],
  [type="submit"],
  button {
    cursor: pointer;
  }

  [disabled] {
    cursor: default;
  }

  [type="reset"],
  [type="submit"],
  button,
  html [type="button"] {
    -webkit-appearance: button;
  }

  button::-moz-focus-inner,
  input::-moz-focus-inner {
    border: 0;
    padding: 0;
  }

  button:-moz-focusring,
  input:-moz-focusring {
    outline: 1px dotted ButtonText;
  }

  fieldset {
    border: 1px solid silver;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
  }

  blockquote,
  dl,
  figure,
  form,
  ol,
  p,
  pre,
  ul {
    margin-bottom: 1.3em;
  }

  form p {
    margin-bottom: 0.5em;
  }

  body {
    line-height: 1.6;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    text-wrap: balance;
    color: #555;
    margin-bottom: 0.5em;
    margin-top: 0;
    text-rendering: optimizeSpeed;
    width: 100%;
  }

  legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
  }

  textarea {
    overflow: auto;
  }

  [type="checkbox"],
  [type="radio"] {
    box-sizing: border-box;
    padding: 0;
  }

  [type="number"]::-webkit-inner-spin-button,
  [type="number"]::-webkit-outer-spin-button {
    height: auto;
  }

  [type="search"] {
    -webkit-appearance: textfield;
  }

  [type="search"]::-webkit-search-cancel-button,
  [type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  *,
  :after,
  :before,
  html {
    box-sizing: border-box;
  }

  html {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    background-attachment: fixed;
  }

  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #777;
  }

  .xdebug-var-dump {
    position: relative;
    z-index: 1000;
  }

  hr {
    border-width: 0;
    border-top: 1px solid;
    margin: 15px 0;
    opacity: 0.1;
  }

  img {
    display: inline-block;
    height: auto;
    max-width: 100%;
    vertical-align: middle;
  }

  figure {
    margin: 0;
  }

  pre {
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    overflow-x: auto;
    padding: 20px;
    width: 100%;
  }

  p:empty {
    display: none;
  }
  a,
  button,
  input {
    touch-action: manipulation;
  }

  ins {
    text-decoration: none;
  }

  embed,
  iframe,
  object {
    max-width: 100%;
  }

  table {
    border-color: #ececec;
    border-spacing: 0;
    margin-bottom: 1em;
    width: 100%;
  }

  td,
  th {
    border-bottom: 1px solid #ececec;
    font-size: 0.9em;
    line-height: 1.3;
    padding: 0.5em;
    text-align: left;
  }

  td {
    color: #666;
  }

  td:first-child,
  th:first-child {
    padding-left: 0;
  }

  td:last-child,
  th:last-child {
    padding-right: 0;
  }

  .dark td,
  .dark th {
    border-color: hsla(0, 0%, 100%, 0.08);
  }

  td .label,
  td dl,
  td form,
  td input,
  td label,
  td p,
  td select {
    margin: 0.5em 0;
  }

  label {
    color: #222;
  }

  form {
    margin-bottom: 0;
  }

  .select-resize-ghost,
  .select2-container .select2-choice,
  .select2-container .select2-selection,
  input[type="date"],
  input[type="email"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="text"],
  input[type="url"],
  select,
  textarea {
    box-sizing: border-box;
    transition: color 0.3s, border 0.3s, background 0.3s, opacity 0.3s;
  }

  @media (max-width: 849px) {
    .select-resize-ghost,
    .select2-container .select2-choice,
    .select2-container .select2-selection,
    input[type="date"],
    input[type="email"],
    input[type="number"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="text"],
    input[type="url"],
    select,
    textarea {
      font-size: 1rem;
      width: 100%;
    }
  }

  input:hover,
  select:hover,
  textarea:hover {
    /* box-shadow: inset 0 -1.8em 1em 0 transparent; */
  }

  input[type="email"],
  input[type="number"],
  input[type="search"],
  input[type="tel"],
  input[type="text"],
  input[type="url"],
  textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }

  textarea {
    min-height: 120px;
    padding-top: 0.7em;
  }

  input[type="email"]:focus,
  input[type="number"]:focus,
  input[type="password"]:focus,
  input[type="search"]:focus,
  input[type="tel"]:focus,
  input[type="text"]:focus,
  select:focus,
  textarea:focus {
    background-color: #fff;
    box-shadow: 0 0 5px #ccc;
    color: #333;
    opacity: 1 !important;
    outline: 0;
  }

  label,
  legend {
    display: block;
    font-size: 0.9em;
    font-weight: 700;
    margin-bottom: 0.4em;
  }

  legend {
    border-bottom: 1px solid #f1f1f1;
    font-size: 1em;
    font-weight: 700;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    text-transform: uppercase;
    width: 100%;
  }

  fieldset {
    border-width: 0;
    padding: 0;
  }

  input[type="checkbox"],
  input[type="radio"] {
    display: inline;
    font-size: 16px;
    margin-right: 10px;
  }

  label > .label-body {
    display: inline-block;
    font-weight: 400;
    margin-left: 0.5em;
  }

  abbr[title="required"] {
    color: var(--fs-color-alert);
  }

  input[type="checkbox"] + label,
  input[type="radio"] + label {
    display: inline;
  }
}

/* .op-wrap {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #111827;
} */

/* Elements */
.op-catalog,
.op-cart,
.op-modal {
  button {
    margin: 0;
  }
  .op-modal-qty-group .button,
  .op-add,
  .op-qty,
  .op-edit,
  .op-remove {
    width: 30px;
    height: 30px;
    min-height: 30px;
    min-width: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Header */
.op-header {
  margin-bottom: var(--op-gap);
  #opSearch {
    margin-bottom: 0;
    padding-left: 35px;
  }
  button {
    margin: 0;
    i {
      position: relative !important;
      left: 0 !important;
    }
  }
}
.op-search-bar {
  position: relative;
  display: flex;
  align-items: center;
}
.op-search-bar i.fas {
  position: absolute;
  left: 12px;
  color: var(--op-primary);
  font-size: 14px;
  z-index: 2;
  pointer-events: none;
}
.op-search-bar .op-input {
  flex: 1;
  border: 2px solid var(--op-border);
  background: #fafafa;
  border-radius: 10px;
  outline: none;
  font-size: 15px;
  padding: 0 40px 0 40px;
  height: 40px;
  transition: all 0.3s ease;
}
.op-search-bar .op-input:focus {
  border-color: var(--op-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(191, 7, 22, 0.1);
}
.op-clear {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 8px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}
.op-clear:hover {
  background: rgba(177, 177, 177, 0.1);
  color: var(--op-primary);
}

/* Layout */
.op-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--op-gap);
}

/* Catalog */
.op-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.op-cat-title {
  font-weight: 700;
  font-size: 18px;
}
.op-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.op-chip {
  border: 2px solid var(--op-primary);
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.op-chip:hover {
  background: var(--op-bg-light);
}
.op-chip.active {
  background: var(--op-primary);
  color: #fff;
}
.op-chip-meta {
  color: var(--op-muted);
  margin-left: 6px;
}

.op-section {
  background: var(--op-bg);
  border: 2px solid var(--op-primary);
  border-radius: 10px;
  padding: var(--op-gap);
  margin-bottom: var(--op-gap);
}
.op-sec-title {
  font-size: 16px;
  margin: 0 0 6px;
  text-transform: uppercase;
}
.op-sec-desc {
  color: var(--op-muted);
  font-size: 13px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.op-sec-actions {
  display: flex;
  justify-content: center;
}
.op-load-more {
  border: 1px solid var(--op-border);
  background: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  line-height: normal;
  margin-top: 20px !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  .op-spinner {
    border-color: var(--op-primary) !important;
    border-left-color: transparent !important;
  }
}

.op-sec-body .op-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--op-gap);
}
.op-sec-body .op-grid:not(:last-child) {
  margin-bottom: var(--op-gap);
}
@media (min-width: 1200px) {
  .op-sec-body .op-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Product Card */
.op-card {
  display: flex;
  gap: 12px;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s;
}
.op-card:hover {
  background: var(--op-bg-light);
}
.op-card-media {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.op-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.op-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  position: relative;
}
.op-card-title {
  font-weight: 600;
  line-height: 1.3;
}
.op-price {
  font-weight: 600;
  color: var(--op-primary);
  span > bdi {
    color: var(--primary-color);
  }
}
.op-card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  right: 0;
  bottom: 0;
}
.op-qty {
  border: none;
  background: #f3f3f3;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.op-qty:hover {
  background: #e7e7e7;
}
.op-add {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--op-primary) 0%, var(--op-primary-dark) 100%);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.op-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(191, 7, 22, 0.3);
}

/* Cart Drawer */
.op-cart {
  background: var(--op-bg);
  border-left: 1px solid var(--op-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: var(--op-gap);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* height: 95%; */
  width: min(960px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow: auto;
}
.op-cart.open {
  opacity: 1;
  visibility: visible;
}
.op-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--op-primary) 0%, var(--op-primary-dark) 100%);
  color: #fff;
  margin: 0 -16px 16px -16px;
  width: 100%;
  /* border-top-left-radius: 16px; */
  /* border-top-right-radius: 16px; */
  padding: 20px;
}
.op-cart-title {
  font-weight: 600;
  font-size: 18px;
}
.op-cart-total {
  font-weight: 700;
  font-size: 18px;
  text-align: center;
}
.op-cart-body {
  display: flex;
  gap: 25px;
  padding-left: 20px;
  padding-right: 20px;
  -webkit-overflow-scrolling: touch;
  /* padding-bottom: 110px; */
  width: 100%;
  .op-customer,
  .op-list-order {
    width: 100%;
  }
}
button#opCartClear {
  padding: 0;
  position: absolute;
  right: 20px;
}
.op-cart-clear {
  border: 0;
  background: none;
  width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
  margin-right: 8px;
}
.op-cart-clear:hover {
  background: rgba(255, 255, 255, 0.2);
}
.op-cart-items {
  background: var(--op-bg-light);
  padding: 12px;
  border-radius: 10px;
  margin-top: 12px;
  /* min-height: 85px; */
  /* overflow: auto; */
}
.op-cart-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}
.op-cart-row:last-child {
  margin-bottom: 0;
}
.op-row-media {
  width: 45px;
  height: 45px;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f4f6;
  display: none;
}
.op-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.op-row-title {
  flex: 1;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.op-row-note {
  font-size: 12px;
  color: var(--op-muted);
  margin-top: 2px;
}
.op-row-qty,
.op-modal-qty-group {
  display: flex;
  align-items: center;
  /* gap: 6px; */
  margin-top: 6px;
}
/* Quantity group with + and - */
.op-row-qty,
.op-modal-qty-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;

  [type="number"]::-webkit-inner-spin-button,
  [type="number"]::-webkit-outer-spin-button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
  }
}
.op-form-group .iti {
  margin-bottom: 15px;
}
.op-row-qty input,
.op-modal-qty-group input {
  width: 40px !important;
  height: 30px !important;
  text-align: center;
  border: none;
  outline: none;
  margin: 0;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;

  &:not(:focus) {
    border-color: #fafafa !important;
  }
}
.op-row-qty input {
  width: 56px;
  padding: 6px;
  border: 1px solid var(--op-border);
  border-radius: 6px;
}
.op-row-price {
  min-width: 100px;
  text-align: right;
  font-weight: 600;
  color: var(--op-primary);
  flex: auto;
}
.op-row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 6px;
}
.op-edit {
  border: none;
  background: #f3f3f3;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.op-edit:hover {
  background: #e7e7e7;
}
.op-remove {
  border: none;
  background: var(--op-danger);
  color: #fff;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.op-remove:hover {
  background: #c0392b;
}

/* Customer form */
.op-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--op-primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.op-section-title i {
  background: var(--op-bg-light);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--op-primary);
}
.op-cart .choices {
  margin-bottom: 0;
}

.op-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--op-gap);
}
@media (min-width: 600px) {
  .op-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .op-list-order,
  .op-customer {
    display: block !important;
  }
  .op-cart-items {
    height: calc(100% - 50px);
    overflow: auto;
  }
  .only-mobile {
    display: none;
  }
  .op-cart {
    height: 99%;
    overflow: hidden;
  }
  .op-cart-header {
    position: sticky;
    top: 0;
    z-index: inherit;
    padding: 16px;
    margin: 0 -16px;
  }
  .op-cart-body {
    overflow: auto;
    margin-top: -20px;
    padding-top: 20px;
  }
  .op-submit {
    position: sticky !important;
    padding-top: 0 !important;
  }
  .op-list-order {
    position: sticky;
    top: 0;
  }
}
.op-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.op-label {
  font-size: 13px;
  color: var(--op-muted);
  margin-bottom: 0;
  line-height: normal;
}
.op-label.required::after {
  content: " *";
  color: var(--op-danger);
}
.op-input,
.op-input[type="text"],
.op-input[type="email"],
.op-input[type="tel"],
.op-input[type="number"],
.op-input textarea,
.op-input select {
  border: 2px solid var(--op-border);
  border-radius: 10px;
  padding: 0 15px;
  font-size: 15px;
  background: #fafafa;
  height: 40px;
  line-height: 36px;
  transition: all 0.3s ease;
  box-shadow: none;
  margin-bottom: 15px !important;
}
.op-input:focus,
.op-input[type="text"]:focus,
.op-input[type="email"]:focus,
.op-input[type="tel"]:focus,
.op-input[type="number"]:focus,
.op-row-qty input[type="number"]:focus,
.op-input textarea:focus,
.op-modal-note textarea:focus,
.op-input select:focus {
  outline: none;
  border-color: var(--op-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(191, 7, 22, 0.1);
}
.op-input:hover {
  box-shadow: none;
}
.op-input textarea {
  min-height: 120px;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.4;
}
.op-terms {
  margin-top: 10px;
}
.op-checkbox-group,
.op-radio-group {
  display: flex;
  /* flex-direction: column; */
  gap: 0 25px;
  flex-wrap: wrap;
}
.op-checkbox,
.op-radio {
  position: relative;
  padding-left: 26px;
  font-weight: normal;
}
.op-checkbox input,
.op-radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.op-terms .op-checkbox {
  gap: 0 4px;
  font-weight: 600;
  line-height: 1.7;
  a {
    /* color: var(--op-muted); */
    &:hover {
      color: var(--op-primary);
    }
  }
}
.op-checkbox {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  padding-left: 28px;
  input {
    margin: 0 !important;
  }
}

.op-checkmark,
.op-radiomark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #f8f4ed;
  border: 2px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.op-checkbox input:focus ~ * {
  color: red;
}

.op-checkbox:hover input ~ .op-checkmark,
.op-radio:hover input ~ .op-radiomark {
  background-color: #fff5e6;
  border-color: #bf0716;
}

.op-radio .op-checkmark,
.op-radio .op-radiomark {
  border-radius: 50%;
}

.op-checkbox input:checked ~ .op-checkmark,
.op-radio input:checked ~ .op-radiomark {
  background-color: #bf0716;
  border-color: #bf0716;
}

.op-checkmark:after,
.op-radiomark:after {
  content: "";
  position: absolute;
  display: none;
}

.op-checkbox input:checked ~ .op-checkmark:after {
  display: block;
}

.op-checkbox .op-checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.op-radio input:checked ~ .op-radiomark:after {
  display: block;
}

.op-radio .op-radiomark:after {
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  transform: translate(-50%, -50%);
}

/* Submit */
.op-submit,
.op-check-out {
  margin-top: auto;
  padding-bottom: 20px;
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 20px;
}
.op-btn {
  border: none;
  background: linear-gradient(135deg, var(--op-primary) 0%, var(--op-primary-dark) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 12px 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(191, 7, 22, 0.3);
  transition: all 0.3s ease;
}
.op-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(191, 7, 22, 0.4);
}
.op-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.op-btn .op-spinner,
.op-load-more .op-spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #fff;
  border-left-color: transparent;
  animation: op-spin 0.8s linear infinite;
}
.op-btn-amount {
  font-weight: 800;
}
@keyframes op-spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

.op-confirm-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  align-items: center;
  justify-content: center;
}

.op-confirm-modal.show {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

.op-confirm-content {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.op-confirm-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #333;
}

.op-confirm-message {
  margin-bottom: 20px;
  color: #555;
}

.op-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.op-confirm-cancel,
.op-confirm-ok {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  margin: 0 !important;
  box-shadow: none !important;
}

.op-confirm-cancel {
  background: #f0f0f0;
  color: #333;
}

.op-confirm-ok {
  background: #007bff;
  color: #fff;
}

.op-confirm-ok:hover {
  background: #0056b3;
}

.op-confirm-cancel:hover {
  background: #e0e0e0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.op-toast-pulse {
  animation: pulse 0.5s ease-in-out 2;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
/* Modal */
.op-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.op-modal.show {
  display: flex;
  opacity: 1;
  visibility: visible;
}
.op-modal-close,
.op-cart-close {
  padding: 0 12px;
  background-color: transparent;
  border: none;
  color: #fff;
}
.op-modal-content {
  background: #fff;
  width: min(600px, 100%);
  border-radius: 16px;
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}
.op-modal.show .op-modal-content {
  transform: translateY(0);
}
.wrap-qty-group {
  margin-bottom: 20px;
  font-size: 14px;
}
.op-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--op-primary) 0%, var(--op-primary-dark) 100%);
  color: #fff;
}
.op-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}
.op-modal-body {
  padding: 16px;
}
.op-modal-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
}
.choices__inner {
  padding: 0 15px !important;
  min-height: 40px !important;
  line-height: 27px !important;
  border: 2px solid var(--op-border) !important;
  border-radius: 10px !important;
}
.choices {
  margin-bottom: 15px !important;
}
.is-focused .choices__inner {
  border-color: var(--op-primary) !important;
  box-shadow: 0 0 0 3px rgba(191, 7, 22, 0.1);
}
@media (max-width: 600px) {
  .op-modal-row {
    grid-template-columns: 1fr;
  }
  .op-cart-items {
    max-height: calc(var(--height-modal) - 230px);
    overflow: auto;
  }
  .op-cart-total {
    font-size: 16px;
    line-height: 1.3;
  }
  .op-cart-title {
    font-size: 0;
    i {
      font-size: 20px;
    }
  }
  #opSubmit {
    display: none;
  }
  .op-submit:not(.op-submit-mobile) {
    display: none;
  }
  .op-submit-mobile {
    position: sticky;
    padding: 0;
    padding-top: 20px;
    padding-bottom: 15px;
  }
  button#opBackCheckout {
    width: 40px;
    height: 40px;
    margin: 0 0 0 auto;
    display: table;
    padding: 0;
    margin-bottom: 15px;
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--op-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none;
  }
  .op-cart {
    gap: 0;
    max-height: var(--height-modal);
    width: 95%;
  }
  .op-grid-2 {
    gap: 0;
    .op-form-group:not(:last-child) {
      select,
      input {
        margin-bottom: 0;
      }
    }
  }
  .op-cart-header {
    position: sticky;
    top: 0;
    z-index: inherit;
    padding: 10px;
  }
  .op-cart-body {
    flex-direction: column;
    height: var(--height-modal);
    overflow: scroll;
  }
  .op-customer {
    display: none;
    /* position: absolute; */
    /* padding: 20px; */
    top: 60px;
    left: 0;
  }
}
.op-modal-media img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f4f6;
}
.op-modal-price {
  font-weight: 800;
  margin-bottom: 8px;
}
.op-modal-desc {
  color: var(--op-muted);
  font-size: 14px;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.op-modal-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.wrap-qty-group .op-modal-qty-group {
  margin-top: 0;
}
.op-modal-note label {
  display: block;
  font-size: 13px;
  color: var(--op-muted);
  margin-bottom: 6px;
}
.op-modal-note textarea {
  width: 100%;
  border: 1px solid var(--op-border);
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 70px;
  box-shadow: none;
  margin-bottom: 10px;
  font-size: 14px;
}
.op-modal-actions {
  display: flex;
  justify-content: flex-end;
}

/* Toast */
.op-toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 99999;
}
.op-toast {
  background: #fff !important;
  border-left: 4px solid var(--op-primary);
  color: #333;
  padding: 12px 16px;
  border-radius: 8px;
  transform: translateX(100%);
  opacity: 1;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 300px;
}
.op-toast.show {
  transform: translateX(0);
}
.op-toast.success {
  border-left-color: var(--op-success);
  i {
    color: var(--op-success);
  }
}
.op-toast.error {
  border-left-color: var(--op-danger);
  i {
    color: var(--op-danger);
  }
}
.op-toast.warning {
  border-left-color: #ff9800;
  i {
    color: #ff9800;
  }
}
.op-toast button {
  background: transparent;
  color: #999;
  border: 0;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

/* Empty */
.op-empty {
  color: var(--op-muted);
  border: 1px dashed var(--op-border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

/* Overlay */
.op-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  z-index: 10002;
  backdrop-filter: blur(0px);
}

/* Floating Cart Button like Quick Order */
.cart-add.op-blink {
  position: fixed;
  right: 20px;
  bottom: 350px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--op-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(191, 7, 22, 0.3);
  z-index: 1002;
  cursor: pointer;
  font-size: 20px;
  animation: op-blink 1.2s infinite;
  transition: all 0.3s;
}
.cart-add.op-blink:hover {
  animation: op-shake 0.4s;
  box-shadow: 0 0 0 8px rgba(191, 7, 22, 0.15);
  background: var(--op-primary-dark);
}
.op-cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4444;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: normal;
  font-weight: bold;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
@keyframes op-blink {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(191, 7, 22, 0.25);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(191, 7, 22, 0.15);
  }
}
@keyframes op-shake {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(2px, -2px);
  }
  60% {
    transform: translate(-2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* Skeleton Shimmer */
.op-skeleton {
  pointer-events: none;
  opacity: 0.7;
}
.op-skeleton .op-card-media,
.op-skeleton-line {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: op-skeleton-loading 1.5s infinite;
  border-radius: 8px;
}
.op-skeleton-line {
  height: 12px;
}
.op-skeleton-line.short {
  width: 60%;
  height: 10px;
}
/* Empty Cart State */
.op-empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--op-muted);
}

.op-empty-cart-icon {
  margin-bottom: 20px;
  opacity: 0.6;
}

.op-empty-cart-icon svg {
  color: var(--op-muted);
}

.op-empty-cart-text p {
  margin: 0 0 20px 0;
  font-size: 16px;
  color: var(--op-muted);
}

.op-empty-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--op-primary) 0%, var(--op-primary-dark) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(191, 7, 22, 0.3);
}

.op-empty-cart-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(191, 7, 22, 0.4);
  color: #fff;
  text-decoration: none;
}
