/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.0
 Text Domain:  bricks
*/

:root {
	--bricks-border-color: #616161 !important;
}

.body .html {
  overflow-x: hidden !important;
}

.order-header {
  background: #f7f9fb;
  border: 1px solid #e3e6ef;
  border-radius: 8px;
  padding: 1.5em 2em;
  margin-bottom: 2em;
}

.order-meta div {
  margin-bottom: 0.4em;
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}

.order-status {
  background: #e7f3ff;
  color: #0056b8;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 13px;
  text-transform: capitalize;
}

.order-products {
  margin-bottom: 2em;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}

.order-table th,
.order-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #eee;
}

.order-table th {
  text-align: left;
  color: #333;
  font-weight: 500;
}

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

.order-total th {
  font-size: 1.05em;
}

.total-amount {
  font-weight: 700;
  color: #111;
  font-size: 1.1em;
}

.order-addresses {
  display: flex;
  flex-wrap: wrap;
  gap: 3em;
  margin-top: 2em;
}

.address-block {
  flex: 1;
  min-width: 250px;
}

.address-block h3 {
  margin-bottom: 0.5em;
}

.address-block p {
  margin: 0;
  white-space: pre-line;
}

.order-notes {
  margin-top: 3em;
  padding: 1.5em;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e4e6eb;
}

.notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.note-item {
  border-bottom: 1px solid #eaeaea;
  padding: 0.8em 0;
}

.note-item:last-child {
  border-bottom: none;
}

.note-date {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 0.3em;
}

/* Align product name and quantity in a row */
.product-cell {
  padding: 10px 8px;
}

.product-info {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.product-name {
  font-weight: 500;
  color: #111;
}

.product-qty {
  color: #666;
  font-size: 0.95em;
}

.product-price {
  white-space: nowrap;
  text-align: right;
}

#price {
  text-align: right;
}

.order-back-button {
  text-align: left;
  margin-bottom: 3em;
}

.back-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  border-radius: 5px;
  padding: 10px 18px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--primary-d-2);
  text-decoration: none !important;
}