@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700&display=swap");

.nowrap {
  white-space: nowrap;
}

.mob-menu-toggle i.fa-bars {
  background-color: black;
}

#order_summary {
  padding: 20px;
}

#order_summary :not(i) {
  font-family: "Figtree", sans-serif;
}

#order_summary hr {
  background-image: none;
  margin: 10px 0;
  border: 0;
  border-top: 1px solid #eee;
  border-bottom: 0;
  height: 0;
}

#order_summary #summary_title {
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 35px;
  text-transform: uppercase;
}

#order_summary #inventory_types {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  background-color: #f7f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 20px;
}

#order_summary #inventory_types .tab-separator {
  display: none !important;
}

#order_summary #inventory_types label {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  #order_summary #inventory_types label {
    flex: 1 1 auto;
  }
}

#order_summary #inventory_types span.inv_tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100% - 10px);
  padding: 8px 16px;
  background-color: white;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  margin: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  transition: all 0.2s ease;
}

#order_summary #inventory_types span.inv_tab:hover {
  border-color: #94a3b8;
  background-color: #f8fafc;
}

@media (max-width: 991px) {
  #order_summary #inventory_types span.inv_tab {
    flex: 1 1 auto;
    text-align: center;
  }
}

#order_summary #inventory_types input[type=checkbox] {
  display: none;
}

#order_summary #inventory_types input[type=checkbox]:checked+span {
  background-color: var(--natural-diamond-color, #897358);
  border-color: var(--natural-diamond-color, #897358);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

#order_summary #inventory_types input[type=checkbox][value="LabGrown"]:checked+span,
#order_summary #inventory_types input[type=checkbox][value="labgrown"]:checked+span {
  background-color: var(--labgrown-diamond-color, #435b71);
  border-color: var(--labgrown-diamond-color, #435b71);
  color: white;
}

#order_summary .form_field {
  width: 250px;
  display: inline-block;
  border: 1px solid rgba(102, 102, 102, 0.3764705882);
  border-radius: 5px !important;
  font-size: 15px;
  padding: 10px;
  height: 40px;
  color: black;
  margin: 5px;
}

#order_summary .form_field:focus {
  box-shadow: 0 0 0 0.2rem rgba(221, 246, 246, 0.97);
}

#order_summary .form_btn {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !important;
  letter-spacing: 1px;
  font-size: 15px;
  color: white;
}

#order_summary .form_btn_inverse {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !important;
  letter-spacing: 1px;
  font-size: 15px;
  background-color: white;
}

#order_summary ul.bar_tabs {
  margin: 0 0 10px 0;
  padding: 0;
}

#order_summary ul.bar_tabs>li {
  margin-left: 0;
  margin-right: 5px;
}

#order_summary ul.bar_tabs>li a.active {
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !important;
  letter-spacing: 1px;
  border-radius: 5px;
  font-size: 17px;
}

#order_summary ul.bar_tabs>li a.active.labgrown {
  border: 1px solid rgba(102, 102, 102, 0.3764705882);
  color: white;
}

#order_summary ul.bar_tabs>li a {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !important;
  letter-spacing: 1px;
  border-radius: 5px !important;
  font-size: 17px;
}

#order_summary ul.bar_tabs>li a.labgrown {
  border: 1px solid rgba(102, 102, 102, 0.3764705882);
}

#order_summary .tab-pane {
  display: none;
}

#order_summary .tab-pane.active,
#order_summary .tab-pane.show.active {
  display: block;
}

#order_summary .checkbox {
  display: inline-block;
  margin-right: 1.5%;
}

#order_summary .checkbox label {
  font-size: 18px !important;
  text-transform: capitalize;
  color: black;
}

#order_summary .order-table .fcut,
#order_summary .order-table .polish,
#order_summary .order-table .symmetry,
#order_summary .order-table .meas {
  display: none;
}

#order_summary .order-table .blank_line {
  border-left-style: hidden;
  border-right-style: hidden;
}

#order_summary .order-table.natural thead tr th {
  color: white;
  letter-spacing: 1px;
  background-color: var(--natural-diamond-color, #897358);
}

#order_summary .order-table.natural {
  --card-theme-color: var(--natural-diamond-color, #897358);
}

#order_summary .order-table.natural tbody a {
  font-weight: bold;
}

#order_summary .order-table.labgrown thead tr th {
  color: white;
  letter-spacing: 1px;
  background-color: var(--labgrown-diamond-color, #435b71);
}

#order_summary .order-table.labgrown {
  --card-theme-color: var(--labgrown-diamond-color, #435b71);
}

#order_summary .order-table.labgrown tbody a {
  font-weight: bold;
}

#order_summary .order-table thead th {
  vertical-align: middle;
}

#order_summary .btn-xs {
  font-size: 14px !important;
  line-height: 0.44;
  padding: 1px 5px;
}

#order_summary .btn-xs.natural {
  border: 1px solid rgba(102, 102, 102, 0.3764705882);
  color: white;
}

#order_summary .btn-xs.labgrown {
  border: 1px solid rgba(102, 102, 102, 0.3764705882);
  color: white;
}

#order_summary .form-label {
  color: black;
  letter-spacing: 1px;
  margin: 5px 0;
  font-weight: bold;
  font-size: 20px;
}

