.tbmc-ordering,
.phumc-ordering,
.phumc-ntres {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #f5f5f5;
}

.tp-container {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 6px;
}

.tp-tabs {
  display: flex;
  border-bottom: 2px solid #8b5a2b;
  margin-bottom: 15px;
  gap: 6px;
  flex-wrap: wrap;
}

.tp-tab {
  padding: 8px 14px;
  background: #6b4423;
  color: #f3e2c7;
  text-decoration: none;
  border-radius: 6px 6px 0 0;
  font-weight: normal;
  border: 1px solid #8b5a2b;
  border-bottom: none;
}

.tp-tab.active {
  background: #a86b35;
  color: #fff;
  font-weight: bold;
}

.tbmc-filter-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f3e2c7;
  white-space: nowrap;
}

.tp-section {
  border: 1px solid #8b5a2b;
  padding: 15px;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 15px;
}

.tbmc-collapsed-form summary {
  cursor: pointer;
}

.tbmc-inline-details {
  border: 1px solid rgba(210,166,121,0.45);
  border-radius: 4px;
  padding: 10px;
  background: rgba(0,0,0,0.16);
}

.tbmc-inline-details summary {
  cursor: pointer;
  color: #d2a679;
  font-weight: bold;
}

.tbmc-inline-details .tbmc-table-wrap {
  margin-top: 10px;
}

.tp-header {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: bold;
  color: #d2a679;
}

.tp-row {
  padding: 10px 0;
  border-bottom: 1px solid #444;
}

.tp-row:last-child {
  border-bottom: none;
}

.tp-btn {
  display: inline-block;
  padding: 6px 10px;
  background: #8b5a2b;
  color: #fff;
  text-decoration: none;
  margin-top: 8px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
}

.tp-btn:hover {
  background: #a86b35;
}

.tp-btn.danger {
  background: #8b2d2d;
}

.tp-btn.small {
  padding: 5px 8px;
  margin-top: 0;
  font-size: .85rem;
}

.tp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.tbmc-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow-y: auto;
  padding: 24px 10px;
  background: rgba(0,0,0,0.72);
  box-sizing: border-box;
}

.tbmc-modal-panel {
  width: min(920px, calc(100vw - 20px));
  max-height: calc(100vh - 48px);
  margin: 0 auto;
  overflow-y: auto;
  padding: 20px;
  border: 1px solid #8b5a2b;
  border-radius: 6px;
  background: #2b160b;
  box-sizing: border-box;
}

.tbmc-modal-panel .tp-btn {
  margin-right: 8px;
}

.tbmc-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.tbmc-check-option {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: normal !important;
  color: #f5f5f5 !important;
}

.tbmc-check-option input {
  width: auto !important;
}

.tbmc-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border: 1px solid #d2a679;
  border-radius: 50%;
  color: #f3e2c7;
  font-size: 12px;
  line-height: 1;
  cursor: help;
}

.tbmc-help-pop {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 10000;
  width: min(340px, 80vw);
  padding: 10px 12px;
  border: 1px solid #8b5a2b;
  border-radius: 4px;
  background: #1d1009;
  color: #fff;
  font-size: 13px;
  font-weight: normal;
  line-height: 1.45;
  text-align: left;
  transform: translateX(-50%);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.tbmc-help:hover .tbmc-help-pop,
.tbmc-help:focus .tbmc-help-pop {
  display: block;
}

.tp-field label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
  color: #d2a679;
}

.tp-field input[type="text"],
.tp-field textarea,
.tbmc-ordering input,
.tbmc-ordering select,
.tbmc-ordering textarea,
.phumc-ordering input,
.phumc-ordering select,
.phumc-ordering textarea,
.phumc-ntres input,
.phumc-ntres select,
.phumc-ntres textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #8b5a2b;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 4px;
  box-sizing: border-box;
}
.tbmc-ordering select option,
.phumc-ordering select option,
.phumc-ntres select option {
  background: #2b160b;
  color: #ffffff;
}

.tbmc-check-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(139,90,43,0.85);
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  color: #ffffff;
}

.tp-field > .tbmc-check-card {
  margin-top: 2px;
}

