.right-list-block {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.right-horizontal-buttons {
  display: flex;
  gap: 10px;
}

.button-orange {
  border: 2px solid #f8a522;
  background: #f8a522;
  color: #fff;
  padding: 4px 15px;
  font-size: 14px;
  border-radius: 4px;
  transition: 0.3s all;
  text-decoration: none;
  margin: 0;
}

.button-orange:hover {
  color: #f8a522;
  text-decoration: none;
  background: transparent;
}

.affinity-image {
  display: block;
  margin: 10px auto;
}

form[data-drupal-selector="views-form-commerce-orders-page-1"] th,
form[data-drupal-selector="views-form-commerce-orders-page-1"] td {
  font-size: 13px;
}

form[action*="/admin"] input:not([type=submit]),
form[action*="/admin"] select {
  color: #000;
}

/**
 * Order Address Sections - Side-by-side layout for Billing and Shipping
 * Mimics Drupal 7 Ubercart order edit page layout with compact spacing
 */

.order-address-sections-wrapper {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.order-billing-section,
.order-shipping-section {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
}

/* Compact fieldset styling like D7 */
.order-billing-section fieldset,
.order-shipping-section fieldset {
  border: none;
  box-shadow: none;
  margin-bottom: 5px;
}

.order-billing-section>legend,
.order-shipping-section>legend {
  font-weight: bold;
  padding: 0 3px;
  font-size: 14px;
}

/* Reduce spacing in form elements - D7 style */
.order-billing-section .form-item,
.order-shipping-section .form-item {
  margin-bottom: 5px;
  margin-top: 3px;
}

.order-billing-section .form-type-textfield,
.order-shipping-section .form-type-textfield,
.order-billing-section .form-type-select,
.order-shipping-section .form-type-select {
  margin-bottom: 5px;
}

/* Compact labels */
.order-billing-section label,
.order-shipping-section label {
  margin-bottom: 2px;
  font-size: 13px;
}

/* Compact input fields */
.order-billing-section input[type="text"],
.order-billing-section input[type="email"],
.order-billing-section input[type="tel"],
.order-billing-section select,
.order-shipping-section input[type="text"],
.order-shipping-section input[type="email"],
.order-shipping-section input[type="tel"],
.order-shipping-section select {
  padding: 3px 5px;
  font-size: 13px;
}

.order-address-sections-wrapper .field--type-address .fieldset__wrapper {
  margin: 0;
}

.order-address-sections-wrapper .field--type-address .fieldset__label {
  padding-left: 0;
}

.layout-order-admin .profile .field--name-address p {
  margin-bottom: 0;
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
  .order-address-sections-wrapper {
    flex-direction: column;
  }

  .order-billing-section,
  .order-shipping-section {
    max-width: 100%;
  }
}

.view-commerce-order-item-table tr td .product-attributes .product-title {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 0.923rem;
}