@media (max-width: 767px) {
  #order_summary {
    padding: 10px 5px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  #order_summary #summary_title {
    font-size: 22px;
  }
  #order_summary #inventory_types {
    padding: 8px 6px !important;
    gap: 6px !important;
    justify-content: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  #order_summary #inventory_types label {
    flex: 1 1 calc(50% - 6px) !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 3px 0 !important;
    box-sizing: border-box !important;
  }
  #order_summary #inventory_types span.inv_tab {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 8px 6px !important;
    font-size: 12px !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: break-word !important;
    min-height: 40px !important;
  }
  #order_summary ul.bar_tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 8px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  #order_summary ul.bar_tabs > li {
    flex: 0 0 auto !important;
    margin-right: 6px !important;
  }
  #order_summary ul.bar_tabs > li a {
    white-space: nowrap !important;
    font-size: 13px !important;
    padding: 8px 10px !important;
  }
}

@media (max-width: 576px) {
  #order_summary #inventory_types label {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
  #order_summary .form_field {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 4px 0 !important;
  }
}

/* New Mobile Diamond Card Layout */
#order_summary .mobile-diamond-card.new-layout {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
}

#order_summary .mobile-diamond-card.new-layout .card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

#order_summary .mobile-diamond-card.new-layout .card-header .order-code {
  font-size: 15px;
  font-weight: 700;
  color: var(--card-theme-color, var(--primary-color, #007D79));
  margin-right: auto;
}

#order_summary .mobile-diamond-card.new-layout .card-header .status-badge {
  background: var(--card-theme-color, var(--primary-color, #007D79));
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

#order_summary .mobile-diamond-card.new-layout .card-header .order-date {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  margin-left: 5px;
}

#order_summary .mobile-diamond-card.new-layout .card-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
  box-sizing: border-box;
  width: 100%;
}

#order_summary .mobile-diamond-card.new-layout .card-body-grid .grid-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

#order_summary .mobile-diamond-card.new-layout .card-body-grid .grid-item.full-width {
  grid-column: 1 / -1;
}

#order_summary .mobile-diamond-card.new-layout .card-body-grid .grid-item .label {
  font-size: 10px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}

#order_summary .mobile-diamond-card.new-layout .card-body-grid .grid-item .value {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  word-break: break-word;
  overflow-wrap: anywhere;
}

#order_summary .mobile-diamond-card.new-layout .card-body-grid .grid-item .value a {
  color: #222;
  text-decoration: underline;
  word-break: break-all;
}

#order_summary .mobile-diamond-card.new-layout .card-body-grid .grid-item .value .btn-xs {
  font-size: 10px !important;
  padding: 2px 5px;
}

#order_summary .mobile-diamond-card.new-layout .mobile-video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background-color: var(--card-theme-color, var(--primary-color, #007D79)) !important;
  color: #ffffff !important;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: opacity 0.2s;
}

#order_summary .mobile-diamond-card.new-layout .mobile-video-btn i,
#order_summary .mobile-diamond-card.new-layout .mobile-video-btn svg {
  color: #ffffff !important;
  fill: #ffffff !important;
  font-size: 13px;
}

#order_summary .mobile-diamond-card.new-layout .mobile-video-btn:hover {
  opacity: 0.85;
  color: #ffffff !important;
}

#order_summary .mobile-diamond-card.new-layout .card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid #eee;
  padding-top: 12px;
  box-sizing: border-box;
  width: 100%;
}

#order_summary .mobile-diamond-card.new-layout .card-actions .btn {
  flex: 1;
  min-width: 45%;
  font-weight: bold;
  letter-spacing: 0.5px;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  background-color: var(--card-theme-color, var(--primary-color, #007D79)) !important;
  border-color: var(--card-theme-color, var(--primary-color, #007D79)) !important;
  color: white !important;
}

@media (max-width: 991px) {
  #order_summary .order-table thead {
    display: none !important;
  }
  #order_summary .inhouse-desktop-row {
    display: none !important;
  }
  #order_summary .inhouse-mobile-row {
    display: table-row !important;
  }
  #order_summary .inhouse-mobile-row > td {
    display: table-cell !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
  }
  #order_summary .order-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border: none !important;
  }
  #order_summary .order-table > tbody {
    display: block !important;
    width: 100% !important;
  }
  #order_summary .tab-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  #order_summary .tab-pane {
    display: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  #order_summary .tab-pane.active,
  #order_summary .tab-pane.show.active {
    display: block !important;
  }
}

@media (min-width: 992px) {
  #order_summary .inhouse-mobile-row {
    display: none !important;
  }
  #order_summary .inhouse-desktop-row {
    display: table-row !important;
  }
  #order_summary .inhouse-desktop-row > td,
  #order_summary .inhouse-desktop-row > th {
    display: table-cell !important;
    width: auto !important;
    max-width: none !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
  }
  #order_summary .order-table {
    display: table !important;
    width: 100% !important;
    table-layout: auto !important;
  }
  #order_summary .order-table > tbody {
    display: table-row-group !important;
  }
  #order_summary .order-table > thead {
    display: table-header-group !important;
  }
  #order_summary .order-table > thead > tr {
    display: table-row !important;
  }
  #order_summary .order-table > thead > tr > th {
    display: table-cell !important;
  }
}