.tbmc-check-card input[type="checkbox"],
.tbmc-check-card input[type="radio"],
.tbmc-ordering .tbmc-check-card input[type="checkbox"],
.tbmc-ordering .tbmc-check-card input[type="radio"],
.phumc-ordering .tbmc-check-card input[type="checkbox"],
.phumc-ordering .tbmc-check-card input[type="radio"],
.phumc-ntres .tbmc-check-card input[type="checkbox"],
.phumc-ntres .tbmc-check-card input[type="radio"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin: 2px 0 0;
  padding: 0;
}

.tbmc-check-card strong {
  display: block;
  color: #ffffff;
  line-height: 1.25;
}

.tbmc-check-card span,
.tbmc-check-card .muted {
  display: block;
  margin-top: 3px;
  color: #c0aa95;
  font-size: 13px;
  font-weight: normal;
  line-height: 1.35;
}

.tp-summary-card {
  border: 1px solid #8b5a2b;
  background: rgba(255,255,255,0.03);
  padding: 10px;
  border-radius: 4px;
}

.tp-summary-card strong {
  display: block;
  color: #d2a679;
  margin-bottom: 6px;
}

.tp-collapsible {
  cursor: pointer;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid #8b5a2b;
  margin-bottom: 5px;
  border-radius: 4px;
}

.tp-collapsible:hover {
  background: rgba(255,255,255,0.08);
}

.tp-collapsible.active {
  background: #a86b35;
  color: #fff;
}

.tp-content {
  display: none;
  padding: 10px;
  border: 1px solid #8b5a2b;
  border-top: none;
  margin-bottom: 10px;
  background: rgba(0,0,0,0.15);
}

.phumc-table {
  width: 100%;
  border-collapse: collapse;
}

.phumc-table th {
  background: #3a1f0d;
  color: #f3d39b;
  padding: 10px;
  border: 1px solid #5a3518;
}

.phumc-table td {
  padding: 10px;
  border: 1px solid #5a3518;
}

.pill {
  background: #3a1f0d;
  border: 1px solid #7a4a21;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .8rem;
  font-weight: 700;
}

.pill.warn {
  border-color: #c29336;
  background: rgba(194, 147, 54, .18);
  color: #f3d39b;
  margin-left: 6px;
}

.tbmc-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tbmc-toolbar input[type="search"],
.tbmc-toolbar select {
  width: auto;
  min-width: 180px;
}

.tbmc-toolbar input[type="search"] {
  flex: 1 1 240px;
}

.tbmc-check-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f3e2c7;
  white-space: nowrap;
}

.tbmc-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.tbmc-form-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.tbmc-form-action-row-primary {
  padding-top: 12px;
  border-top: 1px solid rgba(210,166,121,.25);
}

.tbmc-form-action-row-shipment {
  margin-bottom: 6px;
}

.tbmc-ops-table {
  min-width: 760px;
}

.tbmc-ops-table th,
.tbmc-ops-table td {
  padding: 8px 10px;
  vertical-align: middle;
}

.tbmc-ops-table th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.tbmc-ops-table .muted {
  font-size: .82rem;
}

.tbmc-col-form {
  min-width: 220px;
}

.tbmc-row-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
}

.tbmc-row-form .compact {
  width: 150px !important;
}

.tbmc-inline-form {
  display: inline-block;
  margin: 0;
}

.tbmc-inline-edit-row input.compact,
.tbmc-inline-edit-row select.compact {
  min-width: 130px;
}

.tbmc-inline-edit-row {
  border-top: 4px solid #a86b35;
  background: rgba(255,255,255,.035);
}

.tbmc-inline-edit-row:first-child {
  border-top-width: 1px;
}

.tbmc-inline-edit-row td {
  padding-top: 16px;
  padding-bottom: 12px;
}

.tbmc-inline-edit-row + .tbmc-inline-detail-row td {
  border-top-color: rgba(210,166,121,.32);
}

.tbmc-inline-edit-row input.money {
  width: 86px !important;
  min-width: 86px;
}

.tbmc-inline-edit-row input.tiny {
  width: 68px !important;
  min-width: 68px;
}

