.woocommerce-account .wp-block-post-title, .woocommerce-account main .woocommerce, .woocommerce-cart .wp-block-post-title, .woocommerce-cart main .woocommerce, .woocommerce-checkout .wp-block-post-title, .woocommerce-checkout main .woocommerce {
      max-width: var(--wp--style--global--wide-size) !important;
}

tr, td {
    box-sizing: border-box;
}

.custom-orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2em;
}

.custom-orders-header {
  display: flex;
  background-color: #f8f8f8;
  padding: 12px 15px;
  font-weight: 600;
  border-radius: 4px 4px 0 0;
}

.custom-order-row {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.custom-order-col {
  flex: 1;
  padding: 0 10px;
}

.custom-order-view {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.order-header {
    padding: 25px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.order-header h2 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #333;
}

.order-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item span {
    color: #6c757d;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.status-completed {
    background: #e6f7ee;
    color: #00a854;
}

.status-processing {
    background: #e6f0ff;
    color: #1890ff;
}

.order-group {
    margin-bottom: 30px;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

.group-title {
    margin: 0;
    padding: 15px 20px;
    background: #f5f5f5;
    font-size: 18px;
    color: #333;
}

.group-items {
    width: 100%;
    border-collapse: collapse;
}

.group-items th {
    padding: 12px 15px;
    text-align: left;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.group-items td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.product-title {
    font-weight: 500;
}

.dental-meta {
    margin-top: 8px;
    font-size: 0.85em;
    color: #6c757d;
}

.meta-row {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.meta-label {
    font-weight: 500;
}

.order-totals {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
}

.order-totals table {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
}

.order-totals th {
    text-align: right;
    padding: 8px 15px 8px 0;
}

.order-totals td {
    text-align: right;
    padding: 8px 0;
    font-weight: 600;
}

.woocommerce-Price-amount {
    white-space: nowrap;
}

.woocommerce-Price-amount .decimal {
    display: none;
}

.product-details {
    width: 30%;
    padding: 10px;
}

.dental-meta {
    font-size: 0.9em;
}

.meta-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.meta-label {
    font-weight: 500;
    min-width: 50px;
    color: #666;
}

.teeth-numbers {
    font-family: monospace;
    background: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
}

.color-badge {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 2px;
    border: 1px solid #ddd;
    vertical-align: middle;
}
.group-items {
    width: 100%;
    table-layout: fixed; 
    border-collapse: collapse;
}

.dental-meta.compact {
    font-size: 0.85em;
    line-height: 1.3;
}

.meta-row.compact {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.meta-label {
    font-weight: 500;
    color: #666;
    margin-right: 3px;
    min-width: auto;
}

.color-badge.small {
    width: 12px;
    height: 12px;
    display: inline-block;
}

.item-option-label {
    font-size: 0.7em;
    background: #f0f0f0;
    color: #666;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 5px;
}

.text-right {
    text-align: right;
}

.woocommerce-MyAccount-content .woocommerce-notices-wrapper ~ p {
    display: none;
}

.order-implants-summary {
  background: #fff8f8;
  border: 1px solid #ffebee;
  border-radius: 6px;
  padding: 15px;
  margin: 0 30px 20px;
}

.order-implants-summary h4 {
  margin: 0 0 10px;
  color: #d32f2f;
  font-size: 16px;
}

.implants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.implant-badge {
  display: inline-block;
  background: #ffebee;
  color: #d32f2f;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

.mobile-title { 
    display: none;
}

@media (max-width: 768px) {
  .order-items-grouped .order-group {
    margin-bottom: 20px;
  }
  
  .order-items-grouped .group-title {
    padding: 12px 15px;
    font-size: 16px;
  }
  
  .order-items-grouped .group-items {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
  
  .order-items-grouped .group-items thead {
    display: none;
  }
  
  .order-items-grouped .group-items tbody,
  .order-items-grouped .group-items tr,
  .order-items-grouped .group-items td {
    display: block;
    width: 100%;
  }
  
  .order-items-grouped .group-items tr {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
  }
  
  .order-items-grouped .group-items td {
    padding: 5px 15px;
    border: none;
  }

  .order-items-grouped .text-right {
    text-align: left;
  }
  
  .order-items-grouped .product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
  }
  
  .order-implants-summary {
    margin: 0 15px 15px;
    padding: 12px;
  }

  .order-header {
    display: none !important;
  }

  .mobile-title{
        display: inline-block;
    }
}

@media (max-width: 480px) {
  .order-items-grouped .group-items td {
    padding: 4px 12px;
  }
  
  .implants-list {
    gap: 4px;
  }
  
  .implant-badge {
    padding: 3px 6px;
    font-size: 12px;
  }
}