/* SubAccount sites selector */
.diore-sub-account-sites-subtitle {
  margin: 0 0 16px;
  color: #526273;
}

.diore-sub-account-sites-form {
  padding: 20px 22px;
  background: #f1f1f1;
  border: 1px solid #d8dde3;
}

  .diore-sub-account-sites-form-row {
    display: grid;
    grid-template-columns: minmax(0, 120px) minmax(0, 1fr) minmax(0, 160px);
    align-items: center;
    gap: 14px;
  }

  .diore-sub-account-sites-form-label {
    margin: 0;
    color: #3f4f5f;
    font-weight: 600;
    text-align: left;
  }

  .html-account-page .page-body .diore-sub-account-sites-form .diore-sub-account-sites-select {
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    color: #3f4f5f;
    background: #fff;
    border: 1px solid #d8dde3;
  }

  .diore-sub-account-sites-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    min-width: 100px;
    white-space: nowrap;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

.diore-sub-account-sites-empty {
  padding: 18px 16px;
  color: #526273;
  background: #f8f9fa;
  border: 1px dashed #d8dde3;
  text-align: center;
}

/* SubAccount order page */
.diore-sub-account-order-products {
  margin-top: 24px;
  border: 1px solid #d8dde3;
  background: #fff;
}

.diore-sub-account-order-products-header {
  display: grid;
  grid-template-columns: minmax(0, 50%) minmax(0, 25%) minmax(0, 25%);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #3f4f5f;
  font-weight: 700;
  background: #f1f1f1;
}

.diore-sub-account-order-products-empty {
  padding: 18px 16px;
  color: #526273;
  border-top: 1px solid #e6e9ed;
  text-align: center;
}

.diore-sub-account-order-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  padding: 8px 14px;
  color: #3f4f5f;
  font-weight: 600;
}

  .diore-sub-account-order-total-value {
    color: #3f4f5f;
    font-size: 17px;
  }

.diore-sub-account-order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

  .diore-sub-account-order-request-button {
    margin-right: auto;
    font-weight: 600;
    white-space: normal;
  }

  .diore-sub-account-order-cart-button,
  .diore-sub-account-order-place-button {
    font-weight: 600;
    white-space: nowrap;
  }

  .diore-sub-account-order-request-button:disabled,
  .diore-sub-account-order-cart-button:disabled,
  .diore-sub-account-order-place-button:disabled {
    cursor: not-allowed;
    opacity: .55;
  }

.diore-sub-account-order-shipping-notice {
  margin: 20px 0 0;
  color: #526273;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .diore-sub-account-sites-form {
    padding: 16px;
  }

  .diore-sub-account-sites-form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

    .diore-sub-account-sites-submit-button {
      width: 100%;
      min-width: 0;
    }

  .diore-sub-account-order-products-header {
    display: none;
  }

  .diore-sub-account-order-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

    .diore-sub-account-order-request-button {
      margin-right: 0;
    }

    .diore-sub-account-order-request-button,
    .diore-sub-account-order-cart-button,
    .diore-sub-account-order-place-button {
      width: 100%;
    }
}