.tbmc-inline-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(58px, 1fr));
  gap: 6px;
}

.tbmc-distro-history-table {
  min-width: 980px;
}

.tbmc-distro-history-table th:nth-child(3),
.tbmc-distro-history-table td:nth-child(3) {
  width: 132px;
  min-width: 132px;
}

.tbmc-distro-history-table .pill {
  display: inline-block;
  white-space: nowrap;
}

.tbmc-distro-history-table td:nth-child(4) {
  color: #c0aa95;
}

.tbmc-distro-detail {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(139,90,43,0.55);
  border-radius: 4px;
  padding: 10px 12px;
}

.tbmc-distro-detail summary {
  cursor: pointer;
  color: #f3d39b;
  font-weight: 700;
}

.tbmc-distro-card-body {
  margin-top: 10px;
}

.tbmc-inline-check {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 10px 0 0;
  color: #f3e2c7 !important;
  font-weight: 700;
  white-space: nowrap;
}

.tbmc-inline-check input {
  width: auto !important;
}

.tbmc-inline-detail-row > td {
  background: rgba(0,0,0,.24);
  padding-top: 8px;
  padding-bottom: 18px;
  border-bottom: 10px solid rgba(0,0,0,.35);
}

.tbmc-inline-detail-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  align-items: end;
}

.tbmc-inline-detail-grid label {
  color: #d2a679;
  font-weight: 700;
}

.tbmc-inline-detail-grid input,
.tbmc-inline-detail-grid select,
.tbmc-inline-detail-grid textarea {
  margin-top: 4px;
}

.tbmc-inline-wide {
  grid-column: span 2;
}

.tbmc-package-card {
  border: 1px solid #5a3518;
  border-radius: 6px;
  background: rgba(0,0,0,.16);
  padding: 14px;
  margin-bottom: 16px;
}

.tbmc-distro-card,
.tbmc-tracked-card {
  border: 1px solid #5a3518;
  border-radius: 6px;
  background: rgba(0,0,0,.16);
  margin-bottom: 12px;
  overflow: hidden;
}

.tbmc-distro-summary,
.tbmc-tracked-card > summary {
  display: grid;
  grid-template-columns: auto minmax(220px, 1.2fr) auto minmax(130px, .8fr) minmax(260px, 1.6fr) minmax(150px, .8fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.tbmc-tracked-card > summary {
  grid-template-columns: auto 1fr auto;
}

.tbmc-distro-summary::-webkit-details-marker,
.tbmc-tracked-card > summary::-webkit-details-marker {
  display: none;
}

.tbmc-distro-summary::before,
.tbmc-tracked-card > summary::before {
  content: "+";
  color: #f3d39b;
  font-weight: 900;
}

.tbmc-distro-card[open] .tbmc-distro-summary::before,
.tbmc-tracked-card[open] > summary::before {
  content: "-";
}

.tbmc-distro-card-body {
  padding: 0 14px 14px;
}

.tbmc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.tbmc-fulfillment-summary {
  margin-bottom: 14px;
}

.tbmc-fulfillment-summary .phumc-table {
  margin-bottom: 0;
}

.tbmc-ntres-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border: 1px solid #d49a42;
  border-radius: 999px;
  color: #ffd89a;
  background: rgba(87, 45, 12, 0.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.tbmc-compact-table {
  margin: 0 12px 12px;
  width: calc(100% - 24px);
}

.tbmc-compact-table th,
.tbmc-compact-table td {
  padding: 7px 8px;
}

.tbmc-ntres-ship-items {
  margin-top: 10px;
  margin-bottom: 12px;
}

.tbmc-visual-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.tbmc-visual-product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #5a3518;
  border-radius: 6px;
  background: rgba(255,255,255,0.035);
  overflow: hidden;
  min-height: 100%;
}

.tbmc-visual-product-image {
  aspect-ratio: 4 / 3;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid #5a3518;
}

.tbmc-visual-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tbmc-visual-product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #c0aa95;
  font-weight: 700;
}

.tbmc-visual-product-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  flex: 1;
}

.tbmc-visual-product-body h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.25;
}

.tbmc-visual-product-meta {
  color: #d2a679;
  font-size: .82rem;
  font-weight: 700;
}

.tbmc-visual-product-price {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
}

.tbmc-visual-product-price-note {
  color: #c0aa95;
  font-size: .82rem;
  line-height: 1.25;
}

.tbmc-visual-product-form {
  margin-top: auto;
}

.tbmc-visual-addons {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.tbmc-visual-addon-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 6px;
}

.tbmc-visual-addon-group .tbmc-option-group-label {
  grid-column: 1 / -1;
}

.tbmc-addon-choice {
  align-items: stretch;
  padding: 8px 10px;
}

.tbmc-addon-choice.has-image {
  padding: 8px;
}

.tbmc-addon-choice > span {
  display: grid;
  gap: 5px;
  width: 100%;
}

.tbmc-addon-choice span span {
  color: #c0aa95;
  font-size: .82rem;
}

.tbmc-addon-choice-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(210,166,121,.4);
  border-radius: 5px;
  background: #130905;
  cursor: zoom-in;
}

.tbmc-image-modal-panel {
  position: relative;
  width: min(860px, calc(100vw - 24px));
  padding: 14px;
}

.tbmc-image-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(210,166,121,.7);
  border-radius: 4px;
  background: rgba(0,0,0,.58);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.tbmc-image-modal-title {
  padding: 0 42px 10px 0;
  color: #f3c77b;
  font-weight: 800;
}

.tbmc-image-modal-img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border: 1px solid rgba(210,166,121,.45);
  border-radius: 5px;
  background: #080403;
}

.tbmc-addon-text label {
  font-size: .86rem;
}

.tbmc-addon-text input:disabled,
.tbmc-addon-choice input:disabled + span {
  opacity: .48;
}

.tbmc-required {
  color: #ffd37d;
  font-weight: 800;
}

.tbmc-addon-editor {
  border: 1px solid #8a551f;
  border-radius: 6px;
  padding: 12px;
  margin: 12px 0;
  background: rgba(0,0,0,.12);
}

.tbmc-addon-editor.is-template-loaded::before {
  content: "Loaded from an existing hat. Review and edit these rows before saving.";
  display: block;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(210,166,121,.55);
  border-radius: 4px;
  color: #f3c77b;
  background: rgba(0,0,0,.24);
  font-weight: 700;
}

.tbmc-addon-editor-head {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.tbmc-addon-editor-head span {
  color: #c0aa95;
}

.tbmc-addon-cards {
  display: grid;
  gap: 10px;
}

.tbmc-addon-admin-card {
  border: 1px solid rgba(180, 111, 48, .72);
  border-radius: 6px;
  background: rgba(30, 17, 11, .82);
  padding: 10px;
}

.tbmc-addon-main-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(160px, 1fr) minmax(120px, .7fr) minmax(88px, .5fr) minmax(88px, .5fr);
  gap: 8px;
  align-items: end;
}

.tbmc-addon-image-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(190px, 1fr) 88px minmax(260px, 1.1fr);
  gap: 8px;
  align-items: end;
  margin-top: 8px;
}

.tbmc-addon-preview-slot {
  min-height: 58px;
  display: grid;
  align-items: end;
}

.tbmc-addon-preview {
  width: 82px;
  height: 58px;
  object-fit: cover;
  border: 1px solid rgba(210,166,121,.45);
  border-radius: 5px;
  background: #130905;
}

.tbmc-addon-preview-placeholder {
  display: grid;
  place-items: center;
  width: 82px;
  height: 58px;
  border: 1px dashed rgba(210,166,121,.45);
  border-radius: 5px;
  color: #a89179;
  font-size: .78rem;
}

.tbmc-addon-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
}

.tbmc-addon-main-grid input,
.tbmc-addon-main-grid select,
.tbmc-addon-image-grid input {
  width: 100%;
}

@media (max-width: 980px) {
  .tbmc-addon-main-grid,
  .tbmc-addon-image-grid {
    grid-template-columns: 1fr;
  }

  .tbmc-addon-toggles {
    grid-template-columns: 1fr;
  }
}

.tbmc-product-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(210,166,121,.45);
  border-radius: 4px;
  background: rgba(0,0,0,.2);
}

@media (max-width: 760px) {
  .tbmc-distro-summary {
    grid-template-columns: auto 1fr;
  }

  .tbmc-distro-summary > span:not(:first-child):not(.pill) {
    grid-column: 2;
  }
}

.tbmc-package-head {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(180px, .9fr) minmax(160px, .6fr) minmax(260px, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.tbmc-package-toggles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 8px;
}

.tbmc-package-description {
  grid-column: span 3;
}

.tbmc-detail-row > td {
  background: rgba(0,0,0,.18);
  padding: 12px;
}

.tbmc-custom-value {
  margin-top: 4px;
  color: #f3d39b;
  font-size: .86rem;
}

.tbmc-shipping-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.tbmc-shipping-summary > div {
  border: 1px solid #5a3518;
  background: rgba(255,255,255,.04);
  padding: 10px;
  border-radius: 4px;
}

.tbmc-shipping-summary strong,
.tbmc-shipping-summary span {
  display: block;
}

.tbmc-shipping-summary strong {
  color: #d2a679;
  font-size: .82rem;
}

.tbmc-shipping-summary span {
  margin-top: 4px;
  font-weight: 800;
}

.notice {
  padding: 12px 14px;
  margin: 0 0 15px 0;
  border-radius: 4px;
  border: 1px solid #8b5a2b;
}

.notice.success {
  background: rgba(76, 175, 80, 0.15);
  color: #c8f1cb;
}

.notice.error {
  background: rgba(220, 53, 69, 0.15);
  color: #ffd4d9;
}

.muted {
  color: #c9b39a;
  opacity: .9;
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  background: #2b160b;
  border: 1px solid #5a3518;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.order-row .left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-row .right {
  display: flex;
  align-items: center;
}

.order-title {
  font-weight: 900;
  font-size: 1.05rem;
  color: #f3d39b;
}

.order-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .9rem;
}

.phumc-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 14px;
  background: #6b4423;
  color: #f3e2c7;
  border: 1px solid #8b5a2b;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
}

.tab-btn.active {
  background: #a86b35;
  color: #fff;
}

.phumc-tab-content {
  display: none;
}

.phumc-tab-content.active {
  display: block;
}

.phumc-category-card {
  margin-bottom: 22px;
  border: 1px solid #5a3518;
  border-radius: 8px;
  background: #24130a;
}

.phumc-category-header {
  padding: 12px 16px;
  font-weight: 900;
  background: #3a1f0d;
  color: #f3d39b;
  cursor: pointer;
  border-bottom: 1px solid #5a3518;
}

.phumc-category-body {
  display: none;
  padding: 16px;
}

.phumc-category-body.active {
  display: block;
}

.phumc-product-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px;
  border: 1px solid #5a3518;
  border-radius: 8px;
  background: #2b160b;
  margin-bottom: 12px;
}

.product-left {
  display: flex;
  flex-direction: column;
}

.product-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-name {
  font-weight: 800;
  font-size: 1rem;
}

.product-price {
  font-weight: 900;
  color: #f3d39b;
  margin-top: 4px;
}

.product-desc {
  margin-top: 6px;
  font-size: .9rem;
  color: #ddd;
}

.qty {
  width: 80px !important;
  max-width: 80px;
  text-align: right;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.tbmc-price-calculator {
  margin-top: 14px;
}

.tbmc-auto-price-box {
  align-self: end;
  border: 1px solid #8b5a2b;
  border-radius: 6px;
  background: #24130a;
  padding: 10px 12px;
}

.tbmc-form-note {
  grid-column: 1 / -1;
  border: 1px solid #8b5a2b;
  border-radius: 6px;
  background: #24130a;
  padding: 10px 12px;
}

.tbmc-form-note strong,
.tbmc-form-note span {
  display: block;
}

.tbmc-form-note strong {
  color: #f3bd7a;
  margin-bottom: 4px;
}

.tbmc-form-note span {
  color: #cdb79d;
}

.tbmc-auto-price-box strong,
.tbmc-auto-price-box span {
  display: block;
}

.tbmc-auto-price-box strong {
  color: #f3bd7a;
  font-size: .82rem;
  margin-bottom: 4px;
}

.tbmc-auto-price-box span {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.tbmc-price-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.tbmc-price-results > div {
  border: 1px solid #8b5a2b;
  border-radius: 6px;
  background: #24130a;
  padding: 10px 12px;
}

.tbmc-price-results strong {
  display: block;
  color: #f3bd7a;
  font-size: .82rem;
  margin-bottom: 5px;
}

.tbmc-price-results span {
  display: block;
  font-weight: 800;
  color: #fff;
}

.right {
  text-align: right;
}

.tbmc-line-custom-help {
  margin: 10px 0;
}

.tbmc-custom-allocations {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  max-width: 620px;
}

.tbmc-custom-allocation-row {
  display: grid;
  grid-template-columns: 72px minmax(180px, 1fr) 34px;
  gap: 7px;
  align-items: center;
}

.tbmc-custom-allocation-row input {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.tbmc-add-custom-allocation,
.tbmc-remove-custom-allocation {
  border: 1px solid #9a642f;
  border-radius: 4px;
  background: #6f421d;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
}

.tbmc-add-custom-allocation {
  width: 34px;
  height: 30px;
  font-size: 20px;
}

.tbmc-remove-custom-allocation {
  width: 34px;
  height: 34px;
  background: #8f2f2f;
  border-color: #b84a4a;
  font-size: 19px;
}

.tbmc-custom-total {
  align-self: center;
  margin-left: 42px;
}

.tbmc-custom-total.is-invalid {
  color: #ffadad;
  font-weight: 800;
}

.tbmc-manufacturer-link {
  display: inline-block;
  margin-top: 8px;
  color: #ffd17c;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tbmc-option-group {
  width: 100%;
  margin-top: 10px;
}

.tbmc-option-group-label {
  margin-bottom: 7px;
  color: #f3bd7a;
  font-weight: 800;
}

.tbmc-option-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 9px;
}

.tbmc-option-card {
  display: block;
  min-width: 0;
  cursor: pointer;
}

.tbmc-option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tbmc-option-card-content {
  display: grid;
  gap: 6px;
  min-height: 100%;
  border: 1px solid #8b5a2b;
  border-radius: 6px;
  background: #281811;
  color: #fff;
  padding: 9px;
}

.tbmc-option-card input:checked + .tbmc-option-card-content {
  border-color: #f3bd7a;
  box-shadow: 0 0 0 2px rgba(243, 189, 122, .28);
}

.tbmc-option-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
  background: #130905;
}

.tbmc-option-card strong,
.tbmc-option-card span,
.tbmc-option-card small {
  display: block;
}

.tbmc-option-card small {
  color: #cdb79d;
  line-height: 1.35;
}

.tbmc-option-card a {
  color: #ffd17c;
  font-size: .85rem;
  font-weight: 800;
}

.tbmc-option-meta-table input,
.tbmc-option-meta-table textarea {
  width: 100%;
  min-width: 120px;
}

.tbmc-option-meta-table input.tiny {
  min-width: 76px;
}

.tbmc-option-thumb {
  display: block;
  width: 70px;
  height: 52px;
  object-fit: cover;
  border: 1px solid #8b5a2b;
  border-radius: 5px;
  margin-bottom: 6px;
  background: #130905;
}

@media (max-width: 800px) {
  .tp-grid {
    grid-template-columns: 1fr;
  }

  .phumc-product-card {
    grid-template-columns: 1fr;
  }

  .order-row {
    flex-direction: column;
  }

  .tbmc-shipping-summary {
    grid-template-columns: 1fr 1fr;
  }

  .tbmc-price-results {
    grid-template-columns: 1fr 1fr;
  }

  .tbmc-inline-detail-grid,
  .tbmc-package-head {
    grid-template-columns: 1fr;
  }

  .tbmc-inline-wide,
  .tbmc-package-description {
    grid-column: auto;
  }

  .tbmc-custom-allocation-row {
    grid-template-columns: 64px minmax(130px, 1fr) 34px;
  }
}
